WO2021136213A1 - Resource configuration method and device - Google Patents

Resource configuration method and device Download PDF

Info

Publication number
WO2021136213A1
WO2021136213A1 PCT/CN2020/140421 CN2020140421W WO2021136213A1 WO 2021136213 A1 WO2021136213 A1 WO 2021136213A1 CN 2020140421 W CN2020140421 W CN 2020140421W WO 2021136213 A1 WO2021136213 A1 WO 2021136213A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
service
macrocycle
controller
time
Prior art date
Application number
PCT/CN2020/140421
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 WO2021136213A1 publication Critical patent/WO2021136213A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • H04L47/801Real time traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0446Resources in time domain, e.g. slots or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/52Allocation or scheduling criteria for wireless resources based on load

Definitions

  • This application relates to the field of communication technology, and in particular to a method and equipment for resource allocation.
  • IPv6 In the sixth version of the Internet Protocol (IPv6), in order to meet the needs of differentiated services in new application scenarios (such as artificial intelligence, industrial Internet, Internet of Things, etc.), a deterministic Internet Protocol is proposed (deterministic internet protocol, DIP) technology. DIP technology is designed to provide deterministic forwarding services for businesses. Deterministic forwarding services refer to controlling the delay of node forwarding messages within a certain index range through some technical processing.
  • the controller when configuring resources for nodes, the controller only needs to ensure that the configured bandwidth resources meet the bandwidth requirements of the service, that is, it only guarantees that the maximum amount of data allowed to be transmitted per unit time meets the actual transmission requirements of the service, but in which time period it is performed Data transmission and how much data is transmitted in a time period are uncertain, which results in different actual bandwidths in different time ranges. For example, if a bandwidth of 1.2 gigabits per second (that is, 1.2G bits/s) is configured, the actual bandwidth in the previous 0.5 second is 2.4G bits/s in actual application, and the data volume of 1.2G bits is transmitted. The actual bandwidth within seconds is 0, and no data transmission is performed.
  • the controller only configures the node with bandwidth resources that meet the bandwidth requirements, and in which time period the node forwards the message, which time period does not forward the message, and in which time period the next hop node of the node receives the message .
  • the controller is not certain, so for the controller, the delay of the node forwarding the message is uncertain.
  • the current resource allocation method cannot meet the requirements of DIP technology to provide deterministic forwarding services.
  • the embodiments of the present application provide a resource configuration method and device, which are used to meet the requirements of DIP technology to provide deterministic forwarding services and improve resource utilization.
  • an embodiment of the present application proposes a resource configuration method.
  • the method includes: the controller receives a request message, the request message is used to instruct the controller to configure the time domain resource for executing the first service, and the controller sends the first service to the first service.
  • the node sends a configuration message indicating the N positions of the N time units in a macrocycle; wherein the N time units are time domain resources for executing the first service, and the N time units The corresponding bandwidth resource satisfies the bandwidth requirement of the first service.
  • One of the N time units is used to indicate the minimum duration for scheduling time domain resources.
  • a macrocycle includes M time units, where M is greater than or equal to The N is an integer, and the N is an integer greater than or equal to 1.
  • the controller sends a configuration message indicating N positions to the first node in response to the request message, so that the first node will use the time unit as the granularity, and the N positions corresponding to the N positions in a macrocycle
  • the first service is executed in the time unit, and the first service will not be executed in the time unit other than the N time units corresponding to the N positions in the macrocycle, which means that the controller can forward the first node to the first node.
  • the delay of a service message is controlled within a certain index range to meet the requirements of DIP technology to provide deterministic forwarding services. For example, the controller indicates the time corresponding to the second position of the first node in a macrocycle.
  • the first service is executed in the unit, and the time delay for the first node to forward the first service packet can be controlled to 1 time unit.
  • M is greater than N
  • the remaining (M-N) time units can also be allocated to other services, thereby reducing resource waste and improving resource utilization.
  • the controller determines the number N of time units used to execute the first service in a macro cycle according to the request message; the controller according to the first transmission path
  • the time domain resource occupancy status of the node in the node, the N positions of the N time units in a macrocycle are configured for the first node, where the entrance of the first transmission path is the first node, The exit is the second node, and the first service enters the first network via the first node, and leaves the first network via the second node.
  • the controller first determines the number N of time units for executing the first service.
  • the bandwidth resources corresponding to the N time units meet the bandwidth requirements of the first service.
  • configuring the N time units at N positions in a macrocycle can configure time domain resources for the first node at the granularity of time units, so that the controller can forward the first service packet to the first node
  • the time delay is controlled within a certain index range to meet the requirements of DIP technology to provide deterministic forwarding services.
  • the first transmission path includes a third node
  • the H positions are positions of the third node corresponding to the N positions in a macrocycle
  • the H positions The time unit corresponding to at least one of the positions is occupied by the second service
  • the method further includes: the controller adjusts the time domain resource used for executing the second service in the third node, and after the adjustment, The N time units corresponding to the H positions are in an idle state.
  • the time unit corresponding to at least one of the H positions is occupied by the second service, that is, the third node executes the first service and the second service in the time unit corresponding to the at least one position, resulting in the first The time domain resources of the three nodes conflict.
  • the controller adjusts the time domain resources used to execute the second service in the third node so that the time units corresponding to the H positions are in an idle state, thereby effectively avoiding node occurrence Time domain resource conflict.
  • the controller adjusting the time domain resources used to execute the second service in the third node includes: the controller determining K according to the first macrocycle offset
  • the K positions are the positions of the fourth node corresponding to the H positions in one macrocycle, wherein the second service enters the first network via the fourth node, and the first macro
  • the cycle offset is the time delay for the message to be transmitted from the fourth node to the third node; the controller reconfigures the fourth node according to the time domain resource occupation of the nodes in the second transmission path Q time units are located at Q positions in a macrocycle, where the Q time units are time domain resources for the fourth node to execute the second service, and the Q positions include the division of one macrocycle In locations other than the K locations, the second transmission path is used to transmit the message of the second service.
  • the controller can accurately determine the K positions in the fourth node corresponding to the H positions in one macro period according to the first macro period offset.
  • the controller can use the time unit as the granularity to reconfigure the fourth node with Q positions other than the K positions in a macrocycle, and the Q time units corresponding to the Q positions are used to execute the second service.
  • the N time units corresponding to the H positions at the third node will be in an idle state, and the third node can use the time units corresponding to different positions to execute the first service and the second service respectively, thereby solving the time domain of the third node
  • the problem of resource conflicts improves resource utilization.
  • the method further includes: the controller determines between every two adjacent nodes in the first transmission path according to the bandwidth resource occupancy of the nodes in the first transmission path.
  • a channel for executing the first service is configured between the channels, and the configured channel is used to determine the bandwidth resource corresponding to each time unit, wherein the entrance of the first transmission path is the first node, and the exit is the first node.
  • Two nodes, the first service enters the first network via the first node, and leaves the first network via the second node.
  • the controller configures a channel for executing the first service between every two adjacent nodes in the first transmission path, which means that the bandwidth of the configured channel meets the bandwidth resource of the first service.
  • the configured channel can be used to determine the bandwidth resource corresponding to each time unit.
  • the controller configures the first channel for the first node and the next hop node of the first node, and the bandwidth of the first channel is 2.4 Gbits/s , The bandwidth corresponding to each time unit at the first node is 2.4 Gbits/s.
  • the controller can determine N time units that meet the bandwidth requirement of the first service, so that time domain resources can be allocated with the time unit as the granularity.
  • the method further includes: the first transmission path includes a fifth node and a sixth node, and the fifth node is a next hop node of the sixth node; the The controller configures a channel between every two adjacent nodes in the first transmission path according to the bandwidth resource occupancy of the nodes in the first transmission path, including: the controller configures a channel between every two adjacent nodes in the first transmission path.
  • a channel for executing the first service is configured between the fifth node and the sixth node; or, the controller is based on According to the bandwidth resource occupation situation of the fifth node and the bandwidth requirement of the first service, one of the at least one configured channel between the fifth node and the sixth node is determined to be used for executing the The first business channel.
  • the controller can configure a channel for executing the first service, or it can determine a channel to execute from at least one channel that has been configured between the two nodes.
  • the first business The controller determines a channel from the configured at least one channel to execute the first service, that is, uses the excess resources in the configured channel to execute the first service, avoids the waste of excess resources, and improves resource utilization.
  • the method further includes: the controller receives a first indication message from the seventh node, the first indication message indicating at least one macrocycle offset, wherein the at least Any macrocycle offset in one macrocycle offset is the time delay for the packet to be transmitted from the previous hop node of the seventh node to the seventh node, the seventh node, and the seventh node
  • the last hop node is two nodes in the first network
  • the controller updates the macroperiod table entry of the seventh node based on the first indication message, and the macroperiod table entry is used to store the at least One macrocycle offset.
  • the controller can obtain the macroperiod offset of each node, and update the macroperiod offset table entry of each node, so that the controller can know the delay between each node, and then can be based on the macroperiod offset
  • the table item determines where or where each node executes services in a macrocycle, and can adjust the time domain resources of each node to avoid time domain resource conflicts and improve resource utilization.
  • the configuration message further includes the identifier of the first channel and/or the identifier of the first service, and the first channel is the first node and the connection between the first node and the first node.
  • the bandwidth resource between next hop nodes used to execute the first service is the identifier of the first channel and/or the identifier of the first service.
  • the request message includes one or more of the following information: the identifier of the first node, the identifier of the second node, or the bandwidth requirement of the first service.
  • an embodiment of the present application provides a resource configuration method, the method includes: a first node receives a configuration message from a controller, the configuration message indicating N positions of N time units in a macrocycle
  • the first node executes the first service in N time units corresponding to the N positions; wherein the N time units are time domain resources for executing the first service, and the N
  • the bandwidth resources corresponding to each time unit meet the bandwidth requirement of the first service.
  • One time unit in the N time units is used to indicate the minimum duration for scheduling time domain resources.
  • a macrocycle includes M time units, where M is An integer greater than or equal to the N, and the N is an integer greater than or equal to 1.
  • the first node receives the configuration message from the controller.
  • the configuration message is used to indicate the N positions of N time units in a macro cycle.
  • the first node will use the N time units in a macro cycle.
  • the N time units corresponding to the location execute the first service, and the first service will not be executed in time units other than the N time units in a macro cycle.
  • the controller can forward the first node to the first service.
  • the delay of business messages is controlled within a certain index range, which meets the requirements of DIP technology to provide deterministic forwarding services.
  • the method further includes: the first node sends a second indication message to the controller, the second indication message indicating at least one macrocycle offset, so that the The controller updates the macroperiod offset entry of the first node based on the at least one macroperiod offset, where the macroperiod offset entry is used to store the at least one macroperiod offset, wherein the at least Any macrocycle offset in one macrocycle offset is the time delay for the packet to be transmitted from the previous hop node of the first node to the first node.
  • the first node can send the macrocycle offset to the controller, so that the controller updates the macrocycle offset table entry of the first node, so that the controller can know the delay between the first node and other nodes, Furthermore, based on the macrocycle offset entry, it is possible to determine which position or positions within a macrocycle of the first node perform services, and adjust the time domain resources of the first node to avoid time domain resource conflicts and increase resources. Utilization rate.
  • the last hop node of the first node is the eighth node
  • the at least one macroperiod offset includes a second macroperiod offset
  • the second instruction message sent by the device includes: the first node receives a third instruction message from the eighth node, the third instruction message indicates a first position, and the first position is generated by the eighth node The position of the time unit of the third indication message within a macro period; the first node determines the second macro period offset according to the first position and the second position, and the second position is The position of the time unit of the eighth node in response to the third indication message within one macrocycle, and the second macrocycle offset is the time delay for the packet to be transmitted from the eighth node to the first node ; The first node sends the second instruction message to the controller.
  • the first node can determine the transmission delay of the message from the eighth node to the first node through the first position and the second position, and then can send it to the controller with the second macrocycle offset, so that the control
  • the processor can determine that the time unit for another node to execute the service is within a macrocycle based on the second macrocycle offset.
  • the location within the DIP technology meets the requirements of providing deterministic forwarding services in DIP technology.
  • the next hop node of the first node is the ninth node
  • the method further includes: the first node generates a fourth indication message, and the fourth indication message indicates the Three positions, the third position is the position within one macrocycle of the time unit at which the first node generates the fourth indication message; the first node sends the fourth indication message to the ninth node ,
  • the fourth indication message is used to instruct the ninth node to determine a third macroperiod offset according to the third position and the fourth position, and the fourth position is the response of the ninth node to the fourth indication
  • the position of the time unit of the message within one macrocycle, and the third macrocycle offset is the time delay for the message to be transmitted from the first node to the ninth node.
  • the first node can send a fourth indication message to the next hop node of the first node, so that the next hop node of the first node determines the third macroperiod offset based on the fourth indication message.
  • the next hop node of the first node can send the third macroperiod offset to the controller, so that the controller updates the macroperiod offset entry of the next hop node of the first node.
  • the configuration message further includes the identifier of the first channel and/or the identifier of the first service, and the first channel is used to indicate the first node and the first service.
  • an embodiment of the present application proposes a controller, which has the function of realizing the behavior of the controller in the foregoing method example of the first aspect.
  • the function can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or the software includes one or more modules corresponding to the above-mentioned functions.
  • the structure of the controller includes a processing unit and a transceiver unit, and these units can perform corresponding functions in the foregoing method examples.
  • a processing unit and a transceiver unit can perform corresponding functions in the foregoing method examples.
  • these units can perform corresponding functions in the foregoing method examples.
  • an embodiment of the present application proposes a network node that has the function of realizing the behavior of the first node in the foregoing method example of the second aspect.
  • the function can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or the software includes one or more modules corresponding to the above-mentioned functions.
  • the structure of the network node includes a processing unit and a transceiver unit, and these units can perform corresponding functions in the foregoing method examples.
  • a processing unit and a transceiver unit can perform corresponding functions in the foregoing method examples.
  • an embodiment of the present application further provides a controller, which includes a processor, a memory, and a transceiver.
  • the memory is used to store a software program
  • the processor is used to read the software stored in the memory.
  • the program implements the method provided in the first aspect or any one of the above-mentioned first aspects.
  • an embodiment of the present application also provides a network node, the network node includes a processor, a memory, and a transceiver.
  • the memory is used to store a software program
  • the processor is used to read the software stored in the memory. Program and implement the method provided by the second aspect or any one of the above-mentioned second aspects.
  • the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium is used to store computer instructions, and when the computer instructions run on a computer, the computer executes the first Aspect or any one of the possible implementations of the first aspect above.
  • the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium is used to store computer instructions, and when the computer instructions run on a computer, the computer executes the second Aspect or any one of the possible implementations of the second aspect above.
  • an embodiment of the present application provides a computer program product containing instructions, the computer program product is used to store computer instructions, when the computer instructions run on a computer, the computer executes the first aspect or The method described in any one of the possible implementation manners of the foregoing first aspect.
  • an embodiment of the present application provides a computer program product containing instructions, the computer program product is used to store computer instructions, when the computer instructions run on a computer, the computer executes the second aspect or The method described in any possible implementation manner of the above second aspect.
  • an embodiment of the present application provides a computer chip, which is connected to a memory, and the chip is used to read and execute a software program stored in the memory, and execute any one of the foregoing first aspect or the foregoing first aspect. Implement the method described in the mode.
  • an embodiment of the present application provides a computer chip, which is connected to a memory, and the chip is used to read and execute a software program stored in the memory, and execute any one of the above-mentioned second aspect or the above-mentioned second aspect. Implement the method described in the mode.
  • an embodiment of the present application provides a chip system, which includes a processor, configured to implement the method described in the foregoing first aspect or any one of the possible implementation manners of the foregoing first aspect.
  • the chip system can be composed of chips, or it can include chips and other discrete devices.
  • an embodiment of the present application provides a chip system, which includes a processor, configured to implement the method described in the foregoing second aspect or any one of the possible implementation manners of the foregoing second aspect.
  • the chip system can be composed of chips, and can also include chips and other discrete devices.
  • FIG. 1 is a schematic structural diagram of a communication system provided by an embodiment of this application.
  • FIG. 2 is a schematic diagram of a data flow of a resource configuration method provided by an embodiment of the application
  • FIG. 3 is a schematic diagram of a data flow of a bandwidth resource configuration method provided by an embodiment of the application.
  • FIG. 4 is a schematic diagram of a data flow of a method for adjusting time domain resources according to an embodiment of this application;
  • FIG. 5 is a schematic diagram of a data flow of a method for determining a macrocycle offset provided by an embodiment of the application
  • FIG. 6 is a structural diagram of a node reporting macrocycle offset provided by an embodiment of this application.
  • FIG. 7 is a schematic diagram of the data flow of another resource configuration method provided by an embodiment of the application.
  • FIG. 8 is a structural diagram of a controller provided by an embodiment of the application.
  • FIG. 9 is another structural diagram of a controller provided by an embodiment of the application.
  • FIG. 10 is a structural diagram of a network node provided by an embodiment of this application.
  • FIG. 11 is another structural diagram of a network node provided by an embodiment of this application.
  • FIG. 12 is a structural diagram of a resource configuration provided by an embodiment of this application.
  • FIG. 13 is a structural diagram of another resource configuration provided by an embodiment of this application.
  • FIG. 14 is a structural diagram of yet another resource configuration provided by an embodiment of this application.
  • the time unit is the smallest scheduling unit in the time domain.
  • the length of the time unit is 10 ⁇ s, which means that at least all data flows within 10 ⁇ s need to be scheduled each time the data flow is scheduled.
  • a macro cycle may include M time units.
  • M may be a positive integer preset by the controller.
  • the controller may preset M according to the ability of the node to forward data.
  • the ability of a node to forward the amount of data is related to the number of gated queues included in the node. If the node includes 4 gated queues, the value of M can be preset to an integer multiple of 4, such as 4, 8, 12 and so on.
  • the positions of the M time units in a macrocycle can be represented by continuous sequence numbers, of course, can also be represented in other ways, which is not limited in the embodiment of the present application. For example, the sequence numbers of M time units are 0, 1, ..., M-1, respectively.
  • the maximum amount of data that can be transmitted is the same, for example, the maximum amount of data that can be transmitted in one time unit is 1.2 Gbits.
  • the channel is a logical transmission path between two nodes.
  • the controller can configure multiple channels between the two nodes, and the bandwidth of each channel of the multiple channels can be the same or different.
  • the last hop node of the channel refers to the first node through which the message passes among the two nodes at the two ends of the channel.
  • the two nodes at the two ends corresponding to the first channel are the first node and the second node respectively.
  • the first channel is used to execute the first service.
  • the first The last hop node of a channel is the first node; if the message of the first service is forwarded to the first node via the second node, then the last hop node of the first channel is the second node.
  • Terminal devices include devices that provide users with voice and/or data connectivity, such as handheld devices with wireless connection functions, or processing devices connected to wireless modems.
  • the terminal equipment may include user equipment (UE), wireless terminal equipment, mobile terminal equipment, subscriber unit (subscriber unit), subscriber station (subscriber station), mobile station (mobile station), mobile station (mobile), remote Station (remote station), access point (access point, AP), remote terminal equipment (remote terminal), access terminal equipment (access terminal), user terminal equipment (user terminal), user agent (user agent), or user Equipment (user device), etc.
  • UE user equipment
  • wireless terminal equipment mobile terminal equipment
  • mobile terminal equipment subscriber unit (subscriber unit), subscriber station (subscriber station), mobile station (mobile station), mobile station (mobile), remote Station (remote station), access point (access point, AP), remote terminal equipment (remote terminal), access terminal equipment (access terminal), user terminal equipment (user terminal), user agent (user agent), or user Equipment (user device), etc.
  • UE user equipment
  • wireless terminal equipment mobile terminal
  • PCS personal communication service
  • SIP session initiation protocol
  • WLL wireless local loop
  • PDA personal digital assistants
  • restricted devices such as devices with low power consumption, or devices with limited storage capabilities, or devices with limited computing capabilities. Examples include barcodes, radio frequency identification (RFID), sensors, global positioning system (GPS), laser scanners and other information sensing equipment.
  • RFID radio frequency identification
  • GPS global positioning system
  • the terminal device may also be a wearable device.
  • Wearable devices can also be called wearable smart devices. It is a general term for the application of wearable technology to intelligently design daily wear and develop wearable devices, such as glasses, gloves, watches, clothing and shoes.
  • a wearable device is a portable device that is directly worn on the body or integrated into the user's clothes or accessories. Wearable devices are not only a kind of hardware device, but also realize powerful functions through software support, data interaction, and cloud interaction.
  • wearable smart devices include full-featured, large-sized, complete or partial functions that can be achieved without relying on smart phones, such as smart watches or smart glasses, and only focus on a certain type of application function, and need to cooperate with other devices such as smart phones.
  • Use such as all kinds of smart bracelets, smart helmets, smart jewelry, etc. for physical sign monitoring.
  • a network device for example, includes a base station (for example, an access point), which may refer to a device that communicates with a wireless terminal device through one or more cells on an air interface in an access network.
  • the network device can be used to convert received air frames and Internet Protocol (IP) packets into each other, and act as a router between the terminal device and the rest of the access network, where the rest of the access network can include an IP network.
  • IP Internet Protocol
  • the network equipment can also coordinate the attribute management of the air interface.
  • the network equipment may include an evolved base station (NodeB or eNB or e-NodeB, evolutional Node B) in a long term evolution (LTE) system or an evolved LTE system (LTE-Advanced, LTE-A), or It may also include the next generation node B (gNB) in the fifth generation (5G) new radio (NR) system of the fifth generation mobile communication technology (fifth generation, 5G) or cloud access network (cloud radio access).
  • 5G fifth generation
  • NR new radio
  • cloud access network cloud radio access
  • the centralized unit (CU) and distributed unit (DU) in the network (CloudRAN) system are not limited in the embodiment of the present application.
  • ordinal numbers such as “first” and “second” mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, timing, priority, or importance of multiple objects.
  • the communication system may include a controller 110 and a network 130 (also referred to as a first network) covered by the controller 110.
  • the network 130 includes a plurality of nodes interconnected by a plurality of links 131, and these nodes include, for example, a node 121, a node 122, a node 123, a node 124, and a node 125.
  • the resources used by each node in the network 130 such as bandwidth resources or time domain resources, may be allocated by the controller 110.
  • the link 131 may be a physical link used to transmit data, such as an optical fiber link, an electronic link, a logical link, or any combination thereof.
  • Each node in the network 130 (for example, node 121, node 122, node 123, node 124, and node 125) supports DIP technology, that is, the network 130 is a deterministic network. It should be understood that the controller 110 can cover many A deterministic network, Figure 1 only exemplarily shows a deterministic network scenario.
  • the controller 110 may be a virtual machine (VM), a virtual machine monitor, or any device and/or system used to configure resources for the nodes 121 to 125.
  • the controller 110 may be a software module that runs on hardware, for example, may be a software module that operates on behalf of a network provider that owns the network 130.
  • the controller 110 can perform operation, administration, and management (OAM) operations, so that network operators and/or network providers can solve network problems, monitor network performance, perform network maintenance, or allocate network resources, etc. .
  • OAM operation, administration, and management
  • the controller 110 can monitor and verify the connectivity between the nodes 121 to 125, detect and isolate the connectivity failure of the link 131, configure resources for the nodes 121 to 125, and can also maintain and monitor the nodes 121 to 125 Occupancy of resources, etc.
  • Any one of the node 121 to the node 125 may be a switch, a router, a bridge, a gateway, and/or any other network device suitable for forwarding data in the network 130.
  • the controller 110 is responsible for collecting the entire network topology and parameter information from nodes 121 to 125, controlling the configuration of resources for nodes 121 to 125, maintaining resource configuration information from nodes 121 to 125, and reporting to node 121 Send instructions to node 125.
  • the controller 110 is responsible for maintaining the edge node table entries of the network 130, and the edge node table entries include parameter information of all edge nodes in the network 130.
  • Edge nodes include in-edge nodes and out-edge nodes.
  • the incoming edge node is the first node where a message, message, or data enters the network 130. For example, if a message enters the network 130 via the node 121, the node 121 may be the ingress node of the message in the network 130.
  • the outgoing edge node is the last node where a message, message, or data leaves the network 130. For example, if a message leaves the network 130 via the node 123, the node 123 may be the outgoing edge node of the message in the network 130.
  • the controller 110 is responsible for maintaining port information between two nodes in the network 130.
  • the port 1 of the node 121 and the port 1 of the node 122 establish a link 131.
  • the port 1 of the node 122 and the port 2 of the node 123 establish a link 131.
  • the controller 110 is used to define and manage the data flow generated in the data plane of the network 130.
  • the controller 110 maintains a full topology view of the infrastructure of the network 130, calculates the transmission path of the data stream in the network 130, and sends the transmission path information to the nodes 121 through an instruction message (the instruction message may also be a forwarding instruction, etc.) At least two of the nodes 125.
  • the forwarding instruction may include the identification of the next hop node that forwards the data stream.
  • the transmission path of the data stream in the network 130 is the node 121, the node 122, and the node 123.
  • the ingress edge node is the node 121, and the egress edge node is 123.
  • the controller 110 sends the data stream to the node 121 and the node 122 through the control plane interface 132.
  • the forwarding instruction sent to the node 121 includes the identifier of the node 122
  • the forwarding instruction sent to the node 122 includes the identifier of the node 123.
  • the node 121 to the node 125 may store the information of the transmission path indicated by the forwarding instruction, for example, may be stored in one or more data flow tables or forwarding information base (FIB).
  • FIB forwarding information base
  • each of the nodes 121 to 125 can forward the data stream to the next hop node in the network 130.
  • any one of the nodes 121 to 125 may forward the message to the controller 110 .
  • the controller 110 and/or the nodes 121 to 125 may use the IEEE 1588 precision time protocol to synchronize the internal clock to an accuracy of 1 ⁇ s to 10 ns.
  • the controller 110 When configuring resources for a node, the controller 110 receives a request message from a service, and the request message includes the bandwidth requirement of the service, the identifier of the first ingress edge node, and the identifier of the first egress edge node. In response, the controller 110 calculates the transmission path of the service in the network 130 where the entry is the first ingress edge node and the exit is the first egress edge node. According to the bandwidth resource allocation of each node through the first transmission path, the At least one channel is configured for the service on the transmission path, and the bandwidth of each channel in the at least one channel meets the bandwidth requirement of the service. The controller 110 sends forwarding instructions to each node passed by the transmission path through the control plane interface 132, respectively.
  • the controller 110 also needs to send the channel identifier to each node through the first transmission path through the control plane interface 132. In this way, after the first ingress edge node receives the service message, it forwards the message to the next hop node in the transmission path through the configured channel.
  • the current resource configuration only needs to ensure that the configured bandwidth resources meet the bandwidth requirements of the business, that is, only ensure that the maximum amount of data allowed to be transmitted per unit time meets the actual transmission needs of the business, but the specific time period for transmission and in a time period
  • the amount of data transferred inside is uncertain.
  • the actual bandwidth may be different in different time ranges. For example, when the bandwidth of 1.2G bits/s is configured, the actual bandwidth in 0.5 seconds is 2.4G bits/s in actual application, and the data volume of 1.2G bits is transmitted, and the actual bandwidth in the next 0.5 seconds is 0, and no data is performed. transmission.
  • the controller Since the controller only configures bandwidth resources for the node, and in which time period the node forwards the message, during which time period the message is not forwarded, and in which time period the next hop node of the node receives the message, control
  • the controller is not certain, so for the controller, the delay of the node forwarding the message is uncertain. That is to say, in the current resource allocation method, the controller cannot control the amount of data actually transmitted by the node in a period of time within a certain index range, nor can it control the forwarding delay of each node within the certain index range. .
  • the current resource allocation method does not meet the requirements of DIP technology to provide deterministic forwarding services.
  • the time delay for the node to forward the message refers to the time period for the node to forward the message.
  • the embodiment of the present application provides a resource configuration method.
  • the controller configures the first node with N time units at N positions in a macrocycle at the granularity of time units, so that the first node will use a fixed N time units to perform the first service, which means
  • the controller can control the delay of forwarding packets of the first node within a certain index range by adjusting the positions of N time units in a macrocycle, so as to meet the requirement of DIP technology to provide deterministic forwarding services.
  • the embodiment of the present application provides a resource configuration method. Please refer to FIG. 2, which is a flowchart of the method. This method can be applied to the communication system 100 shown in FIG. 1. In the following introduction, the method provided in the embodiment of the present application is applied to the communication system 100 shown in FIG. 1 as an example.
  • the controller 110 receives a request message, where the request message is used to instruct the controller 110 to configure a time domain resource for executing the first service.
  • the controller 110 receives the request message.
  • the request message may come from a network device or a terminal device, which is not limited in the embodiment of the present application.
  • the request message includes one or more of the following information: the identification of the first node, the identification of the second node, or the bandwidth requirement of the first service.
  • the first service enters the first network (ie, the network 130) via the first node, and leaves the network 130 via the second node.
  • the request message only includes the identification of the first node, the identification of the second node, and part of the information in the bandwidth requirement of the first service, the remaining information can be obtained in a preset manner, or configured by the controller 110, etc.
  • the application is not limited.
  • the controller 110 may pre-set the bandwidth requirement of the first service of the device according to the function of the device sending the request message, or preset the identification of the inbound/outbound edge node of the first service of the device in the network 130.
  • the controller 110 may configure the identification of the exit/entry edge node of the first service in the network 130 according to the address information (for example, source address, destination address) of the first service.
  • the controller 110 may determine the bandwidth requirement of the first service according to the function of the device sending the request message.
  • the controller 110 determines, according to the request message, the first transmission path in which the entrance is the first node and the exit is the second node.
  • the first transmission path includes i nodes, and i is an integer greater than or equal to 2.
  • the controller 110 After the controller 110 receives the request message, it first determines the transmission path of the first service in the network 130. For example, the controller 110 may calculate the first transmission path of the first service in the network 130 according to the identity of the first node, the identity of the second node, and the busyness of each node in the network 130.
  • the first node is node 121 and the second node is node 123
  • the first transmission path may include node 121, node 122, and node 123.
  • the busyness of a node refers to the number of services performed by the node. The lower the busyness, the less the number of services performed by the node, and the better the quality of the forwarding service provided by the node.
  • the first transmission path may be the optimal transmission path of the first service in the network 130, so that the forwarding delay of the packet of the first service in the network 130 can be reduced.
  • the optimal transmission path is, for example, the transmission path with the shortest transmission distance, or the transmission path with the least number of passing nodes, or the transmission path with the shortest transmission distance and the least number of passing nodes.
  • the controller 110 may send to each node in the first transmission path the identifier of the last hop node in the first transmission path of the node, or the downstream node in the first transmission path.
  • the nodes that the first transmission path passes through include node 121, node 122, and node 123, and controller 110 may send the identification of node 122 to node 121, the identification of node 121 and the identification of node 123 to node 122, and the identification of node 123 to node 123.
  • the identifier of the sending node 121 The identifier of the sending node 121.
  • the controller 110 may also receive a response message from each node in the first transmission path.
  • the response message may indicate that the node has added the identifier of the node indicated by the controller 110 to the locally stored forwarding table, and the forwarding table of the node records the identifier of the last hop node to which the node forwarded the message in the network 130, And/or the identification of the next hop node.
  • the first transmission path of the first service in the network 130 is the node 121, the node 122 and the node 123 as an example, that is, the controller 110 determines that the node 121, the node 122, and the node 123 are the first The business provides forwarding services.
  • the ingress edge node is node 121
  • the egress edge node is node 123, that is, the first node is node 121
  • the second node is node 123.
  • the controller 110 may determine the number N of time units used to execute the first service in a macrocycle according to the resource occupancy of the nodes in the first transmission path.
  • the controller 110 may according to the maximum amount of data that can be transmitted in each time unit (that is, the bandwidth resource corresponding to each time unit) of nodes other than the second node in the first transmission path (ie, node 121 and node 122), The number N of time units required to execute the first service in a macrocycle is determined, and the bandwidth resources corresponding to the N time units meet the bandwidth requirements of the first service.
  • one time unit among the N time units is used to indicate the minimum duration for scheduling time domain resources, that is, the time unit is the minimum scheduling unit in the time domain.
  • the length of the time unit is 10 ⁇ s, which means that at least all data flows within 10 ⁇ s need to be scheduled each time the data flow is scheduled.
  • a macrocycle may include M time units, and M may be a positive integer preset by the controller 110.
  • the controller 110 may preset M according to the ability of each node in the network 130 to forward the amount of data.
  • the ability of a node to forward the amount of data is related to the number of gated queues included in the node. If each node in the network 130 includes 4 gated queues, M can be preset to an integer multiple of 4. It should be understood that the controller 110 may also preset M to other values, such as 3, 6, 10, and so on.
  • N is an integer less than or equal to M and greater than or equal to 1.
  • the controller 110 may obtain the resource occupancy status of the node according to the resource occupancy table item maintained by the controller 110, and the resource occupancy table entry includes the resource occupancy status of all nodes in the network 130.
  • the resource occupancy of the node may include the bandwidth resource occupancy of the node, or the time domain resource occupancy of the node, or the bandwidth resource occupancy and time domain resource occupancy of the node. It should be understood that the resource occupancy situation can be maintained in the format of table entries, that is, the format of text can be maintained, which is not limited in the embodiment of the present application.
  • the bandwidth resource occupancy of a node may include the number of channels included in the node, the service information performed by the channel, the bandwidth of the channel, or the identification of the two nodes at both ends corresponding to each channel in the channel, etc.
  • the service information may include the bandwidth requirement of the service or the identifier of the service
  • the controller 110 may determine the transmission path of the service in the network 130 according to the identifier of the service.
  • the bandwidth resource occupancy of the node 122 in the resource occupancy table entry may include the first channel and the second channel.
  • the first channel is used to perform the first service
  • the second channel is used to perform the second service
  • the first channel is the node 122
  • the second channel is the channel between node 122 and node 123;
  • the bandwidth of the first channel is 2.4G bits/s
  • the bandwidth requirement of the first service is 1.4G bits/s
  • the bandwidth of the second channel is 1.4G bits/s.
  • the bandwidth is 1.2G bits/s
  • the bandwidth requirement of the second service is 1.2G bits/s.
  • the time domain resource occupancy of a node may include one or more of the business information performed by the node, the number of time units occupied by each service performed by the node, and the bandwidth resources corresponding to each time unit.
  • the node 122 uses two time units to execute the first service through the first channel, and uses the two time unit channels to execute the second service on the second channel.
  • the bandwidth corresponding to each time unit that executes the first service is 1.4G bits/s
  • the bandwidth corresponding to the time unit for executing the second service is 1.2G bits/s.
  • the controller 110 may configure a channel for executing the first service between every two adjacent nodes in the first transmission path to obtain (i- 1) A channel, the configured channel is used to determine the maximum amount of data that a node can transmit in each time unit (that is, the bandwidth resource corresponding to the time unit).
  • the controller 110 may determine each phase in the first transmission path according to the bandwidth resource occupancy of nodes other than the second node in the first transmission path and the bandwidth requirement of the first service.
  • a channel for executing the first service is configured between two adjacent nodes to obtain (i-1) channels for executing the first service.
  • the controller 110 configures two channels for the first service according to the bandwidth resource occupancy status of the node 121, the bandwidth resource occupancy status of the node 122, and the bandwidth requirement of the first service.
  • the two channels are the difference between the node 121 and the node 122.
  • a channel between node 122 and node 123 are the difference between the node 121 and the node 122.
  • the channel refers to the logical transmission path between two nodes.
  • the bandwidth of each of the (i-1) channels meets the bandwidth requirement of the first service, and the bandwidth of each of the (i-1) channels meets the bandwidth requirement of the first service means that the (i -1)
  • the bandwidth of each of the channels is greater than or equal to the bandwidth requirement of the first service.
  • the bandwidth requirement of the first service is 1Gbits/s
  • the bandwidth of the channel configured by the controller 110 between the node 121 and the node 122 can be 1.2Gbits/s, 2.4Gbits/s, or 1G bits/s, etc., as long as it is greater than or equal to 1G bits/s.
  • the controller 110 can configure multiple channels between two nodes, and the bandwidth resource of the channel configured by the controller 110 for the service is often greater than the bandwidth requirement of the service, the controller 110 has two adjacent channels in the first transmission path.
  • a channel for executing the first service is configured between two nodes, one way is to directly configure a channel between the two adjacent nodes to execute the first service, and the other way is to configure a channel between the two adjacent nodes to execute the first service.
  • one of the channels is determined to be used for executing the first service.
  • the (i-1) channels used to perform the first service include k channels as newly configured channels and (ik-1) channels as configured channels.
  • the (ik-1) channels are (i-1) channels other than the k newly configured channels.
  • each channel of the multiple channels can be used to execute different services, and the nodes can execute different services through different channels at the same time.
  • the controller 110 configures a first channel and a second channel between the node 121 and the node 122.
  • the first channel can be used to perform the first service
  • the second channel can be used to perform the second service
  • the node can be in a macro cycle.
  • the first service is executed through the first channel and the second service is executed through the second channel.
  • k is an integer greater than or equal to 0 and less than or equal to (i-1).
  • the configured channel refers to the bandwidth resource that the controller 110 configures for other services.
  • the current bandwidth resource of the channel may be occupied by the other service or unavailable. Occupied by the other services, correspondingly, the time domain resources corresponding to the channel may be in an idle state, may be partially occupied, or may be fully occupied, and the other services refer to services other than the first service.
  • the controller 110 configures a first channel for the node 121 to execute a second service.
  • the first channel is a configured channel
  • the node 121 can use a macro All the time units in the cycle execute the second service through the first channel, or the node 121 can use part of the time units in a macro cycle to execute the second service through the first channel, or the node 121 does not execute the second service.
  • the newly configured channel (also referred to as a new channel) refers to the bandwidth resource configured by the controller 110 for the first service.
  • composition of the (i-1) channels has the following three situations:
  • Each of the (i-1) channels is a newly configured channel, and the time domain resource corresponding to the newly configured channel is in an idle state, which means that the previous hop node of the newly configured channel can pass through the newly configured channel.
  • the configured channel uses any at least one time unit in a macrocycle to execute the first service.
  • the last hop node of the channel refers to the first node through which the message passes among the two nodes at the two ends of the channel.
  • the two nodes at the two ends corresponding to the first channel are the first node and the second node, and the first channel is used to execute the first service. If the message of the first service is forwarded to the second node via the first node, then The last hop node of the first channel is the first node.
  • the controller 110 may configure (i-1) new channels for the first service, and the (i-1) new channels are only used to execute the first service, that is, ,
  • the (i-1) new channels are dedicated channels for the first service in the first transmission path, which avoids the interference of transmitting other services, and the node can use any at least one time unit in a macrocycle to execute the first
  • the business has high flexibility and can ensure the provision of good forwarding services for the first business.
  • the controller 110 may configure (i-1) new channels for the first service.
  • the bandwidth of each channel of the new configuration can be the same.
  • the maximum amount of data that can be transmitted by i nodes in a time unit is equal.
  • the time length of each time unit is 10 ⁇ s
  • the controller 110 newly configures the first channel with a bandwidth of 1.2Gbits/s between the node 121 and the node 122, and the newly configured bandwidth between the node 122 and the node 123 is 1.2
  • the node 121 can transmit a maximum of 1.5 kB of data in each time unit through the first channel
  • the node 122 can transmit a maximum of 1.5 kB of data in each time unit through the second channel.
  • k is equal to (i-1)
  • the controller 110 configures (i-1) new channels for the first service, and the bandwidth of each channel meets the bandwidth requirements of the first service, and the newly configured
  • the last hop node of the channel can use any at least one time unit in a macrocycle to execute the first service through the newly configured channel, which has high flexibility and can provide good forwarding services for the first service.
  • Case 2 Some of the (i-1) channels are newly configured channels, and the remaining part of the channels are configured channels. Among them, each of the newly configured channels and each of the configured channels meet the bandwidth requirement of the first service. This means that the controller 110 configures a new channel for executing the first service between two partially adjacent nodes among the i nodes, and the remaining two adjacent nodes among the i nodes are at least In a channel, a channel is determined to be used to execute the first service.
  • the controller 110 may newly configure a channel for executing the first service between the two adjacent nodes, or may select from the at least one configured channel. Among the configured channels, one of the channels is determined to be used to execute the first service.
  • the controller 110 determining the channel for executing the first service between the node 121 and the node 122 as an example, and whether to configure a new channel between two adjacent nodes to execute the first service, or from the configured channel In the channels, determine a channel to execute the first service for a detailed description. Among them, the message of the first service is forwarded by the node 121 to the node 122.
  • Figure 3 is a flowchart of a resource configuration method.
  • the controller 110 obtains the bandwidth resource occupation status of the node 121.
  • the controller 110 may obtain the bandwidth resource occupancy status of the node 121 according to the resource occupancy table entries maintained by the controller 110.
  • S302 The controller 110 determines whether there is a configured channel between the node 121 and the node 122 according to the bandwidth resource occupancy of the node 121. If there is a configured channel between the node 121 and the node 122, execute S303; if there is no configured channel between the node 121 and the node 122, then execute S305.
  • the bandwidth resource occupancy of node 121 only includes the first channel
  • the identifiers of the two nodes at the two ends corresponding to the first channel are the identifier of node 121 and the identifier of node 124 respectively
  • the controller 110 may determine whether the node 121 and the node 122 are There is no configured channel between.
  • the bandwidth resource occupancy of node 121 includes the first channel and the second channel.
  • the identifiers of the two nodes at the two ends corresponding to the first channel are the identifier of node 121 and the identifier of node 124, respectively.
  • the identifiers of the two nodes are the identifier of the node 121 and the identifier of the node 122 respectively, and the controller 110 may determine that there is a configured channel between the node 121 and the node 122, that is, the second channel.
  • S303 The controller 110 determines whether the bandwidth of at least one channel among the configured channels between the node 121 and the node 122 meets the bandwidth requirement of the first service according to the bandwidth requirement of the first service and the bandwidth resource occupancy of the node 121. If the bandwidth of at least one of the channels configured between the node 121 and the node 122 meets the bandwidth requirement of the first service, execute S304; if the bandwidth of all the configured channels between the node 121 and the node 122 does not meet the bandwidth requirement of the first service For the bandwidth requirement of a service, S305 is executed.
  • the bandwidth requirement of the first service is 1.2Gbits/s
  • the configured channel between node 121 and node 122 includes the first channel and the second channel
  • the bandwidth of the first channel is 1Gbits/s
  • the bandwidth of the second channel is 1Gbits/s.
  • the bandwidth is 1.2 Gbits/s
  • the controller 110 may determine that the bandwidth of the first channel does not meet the bandwidth requirement of the first service, and the bandwidth of the second channel meets the bandwidth requirement of the first service.
  • the controller 110 determines a channel from the configured channels between the node 121 and the node 122 for executing the first service.
  • the controller 110 may determine from the multiple configured channels that the channel with the largest bandwidth is used to execute the first service; Alternatively, the controller 110 may determine from the plurality of configured channels that the channel with the smallest bandwidth is used to execute the first service; or, the controller 110 may determine any one of the plurality of configured channels Used to execute the first service; this embodiment of the application does not limit this.
  • the controller 110 configures a new channel between the node 121 and the node 122 for executing the first service.
  • the controller 110 can determine whether to configure a new channel between two adjacent nodes to execute the first service, or to determine from at least one channel that has been configured between the two nodes One of the channels is used to execute the first service.
  • k is an integer greater than 0 and less than (i-1)
  • the controller 110 configures k new channels and (i-1-k) configured channels for the first service, and the (i- 1-k) Each channel of the configured channels meets the bandwidth requirement of the first service, which means that the excess resources in the configured channels are reasonably used, which avoids resource waste and improves resource utilization.
  • Case 3 All channels in (i-1) channels are configured channels. Among them, each of the configured channels meets the bandwidth requirement of the first service. This means that between any two adjacent nodes among the i nodes, the controller 110 determines a configured channel from at least one configured channel between the two nodes to perform the first service.
  • the controller 110 It can be determined that one configured channel between every two adjacent nodes in the i nodes is used to execute the first service, that is, (i-1) configured channels are used to execute the first service.
  • k is equal to 0, and the controller 110 determines (i-1) configured channels for executing the first service, and the bandwidth of each of the channels meets the bandwidth requirement of the first service. Since the (i-1) channels used to perform the first service are configured channels, it means that the (i-1) channels not only need to perform the first service but also need to perform other services, so that a large amount of excess resources are obtained. Reasonable utilization avoids waste of resources and improves resource utilization.
  • the controller 110 may send one or more of the following information to each node in the first transmission path: the identification of the channel that executes the first service, and execute the first The bandwidth of the service channel, or the identity of the first service, etc. Further, the controller 110 may also receive a response message from each node in the first transmission path. The response message may indicate that the node has stored one or more of the identification of the channel for executing the first service indicated by the controller 110, the bandwidth of the channel for executing the first service, or the identification of the first service.
  • the controller 110 may determine the time unit for executing the first service in a macro cycle according to the bandwidth of each of the (i-1) channels and the bandwidth requirement of the first service. The number N.
  • the controller 110 may determine the bandwidth corresponding to a time unit according to the bandwidth of the channel, and then determine the number N of time units used to execute the first service in a macrocycle according to the bandwidth corresponding to a time unit and the bandwidth requirement of the first service.
  • a macrocycle includes 10 time units, and the time length of each time unit is 10 ⁇ s.
  • the bandwidth of each channel in (i-1) channels is 1.2Gbits/s, which means that each The bandwidth corresponding to the time unit is 1.2G bits/s.
  • the bandwidth requirement of the first service is 0.6 Gbits/s, and the controller 110 may determine that there are 5 time unit data for executing the first service in one macrocycle.
  • the controller 110 can determine ( i-1) The smallest bandwidth among the (i-1) bandwidths corresponding to the channels. Then, the controller 110 may determine the number N of time units used to execute the first service in a macro cycle according to the minimum bandwidth and the bandwidth requirement of the first service.
  • a macrocycle includes 10 time units, the time length of each time unit is 10 ⁇ s, the bandwidth of the first channel between node 121 and node 122 is 1.2 Gbits/S, and node 121 can transmit within one time unit
  • the maximum amount of data is 1.5kB
  • the bandwidth of the second channel between node 122 and node 123 is 2.4Gbits/S
  • the maximum amount of data that node 122 can transmit in a time unit is 3kB
  • the first channel and the second channel The minimum bandwidth in the channel is 1.2Gbits/S
  • the bandwidth requirement of the first service is 0.6Gbits/S.
  • the controller 110 can determine according to the minimum bandwidth that the time unit data used to execute the first service in a macrocycle is 5 A.
  • the controller 110 configures N positions of the N time units in a macrocycle for the first node.
  • the node 121 (that is, the first node) is configured with N time units at N positions in one macrocycle.
  • the controller 110 may configure the N time units for the first node in one macrocycle Any N positions of. For example, there are three time units in a macrocycle, and the number of time units for performing the first service is two, and the controller 110 configures the first node with the first time unit (sequence number is 0) and the first time unit in a macrocycle.
  • Two time units of two time units perform the first service, or configure the first time unit (serial number 0) and the third time unit (serial number 2) in a macro cycle
  • the first service is performed by the two time units of, or the second time unit (sequence number 1) and the third time unit (sequence number 2) in a macrocycle are configured to perform the first service.
  • the controller 110 may configure the same bandwidth for each of the (i-1) channels, so that the maximum amount of data that can be transmitted by the i nodes in one time unit is the same.
  • the time length of each time unit is 10 ⁇ s
  • the controller 110 newly configures the first channel with a bandwidth of 1.2G bits/s between node 121 and node 122, and newly configures a bandwidth of 1.2G between node 122 and node 123 The second channel of bits/s.
  • the node 121 can transmit a maximum of 1.5 kB of data in each time unit through the first channel
  • the node 122 can transmit a maximum of 1.5 kB of data in each time unit through the second channel.
  • the controller 110 may
  • the node 121 is first configured with N time units at N positions in a macrocycle, and then based on the time domain resource occupancy of nodes other than node 123 (ie, the second node) in the first transmission path, and the macrocycle deviation Move, adjust the time domain resource allocation situation of at least one node, so that the time domain resource used for executing the first service of the at least one node in a macro cycle is in an idle state.
  • the time domain resource conflict refers to that one channel needs to be used to execute at least one service within a time unit, or one channel needs to be used to execute at least one service within a time unit, and the bandwidth resource in the one time unit does not satisfy the at least one service.
  • the total bandwidth requirements of the business For example, the bandwidth resource occupancy of node 121 includes the first channel and the second channel. Both the bandwidth of the first channel and the bandwidth of the second channel meet the bandwidth requirements of the first service.
  • the node 121 uses the first channel to use a macrocycle sequence
  • the two time units numbered 0 and 1 perform the second service
  • the node 121 uses the two time units numbered 3 and 4 in a macrocycle to perform the third service through the second channel
  • the controller 110 configures one for node 121
  • the two time units with sequence numbers 1 and 2 in the macrocycle execute the first service.
  • the node 121 needs to execute the first service and the second service at the same time in the time unit with the sequence number 1 in one macrocycle. Therefore, the first channel has a time domain resource conflict; for the second channel, the node 121 executes the first service and the third service in the time units corresponding to two different positions in a macrocycle, so when the second channel does not exist Domain resource conflict.
  • the bandwidth resource occupancy of node 121 includes the first channel and the second channel, the bandwidth requirement of the first service is 1.2G bits/s, the bandwidth requirement of the second service is 1G bits/s, and the bandwidth of the first channel is 1.2G bits/s, the bandwidth of the second channel is 2.4G bits/s; for the first channel, the bandwidth corresponding to one time unit is 1.2G bits/s, which obviously does not meet the total bandwidth of the first service and the second service Demand, the first channel has a time domain resource conflict; for the second channel, the corresponding bandwidth in a time unit is 2.4 Gbits/s, which obviously meets the total bandwidth requirements of the first service and the second service, then the second There is no time domain resource conflict in the channel.
  • the first channel is one of the configured channels between the node 122 and the node 123.
  • the controller 110 configures the node 121 to execute the first service at the time unit corresponding to N positions in a macrocycle, and the node 122
  • the first service is executed in H time units corresponding to H time units in a macrocycle, and the time unit corresponding to at least one of the H positions is occupied by the second service, or at least one of the H positions
  • the time unit corresponding to a location has been allocated to the second service, the size of H is equal to the size of N, and the serial numbers of H time units may be different from the serial numbers of N time units.
  • Figure 4 is a flowchart of a resource configuration method.
  • the controller 110 obtains the time domain resource occupation status of the node 122 to determine the identifier of the second service and the number Q of time units used by the node 122 to execute the second service.
  • the controller 110 can obtain the time domain resource occupancy status of the node 122 according to the resource occupancy table items maintained by the controller 110, so that the controller 110 can determine the identity of the second service, and the node 122 needs a macrocycle to execute the second service Q time units within, Q is a positive integer greater than 1.
  • the controller 110 determines a second transmission path for executing the second service according to the identifier of the second service.
  • the second transmission path includes a node 122 and a node 124, and the second service enters the network 130 via the node 124.
  • the controller 110 determines K positions according to the first macrocycle offset, where the K positions are positions of the node 124 corresponding to the H positions in one macrocycle.
  • the controller 110 may obtain the first macroperiod offset according to the macroperiod offset entry, and the macroperiod offset entry is used to store the transmission delay of the packet in the network 130 between two nodes.
  • the first macrocycle offset is the time delay for the message to be transmitted from the node 124 to the node 122 along the second transmission path.
  • the node 122 is the next hop node of the node 124, and the controller 110 obtains the macroperiod offset entry of the node 122, and determines the time delay of the packet transmission from the node 122 to the node 124, which is The first macrocycle offset.
  • the message of the second service is forwarded by the node 124 to the node 125, and then forwarded by the node 125 to the node 122, and the controller 110 respectively according to the macroperiod offset entry of the node 125 and the macroperiod offset entry of the node 122 , Determine the transmission delay between the node 124 and the node 125, and the transmission delay between the node 125 and the node 122, the first macrocycle offset is the transmission delay between the node 124 and the node 125, and the node 125 The sum of the transmission delays with the node 122.
  • the controller 110 reconfigures the Q positions of the Q time units in a macro period for the node 124 according to the resource occupation of the nodes in the second transmission path, and the Q positions include K positions in a macro period. Outside the location.
  • the controller 110 reconfigures the Q locations of Q time units in a macrocycle for the node 124 according to the bandwidth resource occupancy status and/or the time domain resource occupancy status of the nodes in the second transmission path, and the Q locations include Positions other than K positions in a macrocycle.
  • S405 The controller 110 sends a reconfiguration message to the node 124, where the reconfiguration message indicates Q positions.
  • the node 124 After the node 124 receives the reconfiguration message, in response, it will execute the second service in Q time units corresponding to the Q positions. In this way, since the Q positions are excluding the K positions in a macrocycle Therefore, the K time units corresponding to the K positions are in the idle state, and at node 122, the K positions correspond to the H positions, so the H time units corresponding to the H positions are also in the idle state, and the solution The time domain resource conflict problem of node 122 is solved.
  • the controller 110 avoids or resolves time-domain resource conflicts at nodes, so that excess bandwidth resources can be reasonably used, and resource waste is reduced, thereby providing resource utilization.
  • the controller 110 determines that by adjusting the time domain resources used by the node 124 to execute the second service according to the resource occupancy of the nodes in the second transmission path, the K positions cannot be set.
  • the corresponding K time units are all in the idle state, which means that the H time units corresponding to the H positions in a macro cycle cannot be made to be in the idle state.
  • the controller 110 can be configured from the node 122 and the node 123.
  • a channel other than the first channel is determined to perform the first service among the channels. Further, if all configured channels between the node 122 and the node 123 have time domain resource conflicts, and it is unavoidable, the controller 110 may configure a channel for executing the first service between the node 122 and the node 123.
  • the process shown in FIG. 4 adjusts the positions of Q time units in the node 124 in a macro cycle for the controller 110 to achieve the purpose of adjusting the time domain resources used by the node 122 to execute the second service, thereby
  • the node 122 uses the time units corresponding to different positions to execute the first service and the second service respectively through the first channel.
  • the controller 110 can adjust the positions of the N time units in the node 121 within a macrocycle to achieve the purpose of adjusting the time domain resources used by the node 122 to execute the first service, so that the node 122 can pass the first service.
  • One channel uses time units corresponding to different locations to execute the first service and the second service respectively.
  • M 6
  • the sequence numbers corresponding to the 6 time units in a macrocycle are 0, 1, 2, 3, 4, and 5 respectively.
  • the second service passes through node 121, node 122, and node 125.
  • the third service passes through node 124, node 122, and node 123.
  • the node 121 is within 3 time units of the first time unit, the second time unit, and the third time unit (that is, the sequence numbers are 0, 1, and 2 respectively) in a macrocycle , Send a message of the second service to node 122 through the first channel between node 121 and node 122; the macrocycle offset between node 121 and node 122 is 3 time units, node 122 receives the second service After the message, in three time units of the fourth time unit, the fifth time unit and the sixth time unit (that is, the sequence numbers are 3, 4, and 5 respectively) in a macrocycle, pass through node 122 The second channel with the node 125 sends the message of the second service to the node 125.
  • the node 124 is within 3 time units of the first time unit, the fifth time unit, and the sixth time unit (that is, the sequence numbers are 0, 4, and 5 respectively) in a macrocycle ,
  • the third service packet is sent to the node 122 through the third channel between the node 124 and the node 122, the macrocycle offset between the node 124 and the node 122 is 1 time unit, and the node 122 receives the third service
  • the first time unit, the second time unit, and the sixth time unit in a macrocycle that is, the sequence numbers are 0, 1, and 5, respectively.
  • sequence number of node 122 is The message sent in the time unit of 0 is the message sent by the node 124 in the time unit of the sequence number 5 in the previous macrocycle) within 3 time units, passing between the node 122 and the node 123 The fourth channel of the sender sends a message of the third service to the node 123.
  • the controller 110 receives a request message for instructing to configure time domain sub-resources for the first service, which enters the network 130 through the node 121 and leaves the network 130 through 123.
  • a channel has been configured between node 121 and node 122, that is, the first channel, and a channel has been configured between node 122 and node 123, that is, the second channel.
  • the node 121 and the node 122 respectively have 3 time units in an idle state in a macro cycle, so it can be considered to select a configured channel to perform the first service.
  • the controller 110 since the node 121 uses the 3 time units with sequence numbers 0, 1, and 2 to perform the second service, and the 3 time units with sequence numbers 3, 4, and 5 are in an idle state, the controller 110 It can be determined that node 121 uses 2 time units with sequence numbers 3 and 4 to perform the first service, or uses 2 time units with sequence numbers 3 and 5 to perform the first service, or uses 2 time units with sequence numbers 4 and 5 The time unit executes the first business. Suppose that the controller 110 determines that the node 121 uses 2 time units with sequence numbers 3 and 4 to perform the first service, that is, configures the fourth time unit and the fifth time unit in a macrocycle for the node 121 to perform the first service .
  • node 122 Since the macrocycle offset between node 121 and node 122 is 2 time units, node 122 needs to use 2 time units with sequence numbers 5 and 0 to perform the first service, but the sequence numbers of node 122 are 5, 0
  • the 2 time units of the has been configured for the third service that is, the node 122 needs to use the 2 time units with sequence numbers 5 and 0 to forward the packets of the first service and the packets of the third service at the same time, and there is a time domain Resource conflict.
  • the node 122 needs to use 2 time units with sequence numbers 5 and 0 to execute the first service.
  • the macrocycle offset between the node 124 and the node 122 is 1 time unit, and the node 122 is used to execute the first service 2 times When the unit corresponds to the node 124, the sequence numbers of the two time units are 4 and 5.
  • the node 124 has 3 time units in an idle state, and the controller 110 may configure the node 124 with 3 time units other than the sequence numbers 4 and 5 to perform the third service.
  • the controller 110 may configure the node 124 with three time units with sequence numbers 1, 2, and 3 to perform the third service, or configure the three time units with sequence numbers 1, 2, and 0 to perform the third service, or Configure 3 time units with serial numbers 1, 3, and 0 to perform the third service, or configure 3 time units with serial numbers 2, 3, and 0 to perform the third service.
  • the four configuration modes can all ensure that the two time units used by the node 122 to execute the first service are in an idle state. If the controller 110 configures the node 124 with three time units with sequence numbers 1, 2, and 3 to perform the third service, the controller 110 sends a reconfiguration message to the node 124 so that the node 124 uses the sequence number as The 3 time units of 1, 2, and 3 execute the third service. Correspondingly, the node 122 uses 3 time units with sequence numbers 2, 3, and 4 to execute the third service, and uses 2 time units with sequence numbers 5 and 0 to execute the first service, as shown in FIG. 13.
  • the controller 110 may Determine that node 122 uses 2 time units with sequence numbers 2 and 3 to perform the first service, or uses 2 time units with sequence numbers 2 and 4 to perform the first service, or uses 2 time units with sequence numbers 3 and 4 The unit performs the first business.
  • the controller 110 determines that the node 122 uses 2 time units with sequence numbers 2 and 3 to perform the first service.
  • the controller 110 needs to be the node 121 configures the first time unit and the second time unit in a macrocycle to perform the first service, that is, node 121 uses two time units with sequence numbers 0 and 1 to perform the first service, and node 121 has a sequence number of 0
  • the 2 time units of, 1 have been configured for the second service, that is, the node 121 needs to use the 2 time units with sequence numbers 0 and 1 to execute the first service and the second service at the same time, and there is a time domain resource conflict.
  • the controller 110 needs to configure two time units with sequence numbers 0 and 1 for the node 121 to execute the first service, the macrocycle offset between the node 121 and the node 122 is 3 time units, and the node 121 is used to execute the first service When the two time units of, correspond to node 122, the sequence numbers of the two time units are 3 and 4. Since the node 122 has 3 time units in an idle state, the controller 110 may configure the node 122 with 3 time units other than the sequence numbers 3 and 4 to perform the second service.
  • the controller 110 can configure the node 122 with 3 time units with serial numbers 5, 0, 1 to perform the second service, or configure the 3 time units with serial numbers 5, 0, 2 to perform the second service, or configure the serial number Perform the second service for the 3 time units of 5, 1, and 2, or configure the 3 time units with sequence numbers of 0, 1, and 2 to execute the second service.
  • the four configuration modes can all ensure that the two time units used by the node 121 to execute the first service are in an idle state.
  • node 122 uses 3 time units with sequence numbers 5, 0, and 1 to perform the second service, and the sequence numbers corresponding to node 121 are 2, 3, and 4, controller 110 sends a reconfiguration message to node 121 to In the next macrocycle, the node 121 uses 3 time units with sequence numbers 2, 3, and 4 to execute the second service.
  • the node 122 uses 3 time units with sequence numbers 5, 0, and 1 to execute the second service, and uses 2 time units with sequence numbers 2 and 3 to execute the first service, as shown in FIG. 14.
  • S205 The controller 110 sends a configuration message to the first node, where the configuration message indicates the N positions of the N time units in one macrocycle.
  • the configuration message also indicates the identity of the first channel and/or the identity of the first service, where the first channel is used to indicate the bandwidth resource between the first node and the next hop node of the first node for executing the first service .
  • the controller 110 configures the first node with N time units in a macrocycle with the time unit as the granularity, so that the first node will execute the first service in a fixed N time units. This means that the controller 110 can control the delay for the first node to forward the first service packet within a certain index range.
  • the controller 110 can grasp the forwarding delay of the first service message at each node, that is, when each node forwards the message The delay is deterministic for the controller 110 and meets the requirement of the DIP technology to provide deterministic forwarding services.
  • the macrocycle offset table entry includes the macrocycle offsets of all nodes in the network 130.
  • the controller 110 can strictly control the size of the packets forwarded per unit time within a range.
  • the controller 110 may adjust the transmission delay between nodes in the macroperiod offset table entry, the time domain resource occupancy between each node, and the bandwidth resource occupancy between each node. Excess bandwidth resources are allocated to new services, thereby reducing resource waste and improving resource utilization.
  • the controller 110 may receive a control instruction from an administrator, and the control instruction is used to adjust the time domain resource occupancy of each node in the network 130 to improve resource utilization.
  • FIG. 5 is a schematic flowchart of a method for determining a macrocycle offset according to an embodiment of this application. This method can be applied to the communication system 100 shown in FIG. 1.
  • the method provided in the embodiment of the present application is applied to the communication system 100 shown in FIG. 1 as an example.
  • the third node generates a first indication message, and sends a second indication message to the fourth node.
  • the third node and the fourth node are any two nodes in the network 130, and the sixth node is the next hop node of the seventh node.
  • the third node may automatically generate the first indication message according to the set frequency, or may be controlled by the controller 110, which is not limited in the embodiment of the present application.
  • the first indication message is generated after the third node receives the control message sent by the controller 110.
  • S502 The third section sends the first indication message to the fourth node.
  • the first indication message indicates the first position, so that the fourth node determines the second macrocycle offset.
  • the first position is the position in a macrocycle of the time unit at which the third node generates the first indication message.
  • the position may be a sequence number. Then the third node carries the first position into the first indication message and sends it to the fourth node.
  • the time unit for generating the first indication message refers to the time unit where the timestamp for generating the first indication message is located, for example, the timestamp for generating the first indication message is within a time unit with a sequence number of 1 in a macrocycle ,
  • the time unit for generating the first indication message refers to the time unit with the sequence number 1.
  • the second macrocycle offset is used to indicate the time delay for the message to be transmitted from the third node to the fourth node.
  • the first position may be determined by the time stamp of the internal chip included in the third node generating the first indication message and the time stamp of starting the internal chip, where the internal chip is used to determine the macrocycle offset or generate The first indication message.
  • the internal chip may be a field programmable gate array (FPGA) chip or other gated queue chips, which is not limited in the embodiment of the present application.
  • the first position satisfies the following formula:
  • floor( ⁇ ) represents rounding down
  • mod represents remainder operation
  • T represents macrocycle
  • X represents the first position
  • t 1 represents the timestamp of the first indication message generated by the internal chip
  • t 0 represents the start of the third node The timestamp of the internal chip.
  • the first indication message is carried in an internal gateway protocol message or in a user datagram protocol message.
  • the fourth node receives the first indication message, and determines the second macrocycle offset according to the first indication message.
  • the fourth node After receiving the first indication message, the fourth node, in response, determines the second macroperiod offset according to the first position and the second position.
  • the second position is the time unit for the fourth node to respond to the first indication message in one macroperiod. In the location.
  • the second position may be determined by the timestamp when the internal chip of the fourth node receives the first indication message and the timestamp when the internal chip is started.
  • the fourth sequence number satisfies the following formula:
  • floor( ⁇ ) represents rounding down
  • mod represents remainder operation
  • T represents macrocycle
  • Y represents the second position
  • t 2 represents the timestamp of the first indication message received by the internal chip
  • L max represents the delay constant
  • T 3 represents the timestamp when the fourth node starts the internal chip.
  • the fourth node determines the second macroperiod offset according to the difference between the first position and the second position.
  • the second macrocycle offset satisfies the following formula:
  • floor( ⁇ ) represents rounding down
  • mod represents the remainder operation
  • T represents the macrocycle
  • X represents the first position
  • Y represents the second position
  • Macro_Delta represents the second macrocycle offset
  • the fourth node After the fourth node determines the second macrocycle offset with the third node, it sends the macrocycle offset information to the controller 110.
  • the macrocycle offset information includes the third macrocycle offset and the identifier of the third node. Or one or more of the identifications of the fourth node.
  • the controller 110 receives the macrocycle offset information, and maintains or updates the macrocycle offset table entry of the fourth node. Wherein, the macrocycle offset table entry stores the macrocycle offset of each node in the network 130.
  • the controller 110 can collect the transmission delay between the nodes in the network 130. In this way, when the resource is configured, the controller 110 can offset the entries according to the macrocycle and reasonably Nodes perform resource configuration to avoid time domain resource conflicts and improve resource utilization.
  • the nodes passed by the channel include node 121, node 122 and node 123, where the ingress edge node is node 121 and the egress edge node is 123.
  • the node 121 forwards the message to the node 122
  • the node 122 forwards the message to the node 123 after receiving the message
  • the node 123 transmits the message to other networks 130 after receiving the message.
  • node 122 determines the macrocycle offset from node 121 to node 122 and reports it to controller 110;
  • node 123 determines the macrocycle offset from node 122 to node 123 and reports it to the controller. ⁇ 110.
  • the third node sends the first indication message indicating the first position to the fourth node.
  • the fourth node determines from the third node according to the first position and the second position.
  • the transmission delay between the node and the fourth node, that is, the second macrocycle offset, and then the fourth node sends the second macrocycle offset to the controller 110.
  • the controller 110 can collect the macrocycle offset of each node in the network 130, and can more accurately determine the time domain resource occupancy of each node in the network 130.
  • the macro-cycle offset of the system reasonably configures time-domain resources for each node, avoids time-domain resource conflicts, and improves resource utilization.
  • the embodiment of the present application provides another resource configuration method. Please refer to FIG. 7, which is a schematic flowchart of the method. This method can be applied to the communication system 100 shown in FIG. 1. In the following introduction, the method provided in the embodiment of the present application is applied to the communication system 100 shown in FIG. 1 as an example.
  • the first node receives a configuration message from the controller 110, the configuration message indicating N positions of N time units in one macrocycle.
  • the first node receives the configuration message from the controller 110, and in response, the first node will execute the first service in N time units corresponding to N positions in a macrocycle.
  • the first node may also receive a first forwarding instruction from the controller 110, where the first forwarding instruction is used to indicate the identity of the fifth node.
  • the fifth node is the next hop node of the first node on the first transmission path. Further, after adding the fifth node to the forwarding table, the first node sends a first forwarding response message to the controller 110.
  • the first node generates the second indication information
  • the second indication information includes a first sequence number
  • the first sequence number is a unit of time when the first node generates the second indication information.
  • the sequence number in the macrocycle.
  • the first node sends the second indication information to the fifth node, where the second indication information is used to instruct the fifth node to determine a second macroperiod according to the first sequence number and the second sequence number Offset
  • the second sequence number is the sequence number in a macro cycle of the time unit of the fifth node in response to the second indication information
  • the second macro cycle offset is used to indicate that the packet moves from the first node Transmission delay to the fifth node.
  • S702 The first node executes the first service in N time units corresponding to N positions.
  • the first node may execute the process executed by the third node in FIG. 5 and/or may execute the process executed by the fourth node in FIG. 5. That is, the first node may generate the first position, and instruct the next hop node of the first node to determine the transmission delay between the first node and the next hop node of the first node through the first indication message, and may also receive A first indication message from the last hop node of the first node, based on the first indication message, determine the transmission delay between the first node and the last hop node of the first node, and report the transmission delay as a control ⁇ 110.
  • the specific implementation process refer to the process shown in FIG. 5, which will not be repeated here.
  • the first node receives the configuration message sent by the controller 110, and the configuration message indicates the N positions of the N time units in one macrocycle.
  • the first node will use the N time units corresponding to the fixed N positions to execute the first service, instead of using the time units corresponding to the positions other than the N positions in a macrocycle
  • Executing the first service means that the first node executes the first service within a certain time range and meets the requirements of DIP technology to provide deterministic forwarding services.
  • the embodiment of the present application also provides a controller, as shown in FIG. 8, the controller includes a transceiver unit 801 and a processing unit 802; the processing unit 802 is configured to pass through the transceiver unit 801 receives a request message, the request message is used to instruct the controller to configure time domain resources for executing the first service, and send a configuration message to the first node through the transceiver unit 801, the configuration message indicates N time units N locations in a macrocycle; wherein the N time units are time domain resources for executing the first service, and the bandwidth resources corresponding to the N time units meet the bandwidth requirements of the first service , One of the N time units is used to indicate the minimum duration for scheduling time domain resources, a macrocycle includes M time units, where M is an integer greater than or equal to N, and N is greater than Or an integer equal to 1.
  • the controller sends a configuration message indicating N locations to the first node in response to the request message.
  • the first node will use the time unit as the granularity, and the location of the N locations in a macrocycle is
  • the first service is executed in the corresponding N time units, and the first service will not be executed in the time units other than the N time units corresponding to the N positions in the macrocycle, which means that the controller can perform the first service
  • the time delay for a node to forward the first service message is controlled within a certain index range, which meets the requirement of the DIP technology to provide deterministic forwarding services.
  • the processing unit 802 is specifically configured to: according to the request message, determine the number N of time units used to execute the first service in a macro cycle; For the time domain resource occupancy of the nodes in the transmission path, the N positions of the N time units in a macrocycle are configured for the first node, wherein the entry of the first transmission path is the first The node and the exit are the second node, and the first service enters the first network via the first node, and leaves the first network via the second node.
  • the first transmission path includes a third node
  • the H positions are positions of the third node corresponding to the N positions in a macrocycle
  • the H positions The time unit corresponding to at least one of the locations is occupied by the second service, the size of the H is equal to the size of the N
  • the processing unit 802 is further configured to: the controller adjusts the use of the third node After the time domain resources for executing the second service are adjusted, the H time units corresponding to the H positions are in an idle state.
  • the processing unit 802 is specifically configured to: determine K positions according to the first macrocycle offset, where the K positions are the fourth node's relationship with the first macrocycle within one macrocycle. Locations corresponding to H locations, where the second service enters the first network via the fourth node, and the first macrocycle offset is the amount of data transmitted from the fourth node to the third node Delay, the size of K is equal to the size of H; according to the time domain resource occupancy of the nodes in the second transmission path, the fourth node is reconfigured with Q time units in one macrocycle. Positions, wherein the Q time units are time domain resources for the fourth node to perform the second service, the Q positions include positions other than the K positions in a macrocycle, and the The second transmission path is used to transmit the message of the second service.
  • the processing unit 802 is specifically configured to: according to the bandwidth resource occupancy status of the nodes in the first transmission path, between every two adjacent nodes in the first transmission path A channel for executing the first service is configured between the channels, and the configured channel is used to determine the bandwidth resource corresponding to each time unit, wherein the entrance of the first transmission path is the first node, and the exit is the first node. Two nodes, the first service enters the first network via the first node, and leaves the first network via the second node.
  • the first transmission path includes a fifth node and a sixth node, and the fifth node is a next hop node of the sixth node; the processing unit 802 specifically uses In: according to the bandwidth resource occupancy of the fifth node and the bandwidth requirement of the first service, configure a channel for executing the first service between the fifth node and the sixth node; Or, according to the bandwidth resource occupancy of the fifth node and the bandwidth requirement of the first service, from the at least one configured channel between the fifth node and the sixth node, determine one for The channel for executing the first service.
  • the transceiving unit 801 is further configured to: receive a first indication message from the seventh node, the first indication message indicating at least one macrocycle offset, wherein the at least Any macrocycle offset in one macrocycle offset is the time delay for the packet to be transmitted from the previous hop node of the seventh node to the seventh node, the seventh node, and the seventh node
  • the last hop node of is two nodes in the first network
  • the processing unit 802 is further configured to: update the macroperiod table entry of the seventh node based on the first indication message, the macroperiod table entry For storing the at least one macrocycle offset.
  • the configuration message further includes the identifier of the first channel and/or the identifier of the first service, and the first channel is the first node and the connection between the first node and the first node.
  • the bandwidth resource between next hop nodes used to execute the first service is the identifier of the first channel and/or the identifier of the first service.
  • the request message includes one or more of the following information: the identifier of the first node, the identifier of the second node, or the bandwidth requirement of the first service.
  • each functional unit in each embodiment of the present application may be integrated in a processor in a software or hardware manner, each functional unit may also exist alone physically, or two or more functional units may be integrated into a module.
  • the integrated functional unit can be implemented in the form of hardware or software.
  • the device may be a controller, including a processor 901, and the physical hardware corresponding to the processing unit 802 may be the processor 901.
  • the controller may further include a transceiver 904, and the physical hardware corresponding to the foregoing transceiver unit 801 may be the transceiver 904.
  • the processor 901 may be a central processing unit (English: central processing unit, CPU for short), or a digital processing processor (DSP), or the like. It also includes a memory 902, which is used to store a program executed by the processor 901.
  • the memory 902 may be a non-volatile memory, such as a hard disk (English: hard disk drive, abbreviation: HDD) or a solid-state drive (English: solid-state drive, abbreviation: SSD), etc., or may be a volatile memory (English: volatile memory), such as random access memory (English: random-access memory, abbreviation: RAM).
  • the memory 902 may also be any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
  • the processor 901 is configured to execute program codes stored in the memory 902, and specifically call program instructions stored in the memory 902. Specifically, the processor 901 receives the request message of the first service through the transceiver 904, so the transceiver 904 is used as a specific execution unit to receive the request message and pass it to the processor 901, so that the processor 901 configures N for the first node
  • the time unit is in N positions within a macrocycle.
  • the specific connection medium between the foregoing processor 901 and the memory 902 is not limited in the embodiment of the present application.
  • the processor 901 and the memory 902 in FIG. 9 are connected by a bus 903.
  • the bus is represented by a thick line in FIG. Is limited.
  • the bus can be divided into an address bus, a data bus, a control bus, and so on. For ease of representation, only one thick line is used in FIG. 9, but it does not mean that there is only one bus or one type of bus.
  • the embodiment of the present application also provides a network node.
  • the network node is a first node, and the first node includes a transceiver unit 1001 and a processing unit 1002; 1001, configured to receive a configuration message from the controller, where the configuration message indicates that N time units are used to receive resource configuration instructions from the controller at N positions in a macrocycle; the processing unit 1002 is configured to The first service is executed in N time units corresponding to N positions; wherein the N time units are time domain resources for executing the first service, and the bandwidth resources corresponding to the N time units satisfy the first The bandwidth requirement of a service, one of the N time units is used to indicate the minimum duration of scheduling time domain resources, a macrocycle includes M time units, and the M is an integer greater than or equal to the N, The N is an integer greater than or equal to 1.
  • the first node receives the configuration message, and in response, uses the N time units corresponding to the N positions in a macrocycle to execute the first service in order to meet the requirement of providing deterministic forwarding services in DIP technology. Claim.
  • the transceiver unit 1001 is configured to: send a second indication message to the controller, the second indication message indicating at least one macrocycle offset, so that the controller is based on The at least one macrocycle offset updates the macrocycle offset entry of the first node, and the macrocycle offset entry is used to store the at least one macrocycle offset, wherein the at least one macrocycle offset Any macrocycle offset in the offset is the time delay for the message to be transmitted from the previous hop node of the first node to the first node.
  • the last hop node of the first node is the eighth node
  • the at least one macroperiod offset includes a second macroperiod offset
  • the transceiving unit 1001 is further configured to : Receiving a third indication message from the eighth node, where the third indication message indicates a first position, and the first position is the time unit at which the eighth node generates the third indication message in a macro cycle
  • the processing unit 1002 is specifically configured to determine the second macroperiod offset according to the first position and the second position, the second position being the eighth node in response to the The position of the time unit of the third indication message within one macrocycle, and the second macrocycle offset is the time delay for the packet to be transmitted from the eighth node to the first node.
  • the next hop node of the first node is the ninth node
  • the processing unit 1002 is specifically configured to: generate a fourth indication message, where the fourth indication message indicates the third Position, the third position is the position within a macrocycle of the time unit at which the first node generates the fourth indication message
  • the transceiving unit 1001 is specifically configured to: send the ninth node A fourth indication message, where the fourth indication message is used to instruct the ninth node to determine a third macrocycle offset according to the third position and the fourth position, and the fourth position is the response of the ninth node
  • the position of the time unit of the fourth indication message in one macrocycle, and the third macrocycle offset is the time delay for the message to be transmitted from the first node to the ninth node.
  • the configuration message further includes the identifier of the first channel and/or the identifier of the first service, and the first channel is used to indicate the first node and the first service.
  • each functional unit in each embodiment of the present application may be integrated in a processor in a software or hardware manner, each functional unit may also exist alone physically, or two or more functional units may be integrated into a module.
  • the integrated functional unit can be implemented in the form of hardware or software.
  • the device may be a network node and includes a processor 1101.
  • the physical hardware corresponding to the processing unit 1002 may be the processor 1101.
  • the network node may further include a transceiver 1104, and the physical hardware corresponding to the above-mentioned transceiver unit 1001 may be the transceiver 1104.
  • the processor 1101 may be a central processing unit (English: central processing unit, CPU for short), or a digital processing unit (DSP), or the like. It also includes a memory 1102, which is used to store a program executed by the processor 1101.
  • the memory 1102 may be a non-volatile memory, such as a hard disk (English: hard disk drive, abbreviation: HDD) or a solid-state drive (English: solid-state drive, abbreviation: SSD), etc., and may also be a volatile memory (English: volatile memory), such as random access memory (English: random-access memory, abbreviation: RAM).
  • the memory 1102 may also be any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
  • the processor 1101 is configured to execute program codes stored in the memory 1102, and specifically call program instructions stored in the memory 1102. Specifically, the processor 1101 receives a configuration message from the controller through the transceiver 1104, and the configuration message is used to instruct the processor 1101 to execute the first service in N time units corresponding to N positions in a macrocycle. The processor 1101 executes the first service by using N time units corresponding to N positions in a macrocycle according to the configuration message. The processor 1101 executes the first service at the granularity of time unit, so that the delay for the transceiver 1104 to forward the packet of the first service is deterministic, and meets the requirement of providing deterministic forwarding service in the DIP technology.
  • the specific connection medium between the foregoing processor 1101 and the memory 1102 is not limited in the embodiment of the present application.
  • the processor 1101 and the memory 1102 in FIG. 11 are connected by a bus 1103.
  • the bus is represented by a thick line in FIG. Is limited.
  • the bus can be divided into an address bus, a data bus, a control bus, and so on. For ease of representation, only one thick line is used to represent in FIG. 11, but it does not mean that there is only one bus or one type of bus.
  • this application can be provided as methods, systems, or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory form an instruction device, and the instruction device is implemented in the process Figure a process or multiple processes and/or a block diagram of the functions specified in a block or multiple blocks.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Provided are a resource configuration method and device, which are used to meet the requirement for providing a deterministic forwarding service in DIP technology, and which improve the resource utilization rate. The method comprises: a controller receiving a request message, wherein the request message is used to instruct the controller to configure time-domain resources for executing a first service; and the controller sending a configuration message to a first node, wherein the configuration message indicates N positions of N time units within a macrocycle, the N time units are the time-domain resources for executing the first service, and bandwidth resources corresponding to the N time units meet the bandwidth requirement of the first service. The controller configures the time-domain resources by using the time units as the granularity, can control the delay of the first node forwarding a message of the first service to be within an index range, and can meet the requirement for providing a deterministic forwarding service in DIP technology. When the configured resources are excessive, the controller can also configure the excessive resources to new services according to the resource occupation of each node, thereby reducing resource waste and improving the resource utilization rate.

Description

一种资源配置方法及设备Method and equipment for resource allocation
相关申请的交叉引用Cross-references to related applications
本申请要求在2019年12月30日提交中国专利局、申请号为201911404975.X、申请名称为“一种资源配置方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 201911404975.X, and the application name is "a method and equipment for resource allocation" on December 30, 2019, the entire content of which is incorporated herein by reference. Applying.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种资源配置方法及设备。This application relates to the field of communication technology, and in particular to a method and equipment for resource allocation.
背景技术Background technique
在第六版网际互连协议(version 6 internet protocol,IPv6)中,为了满足新应用场景(例如人工智能、工业互联网、物联网等)中差异化服务的需求,提出了确定性网际互连协议(deterministic internet protocol,DIP)技术。DIP技术旨在为业务提供确定性转发服务,确定性转发服务是指通过一些技术处理将节点转发报文的时延控制在确定的指标范围内。In the sixth version of the Internet Protocol (IPv6), in order to meet the needs of differentiated services in new application scenarios (such as artificial intelligence, industrial Internet, Internet of Things, etc.), a deterministic Internet Protocol is proposed (deterministic internet protocol, DIP) technology. DIP technology is designed to provide deterministic forwarding services for businesses. Deterministic forwarding services refer to controlling the delay of node forwarding messages within a certain index range through some technical processing.
目前,在为节点配置资源时,控制器仅需要保证配置的带宽资源满足业务的带宽需求,即只保证单位时间内允许传输的最大数据量满足业务的实际传输需求,但具体在哪个时间段进行数据传输、以及在一个时间段内传输多少数据量,都是不确定的,这样就导致不同的时间范围内的实际带宽不同。例如配置了每秒1.2吉比特(即1.2G bits/s)的带宽,实际应用时在前一个0.5秒内的实际带宽为2.4G bits/s,传输了1.2G bits的数据量,在下一个0.5秒内的实际带宽为0,没有进行数据传输。由于控制器仅为节点配置满足带宽需求的带宽资源,而节点在哪个时间段内转发报文,哪个时间段内不转发报文,以及节点的下一跳节点在哪个时间段内接收该报文,控制器并不确定,故对于控制器而言,节点转发报文的时延是不确定的。显然,目前的资源配置方法无法满足DIP技术提供确定性转发服务的要求。At present, when configuring resources for nodes, the controller only needs to ensure that the configured bandwidth resources meet the bandwidth requirements of the service, that is, it only guarantees that the maximum amount of data allowed to be transmitted per unit time meets the actual transmission requirements of the service, but in which time period it is performed Data transmission and how much data is transmitted in a time period are uncertain, which results in different actual bandwidths in different time ranges. For example, if a bandwidth of 1.2 gigabits per second (that is, 1.2G bits/s) is configured, the actual bandwidth in the previous 0.5 second is 2.4G bits/s in actual application, and the data volume of 1.2G bits is transmitted. The actual bandwidth within seconds is 0, and no data transmission is performed. Because the controller only configures the node with bandwidth resources that meet the bandwidth requirements, and in which time period the node forwards the message, which time period does not forward the message, and in which time period the next hop node of the node receives the message , The controller is not certain, so for the controller, the delay of the node forwarding the message is uncertain. Obviously, the current resource allocation method cannot meet the requirements of DIP technology to provide deterministic forwarding services.
发明内容Summary of the invention
本申请实施例提供了一种资源配置方法及设备,用于满足DIP技术提供确定性转发服务的要求,提高资源利用率。The embodiments of the present application provide a resource configuration method and device, which are used to meet the requirements of DIP technology to provide deterministic forwarding services and improve resource utilization.
第一方面,本申请实施例提出了一种资源配置方法,该方法包括:控制器接收请求消息,请求消息用于指示控制器配置用于执行第一业务的时域资源,控制器向第一节点发送配置消息,该配置消息指示N个时间单元在一个宏周期内的N个位置;其中,所述N个时间单元为执行所述第一业务的时域资源,且所述N个时间单元对应的带宽资源满足第一业务的带宽需求,所述N个时间单元中的一个时间单元用于指示调度时域资源的最小时长,一个宏周期包括M个时间单元,所述M为大于或等于所述N的整数,所述N为大于或等于1的整数。In the first aspect, an embodiment of the present application proposes a resource configuration method. The method includes: the controller receives a request message, the request message is used to instruct the controller to configure the time domain resource for executing the first service, and the controller sends the first service to the first service. The node sends a configuration message indicating the N positions of the N time units in a macrocycle; wherein the N time units are time domain resources for executing the first service, and the N time units The corresponding bandwidth resource satisfies the bandwidth requirement of the first service. One of the N time units is used to indicate the minimum duration for scheduling time domain resources. A macrocycle includes M time units, where M is greater than or equal to The N is an integer, and the N is an integer greater than or equal to 1.
通过上述方法,控制器响应于请求消息,向第一节点发送指示N个位置的配置消息,这样第一节点将会以时间单位为粒度,在一个宏周期内的N个位置所对应的N个时间单元 内执行第一业务,而不会在该宏周期内除该N个位置所对应的N个时间单元之外的时间单元内执行第一业务,意味着控制器可以将第一节点转发第一业务的报文的时延控制在一定的指标范围内,满足DIP技术提供确定性转发服务的要求,例如,控制器通过指示第一节点在一个宏周期内的第二个位置所对应的时间单元内执行第一业务,可以将第一节点转发第一业务的报文的时延控制为1个时间单元。另外,在M大于N时,由于第一业务仅占用一个宏周期内的N个时间单元,剩余的(M-N)个时间单元还可以配置给其它业务,从而减少资源浪费,提高了资源利用率。Through the above method, the controller sends a configuration message indicating N positions to the first node in response to the request message, so that the first node will use the time unit as the granularity, and the N positions corresponding to the N positions in a macrocycle The first service is executed in the time unit, and the first service will not be executed in the time unit other than the N time units corresponding to the N positions in the macrocycle, which means that the controller can forward the first node to the first node. The delay of a service message is controlled within a certain index range to meet the requirements of DIP technology to provide deterministic forwarding services. For example, the controller indicates the time corresponding to the second position of the first node in a macrocycle. The first service is executed in the unit, and the time delay for the first node to forward the first service packet can be controlled to 1 time unit. In addition, when M is greater than N, since the first service only occupies N time units in one macrocycle, the remaining (M-N) time units can also be allocated to other services, thereby reducing resource waste and improving resource utilization.
在一种可选的实施方式中,所述控制器根据所述请求消息,确定在一个宏周期内用于执行所述第一业务的时间单元的数量N;所述控制器根据第一传输路径中的节点的时域资源占用情况,为所述第一节点配置所述N个时间单元在一个宏周期内的N个位置,其中,所述第一传输路径的入口为所述第一节点、出口为第二节点,所述第一业务经由所述第一节点进入第一网络、经由所述第二节点离开所述第一网络。In an optional implementation manner, the controller determines the number N of time units used to execute the first service in a macro cycle according to the request message; the controller according to the first transmission path The time domain resource occupancy status of the node in the node, the N positions of the N time units in a macrocycle are configured for the first node, where the entrance of the first transmission path is the first node, The exit is the second node, and the first service enters the first network via the first node, and leaves the first network via the second node.
通过上述方法,控制器先确定执行第一业务的时间单元的数量N,该N个时间单元对应的带宽资源满足第一业务的带宽需求,在根据第一传输路径中的节点的时域资源占用情况,配置该N个时间单元在一个宏周期内的N个位置,能够实现以时间单位为粒度为第一节点配置时域资源,以使得控制器可以将第一节点转发第一业务的报文的时延控制在一定的指标范围内,满足DIP技术提供确定性转发服务的要求。Through the above method, the controller first determines the number N of time units for executing the first service. The bandwidth resources corresponding to the N time units meet the bandwidth requirements of the first service. According to the time domain resource occupation of the nodes in the first transmission path In this case, configuring the N time units at N positions in a macrocycle can configure time domain resources for the first node at the granularity of time units, so that the controller can forward the first service packet to the first node The time delay is controlled within a certain index range to meet the requirements of DIP technology to provide deterministic forwarding services.
在一种可选的实施方式中,所述第一传输路径包括第三节点,H个位置为所述第三节点在一个宏周期内与所述N个位置对应的位置,且所述H个位置中的至少一个位置对应的时间单元被第二业务占用,所述方法还包括:所述控制器调整所述第三节点中用于执行所述第二业务的时域资源,在调整后,所述H个位置对应的N个时间单元处于空闲状态。In an optional implementation manner, the first transmission path includes a third node, and the H positions are positions of the third node corresponding to the N positions in a macrocycle, and the H positions The time unit corresponding to at least one of the positions is occupied by the second service, and the method further includes: the controller adjusts the time domain resource used for executing the second service in the third node, and after the adjustment, The N time units corresponding to the H positions are in an idle state.
通过上述方法,H个位置中的至少一个位置对应的时间单元被第二业务占用,也就是说第三节点在该至少一个位置所对应的时间单元内执行第一业务和第二业务,导致第三节点的时域资源冲突,在此情况下,控制器调整第三节点中用于执行第二业务的时域资源,使得该H个位置对应的时间单元处于空闲状态,从而可以有效避免节点发生时域资源冲突。Through the above method, the time unit corresponding to at least one of the H positions is occupied by the second service, that is, the third node executes the first service and the second service in the time unit corresponding to the at least one position, resulting in the first The time domain resources of the three nodes conflict. In this case, the controller adjusts the time domain resources used to execute the second service in the third node so that the time units corresponding to the H positions are in an idle state, thereby effectively avoiding node occurrence Time domain resource conflict.
在一种可选的实施方式中,所述控制器调整所述第三节点中用于执行所述第二业务的时域资源,包括:所述控制器根据第一宏周期偏移,确定K个位置,所述K个位置为第四节点在一个宏周期内与所述H个位置对应的位置,其中,所述第二业务经由所述第四节点进入第一网络,所述第一宏周期偏移为报文从所述第四节点传输到所述第三节点的时延;所述控制器根据第二传输路径中的节点的时域资源占用情况,为所述第四节点重新配置Q个时间单元在一个宏周期内的Q个位置,其中,所述Q个时间单元为所述第四节点执行所述第二业务的时域资源,所述Q个位置包括一个宏周期中除所述K个位置之外的位置,所述第二传输路径用于传输所述第二业务的报文。In an optional implementation manner, the controller adjusting the time domain resources used to execute the second service in the third node includes: the controller determining K according to the first macrocycle offset The K positions are the positions of the fourth node corresponding to the H positions in one macrocycle, wherein the second service enters the first network via the fourth node, and the first macro The cycle offset is the time delay for the message to be transmitted from the fourth node to the third node; the controller reconfigures the fourth node according to the time domain resource occupation of the nodes in the second transmission path Q time units are located at Q positions in a macrocycle, where the Q time units are time domain resources for the fourth node to execute the second service, and the Q positions include the division of one macrocycle In locations other than the K locations, the second transmission path is used to transmit the message of the second service.
通过上述方法,控制器根据第一宏周期偏移,可以精确地确定出第四节点中在一个宏周期内与H个位置对应的K个位置。这样,控制器就可以以时间单元为粒度,重新为第四节点配置一个宏周期内除该K个位置之外的Q个位置,该Q个位置对应的Q个时间单元用于执行第二业务,意味着第三节点处H个位置对应的N个时间单元将处于空闲状态,第三节点可以使用不同位置对应的时间单元分别执行第一业务和第二业务,从而解决第三节点的时域资源冲突的问题,提高了资源利用率。Through the above method, the controller can accurately determine the K positions in the fourth node corresponding to the H positions in one macro period according to the first macro period offset. In this way, the controller can use the time unit as the granularity to reconfigure the fourth node with Q positions other than the K positions in a macrocycle, and the Q time units corresponding to the Q positions are used to execute the second service. , Which means that the N time units corresponding to the H positions at the third node will be in an idle state, and the third node can use the time units corresponding to different positions to execute the first service and the second service respectively, thereby solving the time domain of the third node The problem of resource conflicts improves resource utilization.
在一种可选的实施方式中,所述方法还包括:所述控制器根据第一传输路径中的节点 的带宽资源占用情况,在所述第一传输路径中每相邻的两个节点之间配置一个用于执行所述第一业务的通道,所配置的通道用于确定每个时间单元对应的带宽资源,其中,所述第一传输路径的入口为所述第一节点、出口为第二节点,所述第一业务经由所述第一节点进入第一网络、经由所述第二节点离开所述第一网络。In an optional implementation manner, the method further includes: the controller determines between every two adjacent nodes in the first transmission path according to the bandwidth resource occupancy of the nodes in the first transmission path. A channel for executing the first service is configured between the channels, and the configured channel is used to determine the bandwidth resource corresponding to each time unit, wherein the entrance of the first transmission path is the first node, and the exit is the first node. Two nodes, the first service enters the first network via the first node, and leaves the first network via the second node.
通过上述方法,控制器在第一传输路径中每相邻的两个节点之间配置一个用于执行第一业务的通道,意味着所配置的通道的带宽满足第一业务的带宽资源。所配置的通道可以用于确定每个时间单元对应的带宽资源,例如,控制器为第一节点与第一节点的下一跳节点配置第一通道,第一通道的带宽为2.4G bits/s,则第一节点处每个时间单元对应的带宽为2.4G bits/s。这样,控制器就能够确定满足第一业务的带宽需求的N个时间单元,从而能够实现以时间单元为粒度对时域资源进行分配。Through the above method, the controller configures a channel for executing the first service between every two adjacent nodes in the first transmission path, which means that the bandwidth of the configured channel meets the bandwidth resource of the first service. The configured channel can be used to determine the bandwidth resource corresponding to each time unit. For example, the controller configures the first channel for the first node and the next hop node of the first node, and the bandwidth of the first channel is 2.4 Gbits/s , The bandwidth corresponding to each time unit at the first node is 2.4 Gbits/s. In this way, the controller can determine N time units that meet the bandwidth requirement of the first service, so that time domain resources can be allocated with the time unit as the granularity.
在一种可选的实施方式中,所述方法还包括:所述第一传输路径包括第五节点和第六节点,所述第五节点为所述第六节点的下一跳节点;所述控制器根据所述第一传输路径中的节点的带宽资源占用情况,在所述第一传输路径中每相邻的两个节点之间配置一个通道,包括:所述控制器根据所述第五节点的带宽资源占用情况以及所述第一业务的带宽需求,在所述第五节点与所述第六节点之间配置一个用于执行所述第一业务的通道;或者,所述控制器根据所述第五节点的带宽资源占用情况以及所述第一业务的带宽需求,从所述第五节点与所述第六节点之间的已配置的至少一个通道中,确定一个用于执行所述第一业务的通道。In an optional implementation manner, the method further includes: the first transmission path includes a fifth node and a sixth node, and the fifth node is a next hop node of the sixth node; the The controller configures a channel between every two adjacent nodes in the first transmission path according to the bandwidth resource occupancy of the nodes in the first transmission path, including: the controller configures a channel between every two adjacent nodes in the first transmission path. According to the bandwidth resource occupancy of the node and the bandwidth requirement of the first service, a channel for executing the first service is configured between the fifth node and the sixth node; or, the controller is based on According to the bandwidth resource occupation situation of the fifth node and the bandwidth requirement of the first service, one of the at least one configured channel between the fifth node and the sixth node is determined to be used for executing the The first business channel.
通过上述方法,在第一传输路径的相邻的两个节点间,控制器可以配置用于执行第一业务的通道,也可以从该两个节点间已配置的至少一个通道中确定一个通道执行第一业务。控制器从已配置的至少一个通道中确定一个通道执行第一业务,即利用已配置的通道中的过剩资源来执行第一业务,避免过剩资源的浪费,提高了资源利用率。Through the above method, between two adjacent nodes on the first transmission path, the controller can configure a channel for executing the first service, or it can determine a channel to execute from at least one channel that has been configured between the two nodes. The first business. The controller determines a channel from the configured at least one channel to execute the first service, that is, uses the excess resources in the configured channel to execute the first service, avoids the waste of excess resources, and improves resource utilization.
在一种可选的实施方式中,所述方法还包括:所述控制器接收来自第七节点的第一指示消息,所述第一指示消息指示至少一个宏周期偏移,其中,所述至少一个宏周期偏移中的任一宏周期偏移为报文从所述第七节点的上一跳节点传输到所述第七节点的时延,所述第七节点、以及所述第七节点的上一跳节点为第一网络中的两个节点;所述控制器基于所述第一指示消息更新所述第七节点的宏周期表项,所述宏周期表项用于存储所述至少一个宏周期偏移。通过上述方法,控制器可以获取各节点的宏周期偏移,并更新各节点的宏周期偏移表项,这样,控制器就可以知道各节点间的时延,进而可以基于该宏周期偏移表项,确定出各节点在一个宏周期内的哪个或哪些位置执行业务,并可以对各节点的时域资源进行调整,避免时域资源冲突,提高资源利用率。In an optional implementation manner, the method further includes: the controller receives a first indication message from the seventh node, the first indication message indicating at least one macrocycle offset, wherein the at least Any macrocycle offset in one macrocycle offset is the time delay for the packet to be transmitted from the previous hop node of the seventh node to the seventh node, the seventh node, and the seventh node The last hop node is two nodes in the first network; the controller updates the macroperiod table entry of the seventh node based on the first indication message, and the macroperiod table entry is used to store the at least One macrocycle offset. Through the above method, the controller can obtain the macroperiod offset of each node, and update the macroperiod offset table entry of each node, so that the controller can know the delay between each node, and then can be based on the macroperiod offset The table item determines where or where each node executes services in a macrocycle, and can adjust the time domain resources of each node to avoid time domain resource conflicts and improve resource utilization.
在一种可选的实施方式中,所述配置消息还包括第一通道的标识、和/或第一业务的标识,所述第一通道为所述第一节点、与所述第一节点的下一跳节点间用于执行所述第一业务的带宽资源。In an optional implementation manner, the configuration message further includes the identifier of the first channel and/or the identifier of the first service, and the first channel is the first node and the connection between the first node and the first node. The bandwidth resource between next hop nodes used to execute the first service.
在一种可选的实施方式中,所述请求消息包括以下信息中的一项或多项:所述第一节点的标识、所述第二节点的标识或所述第一业务的带宽需求。In an optional implementation manner, the request message includes one or more of the following information: the identifier of the first node, the identifier of the second node, or the bandwidth requirement of the first service.
第二方面,本申请实施例提供了一种资源配置方法,所述方法包括:第一节点接收来自控制器的配置消息,所述配置消息指示N个时间单元在一个宏周期内的N个位置;所述第一节点在所述N个位置对应的N个时间单元内执行所述第一业务;其中,所述N个时间单元为执行所述第一业务的时域资源,且所述N个时间单元对应的带宽资源满足第一业 务的带宽需求,所述N个时间单元中的一个时间单元用于指示调度时域资源的最小时长,一个宏周期包括M个时间单元,所述M为大于或等于所述N的整数,所述N为大于或等于1的整数。In a second aspect, an embodiment of the present application provides a resource configuration method, the method includes: a first node receives a configuration message from a controller, the configuration message indicating N positions of N time units in a macrocycle The first node executes the first service in N time units corresponding to the N positions; wherein the N time units are time domain resources for executing the first service, and the N The bandwidth resources corresponding to each time unit meet the bandwidth requirement of the first service. One time unit in the N time units is used to indicate the minimum duration for scheduling time domain resources. A macrocycle includes M time units, where M is An integer greater than or equal to the N, and the N is an integer greater than or equal to 1.
通过上述方法,第一节点接收来自控制器的配置消息,配置消息用于指示N个时间单元在一个宏周期内的N个位置,作为响应,第一节点将使用一个宏周期内的该N个位置对应的N个时间单元执行第一业务,而不会在一个宏周期内除该N个时间单元之外的时间单元内执行第一业务,这样,控制器就可以将第一节点转发第一业务的报文的时延控制在一定的指标范围内,满足DIP技术提供确定性转发服务的要求。Through the above method, the first node receives the configuration message from the controller. The configuration message is used to indicate the N positions of N time units in a macro cycle. In response, the first node will use the N time units in a macro cycle. The N time units corresponding to the location execute the first service, and the first service will not be executed in time units other than the N time units in a macro cycle. In this way, the controller can forward the first node to the first service. The delay of business messages is controlled within a certain index range, which meets the requirements of DIP technology to provide deterministic forwarding services.
在一种可选的实施方式中,所述方法还包括:所述第一节点向所述控制器发送第二指示消息,所述第二指示消息指示至少一个宏周期偏移,以使所述控制器基于所述至少一个宏周期偏移更新所述第一节点的宏周期偏移表项,所述宏周期偏移表项用于存储所述至少一个宏周期偏移,其中,所述至少一个宏周期偏移中的任一宏周期偏移为报文从所述第一节点的上一跳节点传输到所述第一节点的时延。In an optional implementation manner, the method further includes: the first node sends a second indication message to the controller, the second indication message indicating at least one macrocycle offset, so that the The controller updates the macroperiod offset entry of the first node based on the at least one macroperiod offset, where the macroperiod offset entry is used to store the at least one macroperiod offset, wherein the at least Any macrocycle offset in one macrocycle offset is the time delay for the packet to be transmitted from the previous hop node of the first node to the first node.
通过上述方法,第一节点可以向控制器发送宏周期偏移,以使得控制器更新第一节点的宏周期偏移表项,从而控制器就可以知道第一节点与其它节点间的时延,进而可以基于该宏周期偏移表项,确定出第一节点在一个宏周期内的哪个或哪些位置执行业务,并可以对第一节点的时域资源进行调整,避免时域资源冲突,提高资源利用率。Through the above method, the first node can send the macrocycle offset to the controller, so that the controller updates the macrocycle offset table entry of the first node, so that the controller can know the delay between the first node and other nodes, Furthermore, based on the macrocycle offset entry, it is possible to determine which position or positions within a macrocycle of the first node perform services, and adjust the time domain resources of the first node to avoid time domain resource conflicts and increase resources. Utilization rate.
在一种可选的实施方式中,所述第一节点的上一跳节点为第八节点,所述至少一个宏周期偏移包括第二宏周期偏移;所述第一节点向所述控制器发送第二指示消息,包括:所述第一节点接收来自所述第八节点的第三指示消息,所述第三指示消息指示第一位置,所述第一位置为所述第八节点生成所述第三指示消息的时间单元在一个宏周期内的位置;所述第一节点根据所述第一位置、以及第二位置,确定所述第二宏周期偏移,所述第二位置为所述第八节点响应所述第三指示消息的时间单元在一个宏周期内的位置,所述第二宏周期偏移为报文从所述第八节点传输到所述第一节点的时延;所述第一节点向所述控制器发送所述第二指示消息。In an optional implementation manner, the last hop node of the first node is the eighth node, and the at least one macroperiod offset includes a second macroperiod offset; The second instruction message sent by the device includes: the first node receives a third instruction message from the eighth node, the third instruction message indicates a first position, and the first position is generated by the eighth node The position of the time unit of the third indication message within a macro period; the first node determines the second macro period offset according to the first position and the second position, and the second position is The position of the time unit of the eighth node in response to the third indication message within one macrocycle, and the second macrocycle offset is the time delay for the packet to be transmitted from the eighth node to the first node ; The first node sends the second instruction message to the controller.
通过上述方法,第一节点通过第一位置和第二位置,可以确定出报文从第八节点传输到第一节点的时延,进而可以第二宏周期偏移发送给控制器,以使得控制器在确定第八节点或第一节点中执行业务的时间单元在一个宏周期内的位置时,可以基于该第二宏周期偏移,确定出另一节点执行该业务的时间单元在一个宏周期内的位置,满足DIP技术中提供确定性转发服务的要求。Through the above method, the first node can determine the transmission delay of the message from the eighth node to the first node through the first position and the second position, and then can send it to the controller with the second macrocycle offset, so that the control When determining the location of the time unit for executing the service in the eighth node or the first node in a macrocycle, the processor can determine that the time unit for another node to execute the service is within a macrocycle based on the second macrocycle offset. The location within the DIP technology meets the requirements of providing deterministic forwarding services in DIP technology.
在一种可选的实施方式中,所述第一节点的下一跳节点为第九节点,所述方法还包括:所述第一节点生成第四指示消息,所述第四指示消息指示第三位置,所述第三位置为所述第一节点生成所述第四指示消息的时间单元在一个宏周期内的位置;所述第一节点向所述第九节点发送所述第四指示消息,所述第四指示消息用于指示所述第九节点根据所述第三位置和第四位置确定第三宏周期偏移,所述第四位置为所述第九节点响应所述第四指示消息的时间单元在一个宏周期内的位置,所述第三宏周期偏移为报文从所述第一节点传输到所述第九节点的时延。In an optional implementation manner, the next hop node of the first node is the ninth node, and the method further includes: the first node generates a fourth indication message, and the fourth indication message indicates the Three positions, the third position is the position within one macrocycle of the time unit at which the first node generates the fourth indication message; the first node sends the fourth indication message to the ninth node , The fourth indication message is used to instruct the ninth node to determine a third macroperiod offset according to the third position and the fourth position, and the fourth position is the response of the ninth node to the fourth indication The position of the time unit of the message within one macrocycle, and the third macrocycle offset is the time delay for the message to be transmitted from the first node to the ninth node.
通过上述方法,第一节点可以向与第一节点的下一跳节点发第四指示消息,以使得第一节点的下一跳节点基于该第四指示消息,确定第三宏周期偏移,这样,第一节点的下一跳节点就可以将第三宏周期偏移发送给控制器,以使的控制器更新第一节点的下一跳节点 的宏周期偏移表项。Through the above method, the first node can send a fourth indication message to the next hop node of the first node, so that the next hop node of the first node determines the third macroperiod offset based on the fourth indication message. , The next hop node of the first node can send the third macroperiod offset to the controller, so that the controller updates the macroperiod offset entry of the next hop node of the first node.
在一种可选的实施方式中,所述配置消息还包括第一通道的标识、和/或第一业务的标识,所述第一通道用于指示所述第一节点、与所述第一节点的下一跳节点间用于执行所述第一业务的带宽资源。In an optional implementation manner, the configuration message further includes the identifier of the first channel and/or the identifier of the first service, and the first channel is used to indicate the first node and the first service. The bandwidth resource between the next hop nodes of the node for executing the first service.
第三方面,本申请实施例提出了一种控制器,该控制器具有实现上述第一方面方法示例中控制器行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或所述软件包括一个或多个与上述功能相对应的模块。In the third aspect, an embodiment of the present application proposes a controller, which has the function of realizing the behavior of the controller in the foregoing method example of the first aspect. The function can be realized by hardware, or by hardware executing corresponding software. The hardware or the software includes one or more modules corresponding to the above-mentioned functions.
在一种可选的实施方式中,所述控制器的结构中包括处理单元和收发单元,这些单元可以执行上述方法示例中相应功能,具体参见方法示例中的详细描述,此处不做赘述。In an optional implementation manner, the structure of the controller includes a processing unit and a transceiver unit, and these units can perform corresponding functions in the foregoing method examples. For details, please refer to the detailed description in the method examples, which will not be repeated here.
第四方面,本申请实施例提出了一种网络节点,该网络节点具有实现上述第二方面方法示例中第一节点行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或所述软件包括一个或多个与上述功能相对应的模块。In the fourth aspect, an embodiment of the present application proposes a network node that has the function of realizing the behavior of the first node in the foregoing method example of the second aspect. The function can be realized by hardware, or by hardware executing corresponding software. The hardware or the software includes one or more modules corresponding to the above-mentioned functions.
在一种可选的实施方式中,所述网络节点的结构中包括处理单元和收发单元,这些单元可以执行上述方法示例中相应功能,具体参见方法示例中的详细描述,此处不做赘述。In an optional implementation manner, the structure of the network node includes a processing unit and a transceiver unit, and these units can perform corresponding functions in the foregoing method examples. For details, refer to the detailed description in the method examples, and details are not repeated here.
第五方面,本申请实施例还提供一种控制器,该控制器包括处理器、存储器和收发器,所述存储器用于存储软件程序,所述处理器用于读取所述存储器中存储的软件程序并实现第一方面或上述第一方面的任意一种设计提供的方法。In a fifth aspect, an embodiment of the present application further provides a controller, which includes a processor, a memory, and a transceiver. The memory is used to store a software program, and the processor is used to read the software stored in the memory. The program implements the method provided in the first aspect or any one of the above-mentioned first aspects.
第六方面,本申请实施例还提供一种网络节点,该网络节点包括处理器、存储器和收发器,所述存储器用于存储软件程序,所述处理器用于读取所述存储器中存储的软件程序并实现第二方面或上述第二方面的任意一种设计提供的方法。In a sixth aspect, an embodiment of the present application also provides a network node, the network node includes a processor, a memory, and a transceiver. The memory is used to store a software program, and the processor is used to read the software stored in the memory. Program and implement the method provided by the second aspect or any one of the above-mentioned second aspects.
第七方面,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机指令,当所述计算机指令在计算机上运行时,使得所述计算机执行上述第一方面或上述第一方面的任意一种可能的实施方式所述的方法。In a seventh aspect, the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium is used to store computer instructions, and when the computer instructions run on a computer, the computer executes the first Aspect or any one of the possible implementations of the first aspect above.
第八方面,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机指令,当所述计算机指令在计算机上运行时,使得所述计算机执行上述第二方面或上述第二方面的任意一种可能的实施方式所述的方法。In an eighth aspect, the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium is used to store computer instructions, and when the computer instructions run on a computer, the computer executes the second Aspect or any one of the possible implementations of the second aspect above.
第九方面,本申请实施例提供一种包含指令的计算机程序产品,所述计算机程序产品用于存储计算机指令,当所述计算机指令在计算机上运行时,使得所述计算机执行上述第一方面或上述第一方面的任意一种可能的实施方式所述的方法。In a ninth aspect, an embodiment of the present application provides a computer program product containing instructions, the computer program product is used to store computer instructions, when the computer instructions run on a computer, the computer executes the first aspect or The method described in any one of the possible implementation manners of the foregoing first aspect.
第十方面,本申请实施例提供一种包含指令的计算机程序产品,所述计算机程序产品用于存储计算机指令,当所述计算机指令在计算机上运行时,使得所述计算机执行上述第二方面或上述第二方面的任意一种可能的实施方式所述的方法。In a tenth aspect, an embodiment of the present application provides a computer program product containing instructions, the computer program product is used to store computer instructions, when the computer instructions run on a computer, the computer executes the second aspect or The method described in any possible implementation manner of the above second aspect.
第十一方面,本申请实施例提供一种计算机芯片,芯片与存储器相连,芯片用于读取并执行存储器中存储的软件程序,执行上述第一方面或上述第一方面的任意一种可能的实施方式所述的方法。In an eleventh aspect, an embodiment of the present application provides a computer chip, which is connected to a memory, and the chip is used to read and execute a software program stored in the memory, and execute any one of the foregoing first aspect or the foregoing first aspect. Implement the method described in the mode.
第十二方面,本申请实施例提供一种计算机芯片,芯片与存储器相连,芯片用于读取并执行存储器中存储的软件程序,执行上述第二方面或上述第二方面的任意一种可能的实施方式所述的方法。In a twelfth aspect, an embodiment of the present application provides a computer chip, which is connected to a memory, and the chip is used to read and execute a software program stored in the memory, and execute any one of the above-mentioned second aspect or the above-mentioned second aspect. Implement the method described in the mode.
第十三方面,本申请实施例提供一种芯片系统,该芯片系统包括处理器,用于实现上述第一方面或上述第一方面的任意一种可能的实施方式所述的方法。该芯片系统可以由芯 片构成,也可以包含芯片和其他分立器件。In a thirteenth aspect, an embodiment of the present application provides a chip system, which includes a processor, configured to implement the method described in the foregoing first aspect or any one of the possible implementation manners of the foregoing first aspect. The chip system can be composed of chips, or it can include chips and other discrete devices.
第十四方面,本申请实施例提供一种芯片系统,该芯片系统包括处理器,用于实现上述第二方面或上述第二方面的任意一种可能的实施方式所述的方法。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。In a fourteenth aspect, an embodiment of the present application provides a chip system, which includes a processor, configured to implement the method described in the foregoing second aspect or any one of the possible implementation manners of the foregoing second aspect. The chip system can be composed of chips, and can also include chips and other discrete devices.
附图说明Description of the drawings
图1为本申请实施例提供的一种通信系统的结构示意图;FIG. 1 is a schematic structural diagram of a communication system provided by an embodiment of this application;
图2为本申请实施例提供的一种资源配置方法的数据流程示意图;2 is a schematic diagram of a data flow of a resource configuration method provided by an embodiment of the application;
图3为本申请实施例提供的一种带宽资源配置方法的数据流程示意图;3 is a schematic diagram of a data flow of a bandwidth resource configuration method provided by an embodiment of the application;
图4为本申请实施例提供的一种时域资源调整方法的数据流程示意图;FIG. 4 is a schematic diagram of a data flow of a method for adjusting time domain resources according to an embodiment of this application;
图5为本申请实施例提供的一种宏周期偏移的确定方法的数据流程示意图;FIG. 5 is a schematic diagram of a data flow of a method for determining a macrocycle offset provided by an embodiment of the application;
图6为本申请实施例提供的一种节点上报宏周期偏移的结构图;FIG. 6 is a structural diagram of a node reporting macrocycle offset provided by an embodiment of this application;
图7为本申请实施例提供的另一种资源配置方法的数据流程示意图;FIG. 7 is a schematic diagram of the data flow of another resource configuration method provided by an embodiment of the application;
图8为本申请实施例提供的控制器的一种结构图;FIG. 8 is a structural diagram of a controller provided by an embodiment of the application;
图9为本申请实施例提供的控制器的另一种结构图;FIG. 9 is another structural diagram of a controller provided by an embodiment of the application;
图10为本申请实施例提供的网络节点的一种结构图;FIG. 10 is a structural diagram of a network node provided by an embodiment of this application;
图11为本申请实施例提供的网络节点的另一种结构图;FIG. 11 is another structural diagram of a network node provided by an embodiment of this application;
图12为本申请实施例提供的一种资源配置的结构图;FIG. 12 is a structural diagram of a resource configuration provided by an embodiment of this application;
图13为本申请实施例提供的另一种资源配置的结构图;FIG. 13 is a structural diagram of another resource configuration provided by an embodiment of this application;
图14为本申请实施例提供的再一种资源配置的结构图。FIG. 14 is a structural diagram of yet another resource configuration provided by an embodiment of this application.
具体实施方式Detailed ways
为了使本申请实施例的目的,技术方案和优点更加清楚,下面对本申请实施例涉及的一些术语进行说明。In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, some terms involved in the embodiments of the present application are described below.
(1)时间单元,是时域上的最小调度单位。例如时间单元的长度为10μs,意味着每次调度数据流量最少需要调度10μs内的所有数据流量。(1) The time unit is the smallest scheduling unit in the time domain. For example, the length of the time unit is 10 μs, which means that at least all data flows within 10 μs need to be scheduled each time the data flow is scheduled.
(2)宏周期,一个宏周期内可以包括M个时间单元,M可以是控制器预先设定的正整数,例如控制器可以根据节点转发数据量的能力预先设定M。再例如,节点转发数据量的能力与该节点包括的门控队列的数量有关,若节点包括4个门控队列,则可以将该M值预先设定为4的整数倍,例如4、8、12等。M个时间单元在一个宏周期内的位置可以采用连续的序列号表示,当然也可以采用其它方式表示,本申请实施例对此不作限定。例如M个时间单元的序列号分别为0,1,……,M-1。对于一个节点,其在一个宏周期内的每个时间单元中,能够传输的最大数据量相同,例如一个时间单元能够传输的最大数据量为1.2G bits。(2) Macro cycle. A macro cycle may include M time units. M may be a positive integer preset by the controller. For example, the controller may preset M according to the ability of the node to forward data. For another example, the ability of a node to forward the amount of data is related to the number of gated queues included in the node. If the node includes 4 gated queues, the value of M can be preset to an integer multiple of 4, such as 4, 8, 12 and so on. The positions of the M time units in a macrocycle can be represented by continuous sequence numbers, of course, can also be represented in other ways, which is not limited in the embodiment of the present application. For example, the sequence numbers of M time units are 0, 1, ..., M-1, respectively. For a node, in each time unit in a macrocycle, the maximum amount of data that can be transmitted is the same, for example, the maximum amount of data that can be transmitted in one time unit is 1.2 Gbits.
(3)通道,为两个节点之间的逻辑传输路径,控制器可以在两个节点间配置多个通道,该多个通道中的每个通道的带宽可以相同,也可以不同。通道的上一跳节点,是指通道对应的两端的两个节点中,报文所经过的第一个节点。例如第一通道对应的两端的两个节点分别为第一节点和第二节点,第一通道用于执行第一业务,如果第一业务的报文经由第一节点转发给第二节点,那么第一通道的上一跳节点为第一节点;如果第一业务的报文 经由第二节点转发给第一节点,那么第一通道的上一跳节点为第二节点。(3) The channel is a logical transmission path between two nodes. The controller can configure multiple channels between the two nodes, and the bandwidth of each channel of the multiple channels can be the same or different. The last hop node of the channel refers to the first node through which the message passes among the two nodes at the two ends of the channel. For example, the two nodes at the two ends corresponding to the first channel are the first node and the second node respectively. The first channel is used to execute the first service. If the message of the first service is forwarded to the second node via the first node, then the first The last hop node of a channel is the first node; if the message of the first service is forwarded to the first node via the second node, then the last hop node of the first channel is the second node.
(4)终端设备,包括向用户提供语音和/或数据连通性的设备,例如可以包括具有无线连接功能的手持式设备、或连接到无线调制解调器的处理设备。该终端设备可以包括用户设备(user equipment,UE)、无线终端设备、移动终端设备、订户单元(subscriber unit)、订户站(subscriber station),移动站(mobile station)、移动台(mobile)、远程站(remote station)、接入点(access point,AP)、远程终端设备(remote terminal)、接入终端设备(access terminal)、用户终端设备(user terminal)、用户代理(user agent)、或用户装备(user device)等。例如,可以包括移动电话(或称为“蜂窝”电话),具有移动终端设备的计算机,便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,智能穿戴式设备等。例如,个人通信业务(personal communication service,PCS)电话、无绳电话、会话发起协议(session initiation protocol,SIP)话机、无线本地环路(wireless local loop,WLL)站、个人数字助理(personal digital assistant,PDA)、等设备。还包括受限设备,例如功耗较低的设备,或存储能力有限的设备,或计算能力有限的设备等。例如包括条码、射频识别(radio frequency identification,RFID)、传感器、全球定位系统(global positioning system,GPS)、激光扫描器等信息传感设备。(4) Terminal devices include devices that provide users with voice and/or data connectivity, such as handheld devices with wireless connection functions, or processing devices connected to wireless modems. The terminal equipment may include user equipment (UE), wireless terminal equipment, mobile terminal equipment, subscriber unit (subscriber unit), subscriber station (subscriber station), mobile station (mobile station), mobile station (mobile), remote Station (remote station), access point (access point, AP), remote terminal equipment (remote terminal), access terminal equipment (access terminal), user terminal equipment (user terminal), user agent (user agent), or user Equipment (user device), etc. For example, it may include mobile phones (or “cellular” phones), computers with mobile terminal devices, portable, pocket-sized, handheld, computer-built or vehicle-mounted mobile devices, smart wearable devices, and so on. For example, personal communication service (PCS) phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants, PDA), and other equipment. It also includes restricted devices, such as devices with low power consumption, or devices with limited storage capabilities, or devices with limited computing capabilities. Examples include barcodes, radio frequency identification (RFID), sensors, global positioning system (GPS), laser scanners and other information sensing equipment.
作为示例而非限定,在本申请实施例中,该终端设备还可以是可穿戴设备。可穿戴设备也可以称为穿戴式智能设备,是应用穿戴式技术对日常穿戴进行智能化设计、开发出可以穿戴的设备的总称,如眼镜、手套、手表、服饰及鞋等。可穿戴设备即直接穿在身上,或是整合到用户的衣服或配件的一种便携式设备。可穿戴设备不仅仅是一种硬件设备,更是通过软件支持以及数据交互、云端交互来实现强大的功能。广义穿戴式智能设备包括功能全、尺寸大、可不依赖智能手机实现完整或者部分的功能,例如:智能手表或智能眼镜等,以及只专注于某一类应用功能,需要和其它设备如智能手机配合使用,如各类进行体征监测的智能手环、智能头盔、智能首饰等。As an example and not a limitation, in the embodiment of the present application, the terminal device may also be a wearable device. Wearable devices can also be called wearable smart devices. It is a general term for the application of wearable technology to intelligently design daily wear and develop wearable devices, such as glasses, gloves, watches, clothing and shoes. A wearable device is a portable device that is directly worn on the body or integrated into the user's clothes or accessories. Wearable devices are not only a kind of hardware device, but also realize powerful functions through software support, data interaction, and cloud interaction. In a broad sense, wearable smart devices include full-featured, large-sized, complete or partial functions that can be achieved without relying on smart phones, such as smart watches or smart glasses, and only focus on a certain type of application function, and need to cooperate with other devices such as smart phones. Use, such as all kinds of smart bracelets, smart helmets, smart jewelry, etc. for physical sign monitoring.
(5)网络设备,例如包括基站(例如,接入点),可以是指接入网中在空口通过一个或多个小区与无线终端设备通信的设备。网络设备可用于将收到的空中帧与网际协议(IP)分组进行相互转换,作为终端设备与接入网的其余部分之间的路由器,其中接入网的其余部分可包括IP网络。网络设备还可协调对空口的属性管理。例如,网络设备可以包括长期演进(long term evolution,LTE)系统或演进的LTE系统(LTE-Advanced,LTE-A)中的演进型基站(NodeB或eNB或e-NodeB,evolutional Node B),或者也可以包括第五代移动通信技术(fifth generation,5G)新无线(new radio,NR)系统中的下一代节点B(next generation node B,gNB)或者也可以包括云接入网(cloud radio access network,CloudRAN)系统中的集中式单元(centralized unit,CU)和分布式单元(distributed unit,DU),本申请实施例并不限定。(5) A network device, for example, includes a base station (for example, an access point), which may refer to a device that communicates with a wireless terminal device through one or more cells on an air interface in an access network. The network device can be used to convert received air frames and Internet Protocol (IP) packets into each other, and act as a router between the terminal device and the rest of the access network, where the rest of the access network can include an IP network. The network equipment can also coordinate the attribute management of the air interface. For example, the network equipment may include an evolved base station (NodeB or eNB or e-NodeB, evolutional Node B) in a long term evolution (LTE) system or an evolved LTE system (LTE-Advanced, LTE-A), or It may also include the next generation node B (gNB) in the fifth generation (5G) new radio (NR) system of the fifth generation mobile communication technology (fifth generation, 5G) or cloud access network (cloud radio access). The centralized unit (CU) and distributed unit (DU) in the network (CloudRAN) system are not limited in the embodiment of the present application.
(6)本申请实施例中的术语“系统”和“网络”可被互换使用。“多个”是指两个或两个以上,鉴于此,本申请实施例中也可以将“多个”理解为“至少两个”。“至少两个”,可以理解为两个或更多个,例如理解为两个、三个或更多个。“至少一个”,可理解为一个或多个,例如理解为一个、两个或更多个。同理,对于“多个”等描述的理解,也是类似的。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,字符“/”,如无特殊说明,一般表示前后关联对象是一种“或”的关系。(6) The terms "system" and "network" in the embodiments of this application can be used interchangeably. "Multiple" refers to two or more than two. In view of this, "multiple" may also be understood as "at least two" in the embodiments of the present application. "At least two" can be understood as two or more, for example two, three or more. "At least one" can be understood as one or more, for example, one, two or more. In the same way, the understanding of "multiple" and other descriptions is similar. "And/or" describes the association relationship of the associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone. In addition, the character "/", unless otherwise specified, generally indicates that the associated objects before and after are in an "or" relationship.
除非有相反的说明,本申请实施例提及“第一”、“第二”等序数词用于对多个对象进行区分,不用于限定多个对象的顺序、时序、优先级或者重要程度。Unless otherwise stated, ordinal numbers such as “first” and “second” mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, timing, priority, or importance of multiple objects.
下面将结合附图对本申请实施例作进一步地详细描述。The embodiments of the present application will be described in further detail below in conjunction with the accompanying drawings.
请参见图1,为本申请实施例适用的一种通信系统的结构示意图。如图所示,该通信系统可以包括控制器110,以及控制器110覆盖的网络130(也称为第一网络)。网络130包括通过多个链路131互联的多个节点,这些节点例如包括节点121、节点122、节点123、节点124以及节点125。网络130中每个节点所使用的资源,例如带宽资源或时域资源等,可以由控制器110分配。链路131可以是用于传输数据的物理链路,例如光纤链路、电子链路、逻辑链路、或者它们的任意组合。该网络130中的每个节点(例如节点121、节点122、节点123、节点124以及节点125)支持DIP技术,也就是该网络130为确定性网络,应理解的是,控制器110可以覆盖多个确定性网络,图1仅示例性示出一个确定性网络的场景。Please refer to FIG. 1, which is a schematic structural diagram of a communication system to which an embodiment of this application is applicable. As shown in the figure, the communication system may include a controller 110 and a network 130 (also referred to as a first network) covered by the controller 110. The network 130 includes a plurality of nodes interconnected by a plurality of links 131, and these nodes include, for example, a node 121, a node 122, a node 123, a node 124, and a node 125. The resources used by each node in the network 130, such as bandwidth resources or time domain resources, may be allocated by the controller 110. The link 131 may be a physical link used to transmit data, such as an optical fiber link, an electronic link, a logical link, or any combination thereof. Each node in the network 130 (for example, node 121, node 122, node 123, node 124, and node 125) supports DIP technology, that is, the network 130 is a deterministic network. It should be understood that the controller 110 can cover many A deterministic network, Figure 1 only exemplarily shows a deterministic network scenario.
控制器110可以是虚拟机器(virtual machine,VM),虚拟机监视器,或者是用于为节点121至节点125配置资源的任何设备和/或系统。控制器110可以是在硬件上运行的软件模块,例如可以是代表拥有网络130的网络提供商进行操作的软件模块。控制器110可以执行运行、管理和维护(operation,administration,and management,OAM)操作,以使网络运营商和/或网络提供商能够解决网络问题、监控网络性能、执行网络维护或分配网络资源等。例如,控制器110可以监控和并核实节点121至节点125间的连接性,检测并隔离链路131的连接性故障,为节点121至节点125配置资源,还可以维护并监控节点121至节点125的资源占用情况等。The controller 110 may be a virtual machine (VM), a virtual machine monitor, or any device and/or system used to configure resources for the nodes 121 to 125. The controller 110 may be a software module that runs on hardware, for example, may be a software module that operates on behalf of a network provider that owns the network 130. The controller 110 can perform operation, administration, and management (OAM) operations, so that network operators and/or network providers can solve network problems, monitor network performance, perform network maintenance, or allocate network resources, etc. . For example, the controller 110 can monitor and verify the connectivity between the nodes 121 to 125, detect and isolate the connectivity failure of the link 131, configure resources for the nodes 121 to 125, and can also maintain and monitor the nodes 121 to 125 Occupancy of resources, etc.
节点121至节点125中的任一个节点,可以是交换机、路由器、网桥、网关,和/或任何其它适合在网络130中转发数据的网络设备。Any one of the node 121 to the node 125 may be a switch, a router, a bridge, a gateway, and/or any other network device suitable for forwarding data in the network 130.
在一种实施方式中,控制器110负责收集全网拓扑和节点121至节点125的参数信息,控制为节点121至节点125配置资源,维护节点121至节点125的资源配置信息,并向节点121至节点125下发指令。In one embodiment, the controller 110 is responsible for collecting the entire network topology and parameter information from nodes 121 to 125, controlling the configuration of resources for nodes 121 to 125, maintaining resource configuration information from nodes 121 to 125, and reporting to node 121 Send instructions to node 125.
在一种实施方式中,控制器110负责维护网络130的边缘节点表项,边缘节点表项中包括网络130中所有边缘节点的参数信息。边缘节点包括入边缘节点和出边缘节点。入边缘节点为消息、报文、或数据等进入网络130的第一个节点。例如,报文经由节点121进入网络130,则节点121就可以是该报文在网络130中的入边缘节点。出边缘节点为消息、报文、或数据等离开网络130的最后一个节点。例如,报文经由节点123离开网络130,则节点123就可以是该报文在网络130中的出边缘节点。In an embodiment, the controller 110 is responsible for maintaining the edge node table entries of the network 130, and the edge node table entries include parameter information of all edge nodes in the network 130. Edge nodes include in-edge nodes and out-edge nodes. The incoming edge node is the first node where a message, message, or data enters the network 130. For example, if a message enters the network 130 via the node 121, the node 121 may be the ingress node of the message in the network 130. The outgoing edge node is the last node where a message, message, or data leaves the network 130. For example, if a message leaves the network 130 via the node 123, the node 123 may be the outgoing edge node of the message in the network 130.
在一种实施方式中,控制器110负责维护网络130中两个节点之间的端口信息。例如节点121的端口1与节点122的端口1建立链路131。再例如,节点122的端口1与节点123的端口2建立链路131。In an embodiment, the controller 110 is responsible for maintaining port information between two nodes in the network 130. For example, the port 1 of the node 121 and the port 1 of the node 122 establish a link 131. For another example, the port 1 of the node 122 and the port 2 of the node 123 establish a link 131.
在一种实施方式中,控制器110用来定义和管理产生在网络130的数据面中的数据流。控制器110维护网络130的基础设施的全拓扑视图,计算数据流在网络130中的传输路径,并通过指示消息(该指示消息也可以是转发指令等)将传输路径的信息发送给节点121至节点125中的至少两个节点。该转发指令可包括转发数据流的下一跳节点的标识。例如数据流在网络130中的传输路径为节点121、节点122以及节点123,其中,入边缘节点为节点121,出边缘节点为123,控制器110通过控制面接口132分别向节点121以及节点 122发送用于指示下一跳节点的转发指令。例如,发送给节点121的转发指令包括节点122的标识,发送给节点122的转发指令包括节点123的标识。节点121至节点125可存储转发指令指示的传输路径的信息,例如可以存储在一个或多个数据流表格或转发信息库(forwarding information base,FIB)中。基于转发指令,节点121至节点125中的每个节点都可以转发数据流给网络130中的下一跳节点。在节点121至节点125中的任一个节点接收到未知报文或确定接收到的报文由控制器110处理时,该节点121至节点125中的任一个节点可以转发该报文给控制器110。In one embodiment, the controller 110 is used to define and manage the data flow generated in the data plane of the network 130. The controller 110 maintains a full topology view of the infrastructure of the network 130, calculates the transmission path of the data stream in the network 130, and sends the transmission path information to the nodes 121 through an instruction message (the instruction message may also be a forwarding instruction, etc.) At least two of the nodes 125. The forwarding instruction may include the identification of the next hop node that forwards the data stream. For example, the transmission path of the data stream in the network 130 is the node 121, the node 122, and the node 123. The ingress edge node is the node 121, and the egress edge node is 123. The controller 110 sends the data stream to the node 121 and the node 122 through the control plane interface 132. Send a forwarding instruction to indicate the next hop node. For example, the forwarding instruction sent to the node 121 includes the identifier of the node 122, and the forwarding instruction sent to the node 122 includes the identifier of the node 123. The node 121 to the node 125 may store the information of the transmission path indicated by the forwarding instruction, for example, may be stored in one or more data flow tables or forwarding information base (FIB). Based on the forwarding instruction, each of the nodes 121 to 125 can forward the data stream to the next hop node in the network 130. When any one of the nodes 121 to 125 receives an unknown message or determines that the received message is processed by the controller 110, any one of the nodes 121 to 125 may forward the message to the controller 110 .
在一种实施方式中,控制器110和/或节点121至节点125可以使用IEEE 1588精确时间协议将内部时钟同步到1μs至10ns的精度。In an embodiment, the controller 110 and/or the nodes 121 to 125 may use the IEEE 1588 precision time protocol to synchronize the internal clock to an accuracy of 1 μs to 10 ns.
在为节点配置资源时,控制器110接收来自业务的请求消息,请求消息包括业务的带宽需求,第一入边缘节点的标识和第一出边缘节点的标识。作为响应,控制器110计算该业务在网络130中入口为第一入边缘节点、出口为第一出边缘节点的传输路径,根据第一传输路径所经过的各节点的带宽资源分配情况,在该传输路径上为业务配置至少一个通道,该至少一个通道中的每个通道的带宽满足业务的带宽需求。控制器110通过控制面接口132分别向传输路径所经过的各节点发送转发指令。另外,控制器110还要通过控制面接口132向第一传输路径所经过的各节点发送通道的标识。这样,第一入边缘节点接收到业务的报文后,将通过配置的通道将报文转发给传输路径中的下一跳节点。When configuring resources for a node, the controller 110 receives a request message from a service, and the request message includes the bandwidth requirement of the service, the identifier of the first ingress edge node, and the identifier of the first egress edge node. In response, the controller 110 calculates the transmission path of the service in the network 130 where the entry is the first ingress edge node and the exit is the first egress edge node. According to the bandwidth resource allocation of each node through the first transmission path, the At least one channel is configured for the service on the transmission path, and the bandwidth of each channel in the at least one channel meets the bandwidth requirement of the service. The controller 110 sends forwarding instructions to each node passed by the transmission path through the control plane interface 132, respectively. In addition, the controller 110 also needs to send the channel identifier to each node through the first transmission path through the control plane interface 132. In this way, after the first ingress edge node receives the service message, it forwards the message to the next hop node in the transmission path through the configured channel.
目前的资源配置仅需要保证配置的带宽资源满足业务的带宽需求,即只保证单位时间内允许传输的最大数据量满足业务的实际传输需求,但具体在哪个时间段进行传输、以及在一个时间段内传输多少数据量,都是不确定的。这样就可能出现不同的时间范围内的实际带宽不同。例如配置1.2G bits/s的带宽,实际应用时在0.5秒内的实际带宽为2.4G bits/s,传输了1.2G bits的数据量,在下一个0.5秒内的实际带宽为0,没有进行数据传输。由于控制器仅为节点配置了带宽资源,而节点在哪个时间段内转发报文,在哪个时间段内不转发报文,以及节点的下一跳节点在哪个时间段内接收该报文,控制器并不确定,故对于控制器而言,节点转发报文的时延是不确定的。也就是说,目前的资源配置方法中,控制器不能将节点在一段时间内的实际传输的数据量控制在确定的指标范围内,也不能将各节点的转发时延控制在确定的指标范围内。显然,目前的资源配置方法不满足DIP技术提供确定性转发服务的要求。其中,节点转发报文的时延是指节点转发报文的时长。The current resource configuration only needs to ensure that the configured bandwidth resources meet the bandwidth requirements of the business, that is, only ensure that the maximum amount of data allowed to be transmitted per unit time meets the actual transmission needs of the business, but the specific time period for transmission and in a time period The amount of data transferred inside is uncertain. In this way, the actual bandwidth may be different in different time ranges. For example, when the bandwidth of 1.2G bits/s is configured, the actual bandwidth in 0.5 seconds is 2.4G bits/s in actual application, and the data volume of 1.2G bits is transmitted, and the actual bandwidth in the next 0.5 seconds is 0, and no data is performed. transmission. Since the controller only configures bandwidth resources for the node, and in which time period the node forwards the message, during which time period the message is not forwarded, and in which time period the next hop node of the node receives the message, control The controller is not certain, so for the controller, the delay of the node forwarding the message is uncertain. That is to say, in the current resource allocation method, the controller cannot control the amount of data actually transmitted by the node in a period of time within a certain index range, nor can it control the forwarding delay of each node within the certain index range. . Obviously, the current resource allocation method does not meet the requirements of DIP technology to provide deterministic forwarding services. Among them, the time delay for the node to forward the message refers to the time period for the node to forward the message.
鉴于此,本申请实施例提供一种资源配置方法。通过该方法,控制器以时间单位为粒度为第一节点配置N个时间单元在一个宏周期内的N个位置,这样第一节点将会使用固定的N个时间单元执行第一业务,意味着,控制器可以通过调整N个时间单元在一个宏周期内的位置,将第一节点的转发报文的时延控制在确定的指标范围内,从而能满足DIP技术提供确定性转发服务的要求。In view of this, the embodiment of the present application provides a resource configuration method. Through this method, the controller configures the first node with N time units at N positions in a macrocycle at the granularity of time units, so that the first node will use a fixed N time units to perform the first service, which means The controller can control the delay of forwarding packets of the first node within a certain index range by adjusting the positions of N time units in a macrocycle, so as to meet the requirement of DIP technology to provide deterministic forwarding services.
本申请实施例提供一种资源配置方法,请参见图2,为该方法的流程图。该方法可应用于图1所示的通信系统100中,在下文的介绍过程中,就以本申请实施例提供的方法应用于图1所示的通信系统100为例。The embodiment of the present application provides a resource configuration method. Please refer to FIG. 2, which is a flowchart of the method. This method can be applied to the communication system 100 shown in FIG. 1. In the following introduction, the method provided in the embodiment of the present application is applied to the communication system 100 shown in FIG. 1 as an example.
S201:控制器110接收请求消息,该请求消息用于指示控制器110配置用于执行第一业务的时域资源。S201: The controller 110 receives a request message, where the request message is used to instruct the controller 110 to configure a time domain resource for executing the first service.
控制器110接收请求消息,请求消息可以来自网络设备,也可以来自终端设备,本申请实施例对此不作限定。The controller 110 receives the request message. The request message may come from a network device or a terminal device, which is not limited in the embodiment of the present application.
其中,请求消息包括以下信息中的一项或多项:第一节点的标识,第二节点的标识或第一业务的带宽需求等。第一业务经由第一节点进入第一网络(即网络130)、经由第二节点离开网络130。在请求消息仅包括第一节点的标识、第二节点的标识以及第一业务的带宽需求中的部分信息时,其余信息可以通过预先设定的方式获得,或由控制器110配置获得等,本申请对此不作限定。例如,控制器110可以根据发送请求消息的设备的功能预先设定该设备的第一业务的带宽需求,或预先设定该设备的第一业务在网络130中的出/入边缘节点的标识。例如,控制器110可以根据第一业务的地址信息(例如,源地址、目的地址)配置第一业务在网络130中的出/入边缘节点的标识。再例如,控制器110可以根据发送请求消息的设备的功能确定第一业务的带宽需求。Wherein, the request message includes one or more of the following information: the identification of the first node, the identification of the second node, or the bandwidth requirement of the first service. The first service enters the first network (ie, the network 130) via the first node, and leaves the network 130 via the second node. When the request message only includes the identification of the first node, the identification of the second node, and part of the information in the bandwidth requirement of the first service, the remaining information can be obtained in a preset manner, or configured by the controller 110, etc. The application is not limited. For example, the controller 110 may pre-set the bandwidth requirement of the first service of the device according to the function of the device sending the request message, or preset the identification of the inbound/outbound edge node of the first service of the device in the network 130. For example, the controller 110 may configure the identification of the exit/entry edge node of the first service in the network 130 according to the address information (for example, source address, destination address) of the first service. For another example, the controller 110 may determine the bandwidth requirement of the first service according to the function of the device sending the request message.
S202:控制器110根据请求消息,确定入口为第一节点、出口为第二节点的第一传输路径。S202: The controller 110 determines, according to the request message, the first transmission path in which the entrance is the first node and the exit is the second node.
其中,第一传输路径包括i个节点,i为大于或等于2的整数。Wherein, the first transmission path includes i nodes, and i is an integer greater than or equal to 2.
控制器110接收到请求消息后,先确定第一业务在网络130中的传输路径。例如,控制器110可以根据第一节点的标识、第二节点的标识以及网络130中各节点的繁忙程度,计算第一业务在网络130中的第一传输路径。例如第一节点为节点121、第二节点为节点123,第一传输路径可以包括节点121、节点122以及节点123。节点的繁忙程度是指节点执行的业务的数量,繁忙程度越低,节点执行的业务的数量越少,节点所提供的转发服务的质量就越好。第一传输路径可以是第一业务在网络130中的最优的传输路径,这样就可以降低第一业务的报文在网络130中的转发时延。其中,最优的传输路径例如为传输距离最短的传输路径,或为经过的节点的数量最少的传输路径,或为传输距离最短以及经过的节点的数量最少的传输路径。After the controller 110 receives the request message, it first determines the transmission path of the first service in the network 130. For example, the controller 110 may calculate the first transmission path of the first service in the network 130 according to the identity of the first node, the identity of the second node, and the busyness of each node in the network 130. For example, the first node is node 121 and the second node is node 123, and the first transmission path may include node 121, node 122, and node 123. The busyness of a node refers to the number of services performed by the node. The lower the busyness, the less the number of services performed by the node, and the better the quality of the forwarding service provided by the node. The first transmission path may be the optimal transmission path of the first service in the network 130, so that the forwarding delay of the packet of the first service in the network 130 can be reduced. Among them, the optimal transmission path is, for example, the transmission path with the shortest transmission distance, or the transmission path with the least number of passing nodes, or the transmission path with the shortest transmission distance and the least number of passing nodes.
在确定出第一传输路径之后,控制器110可以向第一传输路径中的每个节点,发送该节点在第一传输路径中的上一跳节点的标识,或者在第一传输路径中的下一跳节点的标识,或者在第一传输路径中的上一跳节点的标识和在第一传输路径中的下一跳节点的标识。例如,第一传输路径经过的节点包括节点121、节点122以及节点123,控制器110可以向节点121发送节点122的标识,向节点122发送节点121的标识和节点123的标识,以及向节点123发送节点121的标识。After the first transmission path is determined, the controller 110 may send to each node in the first transmission path the identifier of the last hop node in the first transmission path of the node, or the downstream node in the first transmission path. The identity of the one-hop node, or the identity of the previous hop node in the first transmission path and the identity of the next hop node in the first transmission path. For example, the nodes that the first transmission path passes through include node 121, node 122, and node 123, and controller 110 may send the identification of node 122 to node 121, the identification of node 121 and the identification of node 123 to node 122, and the identification of node 123 to node 123. The identifier of the sending node 121.
控制器110还可以接收来自第一传输路径中每个节点的响应消息。响应消息可以指示节点已将控制器110所指示的节点的标识添加至本地存储的转发表中,该节点的转发表中记录有该节点在网络130中转发报文的上一跳节点的标识,和/或下一跳节点的标识。The controller 110 may also receive a response message from each node in the first transmission path. The response message may indicate that the node has added the identifier of the node indicated by the controller 110 to the locally stored forwarding table, and the forwarding table of the node records the identifier of the last hop node to which the node forwarded the message in the network 130, And/or the identification of the next hop node.
为了便于介绍,在下文中,以第一业务在网络130中的第一传输路径为节点121,节点122和节点123为例,也就是,控制器110确定节点121、节点122和节点123为第一业务提供转发服务。其中,入边缘节点为节点121,出边缘节点为节点123,也就是,第一节点为节点121,第二节点为节点123。For ease of introduction, in the following, the first transmission path of the first service in the network 130 is the node 121, the node 122 and the node 123 as an example, that is, the controller 110 determines that the node 121, the node 122, and the node 123 are the first The business provides forwarding services. Among them, the ingress edge node is node 121, and the egress edge node is node 123, that is, the first node is node 121, and the second node is node 123.
S203:控制器110可以根据第一传输路径中的节点的资源占用情况,确定在一宏周期内用于执行第一业务的时间单元的数量N。S203: The controller 110 may determine the number N of time units used to execute the first service in a macrocycle according to the resource occupancy of the nodes in the first transmission path.
控制器110可以根据第一传输路径中除第二节点之外的节点(即节点121以及节点122)在每个时间单元内能够传输的最大数据量(即每个时间单元对应的带宽资源),确定一个宏周期内用于执行第一业务所需的时间单元的数量N,该N个时间单元对应的带宽资源满足第一业务的带宽需求。The controller 110 may according to the maximum amount of data that can be transmitted in each time unit (that is, the bandwidth resource corresponding to each time unit) of nodes other than the second node in the first transmission path (ie, node 121 and node 122), The number N of time units required to execute the first service in a macrocycle is determined, and the bandwidth resources corresponding to the N time units meet the bandwidth requirements of the first service.
其中,N个时间单元中的一个时间单元用于指示调度时域资源的最小时长,也就是说,时间单元是时域上的最小调度单位。例如时间单元的长度为10μs,意味着每次调度数据流量最少需要调度10μs内的所有数据流量。Among them, one time unit among the N time units is used to indicate the minimum duration for scheduling time domain resources, that is, the time unit is the minimum scheduling unit in the time domain. For example, the length of the time unit is 10 μs, which means that at least all data flows within 10 μs need to be scheduled each time the data flow is scheduled.
一个宏周期可以包括M个时间单元,M可以是控制器110预先设定的正整数,例如,控制器110可以根据网络130中各节点转发数据量的能力预先设定M。例如节点转发数据量的能力与该节点所包括的门控队列的数量有关,若网络130中各节点皆包括4个门控队列,则可以将M预先设定为4的整数倍。应理解,控制器110还可以将M预先设定为其它值,例如3、6、10等。其中,N为小于或等于M,且大于或等于1的整数。A macrocycle may include M time units, and M may be a positive integer preset by the controller 110. For example, the controller 110 may preset M according to the ability of each node in the network 130 to forward the amount of data. For example, the ability of a node to forward the amount of data is related to the number of gated queues included in the node. If each node in the network 130 includes 4 gated queues, M can be preset to an integer multiple of 4. It should be understood that the controller 110 may also preset M to other values, such as 3, 6, 10, and so on. Wherein, N is an integer less than or equal to M and greater than or equal to 1.
控制器110可以根据控制器110维护的资源占用表项来获取节点的资源占用情况,资源占用表项包括网络130中所有节点的资源占用情况。对于一个节点来说,该节点的资源占用情况可以包括该节点的带宽资源占用情况,或者包括该节点的时域资源占用情况,或者包括该节点的带宽资源占用情况和时域资源占用情况。应理解的是,资源占用情况可以采用表项的格式维护,也就可以采用文字的格式维护,本申请实施例对此不作限定。The controller 110 may obtain the resource occupancy status of the node according to the resource occupancy table item maintained by the controller 110, and the resource occupancy table entry includes the resource occupancy status of all nodes in the network 130. For a node, the resource occupancy of the node may include the bandwidth resource occupancy of the node, or the time domain resource occupancy of the node, or the bandwidth resource occupancy and time domain resource occupancy of the node. It should be understood that the resource occupancy situation can be maintained in the format of table entries, that is, the format of text can be maintained, which is not limited in the embodiment of the present application.
其中,节点的带宽资源占用情况,可以包括为该节点所包括的通道的数量,通道执行的业务信息,通道的带宽,或通道中每个通道对应的两端的两个节点的标识等内容中的一项或多项。其中,业务信息可以包括业务的带宽需求或业务的标识等,控制器110可以根据业务的标识可以确定该业务在网络130中的传输路径。例如,资源占用表项中节点122的带宽资源占用情况可以包括第一通道和第二通道,第一通道用于执行第一业务,第二通道用于执行第二业务;第一通道为节点122与节点121之间的通道,第二通道为节点122与节点123之的通道;第一通道的带宽为2.4G bits/s,第一业务的带宽需求为1.4G bits/s,第二通道的带宽为1.2G bits/s,第二业务的带宽需求为1.2G bits/s。Among them, the bandwidth resource occupancy of a node may include the number of channels included in the node, the service information performed by the channel, the bandwidth of the channel, or the identification of the two nodes at both ends corresponding to each channel in the channel, etc. One or more. Wherein, the service information may include the bandwidth requirement of the service or the identifier of the service, and the controller 110 may determine the transmission path of the service in the network 130 according to the identifier of the service. For example, the bandwidth resource occupancy of the node 122 in the resource occupancy table entry may include the first channel and the second channel. The first channel is used to perform the first service, and the second channel is used to perform the second service; the first channel is the node 122 The second channel is the channel between node 122 and node 123; the bandwidth of the first channel is 2.4G bits/s, the bandwidth requirement of the first service is 1.4G bits/s, and the bandwidth of the second channel is 1.4G bits/s. The bandwidth is 1.2G bits/s, and the bandwidth requirement of the second service is 1.2G bits/s.
节点的时域资源占用情况,可以包括节点执行的业务信息,节点执行每个业务所占用的时间单元的数量,每个时间单元对应的带宽资源等内容中的一项或多项。例如,资源占用表项中节点122使用两个时间单元通过第一通道执行第一业务,使用两个时间单元通道第二通道执行第二业务,执行第一业务的每个时间单元对应的带宽为1.4G bits/s,执行第二业务的时间单元对应的带宽为1.2G bits/s。The time domain resource occupancy of a node may include one or more of the business information performed by the node, the number of time units occupied by each service performed by the node, and the bandwidth resources corresponding to each time unit. For example, in the resource occupation table entry, the node 122 uses two time units to execute the first service through the first channel, and uses the two time unit channels to execute the second service on the second channel. The bandwidth corresponding to each time unit that executes the first service is 1.4G bits/s, the bandwidth corresponding to the time unit for executing the second service is 1.2G bits/s.
在一种可能的实施方式中,控制器110可以在第一传输路径中每相邻的两个节点之间配置一个用于执行第一业务的通道,得到用于执行第一业务的(i-1)个通道,所配置的通道用于确定节点在每个时间单元内能够传输的最大数据量(即时间单元对应的带宽资源)。In a possible implementation manner, the controller 110 may configure a channel for executing the first service between every two adjacent nodes in the first transmission path to obtain (i- 1) A channel, the configured channel is used to determine the maximum amount of data that a node can transmit in each time unit (that is, the bandwidth resource corresponding to the time unit).
例如,在确定第一传输路径之后,控制器110可以根据第一传输路径中的除第二节点之外的节点的带宽资源占用情况以及第一业务的带宽需求,在第一传输路径中每相邻的两个节点之间配置一个用于执行第一业务的通道,以得到用于执行第一业务的(i-1)个通道。例如,控制器110根据节点121的带宽资源占用情况、节点122的带宽资源占用情况以及第一业务的带宽需求,为第一业务配置两个通道,该两个通道分别是节点121与节点122之间的一个通道,以及节点122与节点123之间的一个通道。For example, after the first transmission path is determined, the controller 110 may determine each phase in the first transmission path according to the bandwidth resource occupancy of nodes other than the second node in the first transmission path and the bandwidth requirement of the first service. A channel for executing the first service is configured between two adjacent nodes to obtain (i-1) channels for executing the first service. For example, the controller 110 configures two channels for the first service according to the bandwidth resource occupancy status of the node 121, the bandwidth resource occupancy status of the node 122, and the bandwidth requirement of the first service. The two channels are the difference between the node 121 and the node 122. And a channel between node 122 and node 123.
其中,通道是指两个节点之间的逻辑传输路径。(i-1)个通道中的每一个通道的带宽满足第一业务的带宽需求,该(i-1)个通道中的每一个通道的带宽满足第一业务的带宽需求是指,该(i-1)个通道中的每一个通道的带宽大于或等于第一业务的带宽需求。例如,第一业务的带宽需求为1G bits/s,控制器110为节点121与节点122之间配置的通道的带宽可以是1.2G bits/s,也可以是2.4G bits/s,或者可以是1G bits/s等,只要大于或等于1G  bits/S即可。Among them, the channel refers to the logical transmission path between two nodes. The bandwidth of each of the (i-1) channels meets the bandwidth requirement of the first service, and the bandwidth of each of the (i-1) channels meets the bandwidth requirement of the first service means that the (i -1) The bandwidth of each of the channels is greater than or equal to the bandwidth requirement of the first service. For example, the bandwidth requirement of the first service is 1Gbits/s, and the bandwidth of the channel configured by the controller 110 between the node 121 and the node 122 can be 1.2Gbits/s, 2.4Gbits/s, or 1G bits/s, etc., as long as it is greater than or equal to 1G bits/s.
由于控制器110可以在两个节点之间配置多个通道,且控制器110为业务配置的通道的带宽资源往往大于业务的带宽需求,故控制器110在第一传输路径中的相邻的两个节点之间配置用于执行第一业务的通道时,一种方式为可以直接在该相邻的两个节点之间配置一个通道用于执行第一业务,另一种方式为可以从该相邻的两个节点之间已配置的至少一个通道中,确定其中的一个通道用于执行第一业务。Since the controller 110 can configure multiple channels between two nodes, and the bandwidth resource of the channel configured by the controller 110 for the service is often greater than the bandwidth requirement of the service, the controller 110 has two adjacent channels in the first transmission path. When a channel for executing the first service is configured between two nodes, one way is to directly configure a channel between the two adjacent nodes to execute the first service, and the other way is to configure a channel between the two adjacent nodes to execute the first service. Among at least one channel that has been configured between two adjacent nodes, one of the channels is determined to be used for executing the first service.
这就意味着,用于执行第一业务的(i-1)个通道包括k个通道为新配置的通道,以及(i-k-1)个通道为已配置的通道,该(i-k-1)个通道为(i-1)个通道中除k个新配置的通道之外的通道。其中,控制器110在两个节点之间配置多个通道时,该多个通道中的每个通道可以用于执行不同的业务,节点可以同时通过不同的通道执行不同的业务。例如,控制器110在节点121与节点122之间配置第一通道和第二通道,第一通道可以用于执行第一业务,第二通道可以用于执行第二业务,节点可以在一个宏周期内序列号为0、1的两个时间单元内,通过第一通道执行第一业务以及通过第二通道执行第二业务。k大于或等于0,且小于或等于(i-1)的整数。This means that the (i-1) channels used to perform the first service include k channels as newly configured channels and (ik-1) channels as configured channels. The (ik-1) channels The channels are (i-1) channels other than the k newly configured channels. Wherein, when the controller 110 configures multiple channels between two nodes, each channel of the multiple channels can be used to execute different services, and the nodes can execute different services through different channels at the same time. For example, the controller 110 configures a first channel and a second channel between the node 121 and the node 122. The first channel can be used to perform the first service, the second channel can be used to perform the second service, and the node can be in a macro cycle. In the two time units with internal sequence numbers of 0 and 1, the first service is executed through the first channel and the second service is executed through the second channel. k is an integer greater than or equal to 0 and less than or equal to (i-1).
需要说明的是,本申请实施例中,已配置的通道是指,该通道为控制器110配置给其它业务的带宽资源,当前该通道的带宽资源可以是被该其它业务占用,也可以是未被该其它业务占用,相应地,该通道对应的时域资源可以处于空闲状态,可以部分被占用,也可以是全部被占用,其它业务是指除第一业务之外的业务。比如,控制器110为节点121配置了用于执行第二业务的第一通道,在控制器110为第一业务配置通道时,该第一通道为已配置的通道,同时节点121可以使用一个宏周期内的全部时间单元通过第一通道执行第二业务,或者节点121可以使用一个宏周期内的部分时间单元通过第一通道执行第二业务,或者节点121未执行第二业务。新配置的通道(也称为新通道)是指,该通道为控制器110配置给第一业务的带宽资源。It should be noted that in the embodiment of the present application, the configured channel refers to the bandwidth resource that the controller 110 configures for other services. The current bandwidth resource of the channel may be occupied by the other service or unavailable. Occupied by the other services, correspondingly, the time domain resources corresponding to the channel may be in an idle state, may be partially occupied, or may be fully occupied, and the other services refer to services other than the first service. For example, the controller 110 configures a first channel for the node 121 to execute a second service. When the controller 110 configures a channel for the first service, the first channel is a configured channel, and the node 121 can use a macro All the time units in the cycle execute the second service through the first channel, or the node 121 can use part of the time units in a macro cycle to execute the second service through the first channel, or the node 121 does not execute the second service. The newly configured channel (also referred to as a new channel) refers to the bandwidth resource configured by the controller 110 for the first service.
基于上述两种通道配置方式,该(i-1)个通道的组成存在以下三种情况:Based on the above two channel configuration methods, the composition of the (i-1) channels has the following three situations:
情况1:(i-1)个通道中的每个通道皆为新配置的通道,新配置的通道对应的时域资源处于空闲状态,意味着新配置的通道的上一跳节点可以通过该新配置的通道使用一个宏周期内的任意至少一个时间单元来执行第一业务。其中,通道的上一跳节点是指,通道对应的两端的两个节点中,报文所经过的第一个节点。例如,第一通道对应的两端的两个节点分别为第一节点和第二节点,第一通道用于执行第一业务,如果第一业务的报文经由第一节点转发给第二节点,那么第一通道的上一跳节点为第一节点。Case 1: Each of the (i-1) channels is a newly configured channel, and the time domain resource corresponding to the newly configured channel is in an idle state, which means that the previous hop node of the newly configured channel can pass through the newly configured channel. The configured channel uses any at least one time unit in a macrocycle to execute the first service. Among them, the last hop node of the channel refers to the first node through which the message passes among the two nodes at the two ends of the channel. For example, the two nodes at the two ends corresponding to the first channel are the first node and the second node, and the first channel is used to execute the first service. If the message of the first service is forwarded to the second node via the first node, then The last hop node of the first channel is the first node.
例如,第一业务的优先级较高时,控制器110可以为第一业务配置(i-1)个新通道,该(i-1)个新通道仅用于执行第一业务,也就是说,该(i-1)个新通道为第一业务在第一传输路径中的专用通道,避免了传输其它业务的干扰,且节点可以使用一个宏周期内的任意至少一个时间单元来执行第一业务,灵活性较高,能够保证为第一业务提供良好的转发服务。For example, when the priority of the first service is higher, the controller 110 may configure (i-1) new channels for the first service, and the (i-1) new channels are only used to execute the first service, that is, , The (i-1) new channels are dedicated channels for the first service in the first transmission path, which avoids the interference of transmitting other services, and the node can use any at least one time unit in a macrocycle to execute the first The business has high flexibility and can ensure the provision of good forwarding services for the first business.
再例如,i个节点中所有相邻的两个节点之间未配置通道时,或者,i个节点中所有相邻的两个节点之间已配置的通道中的每个通道的带宽不满足第一业务的带宽需求时,或者,i个节点中一部分相邻的两个节点之间未配置通道,剩余部分相邻的两个节点之间已配置的通道中的每个通道的带宽不满足第一业务的带宽需求时,控制器110可以为第一业务配置(i-1)个新通道。For another example, when no channels are configured between all two adjacent nodes in i nodes, or the bandwidth of each channel in the configured channels between all two adjacent nodes in i nodes does not satisfy the first When the bandwidth of a service is required, or, some of the i nodes have no channel configured between two adjacent nodes, and the bandwidth of each channel in the configured channels between the remaining two adjacent nodes does not meet the first When the bandwidth of a service is required, the controller 110 may configure (i-1) new channels for the first service.
可选的,新配置的每个通道的带宽可以相同。这样,i个节点在一个时间单元内能够传输的最大数据量相等。例如,每个时间单元的时间长度为10μs,控制器110在节点121与节点122之间新配置带宽为1.2G bits/s的第一通道,在节点122与节点123之间新配置带宽为1.2G bits/s的第二通道,节点121通过第一通道可以在每个时间单元内最大传输1.5kB的数据,节点122通过第二通道可以在每个时间单元内最大传输1.5kB的数据。Optionally, the bandwidth of each channel of the new configuration can be the same. In this way, the maximum amount of data that can be transmitted by i nodes in a time unit is equal. For example, the time length of each time unit is 10μs, the controller 110 newly configures the first channel with a bandwidth of 1.2Gbits/s between the node 121 and the node 122, and the newly configured bandwidth between the node 122 and the node 123 is 1.2 In the second channel of Gbits/s, the node 121 can transmit a maximum of 1.5 kB of data in each time unit through the first channel, and the node 122 can transmit a maximum of 1.5 kB of data in each time unit through the second channel.
在上述情况1中,k等于(i-1),控制器110为第一业务配置(i-1)个新通道,其中的每个通道的带宽皆满足第一业务的带宽需求,新配置的通道的上一跳节点可以通过该新配置的通道使用一个宏周期内的任意至少一个时间单元来执行第一业务,灵活性高,能够为第一业务提供良好的转发服务。In the above case 1, k is equal to (i-1), and the controller 110 configures (i-1) new channels for the first service, and the bandwidth of each channel meets the bandwidth requirements of the first service, and the newly configured The last hop node of the channel can use any at least one time unit in a macrocycle to execute the first service through the newly configured channel, which has high flexibility and can provide good forwarding services for the first service.
情况2:(i-1)个通道中的部分通道为新配置的通道,剩余部分通道为已配置的通道。其中,新配置的通道中的每个通道以及已配置的通道中的每个通道皆满足第一业务的带宽需求。意味着,控制器110在i个节点中部分相邻的两个节点之间配置用于执行第一业务的新通道,在i个节点中剩余相邻的两个节点之间从已配置的至少一个通道中,确定一个通道用于执行第一业务。Case 2: Some of the (i-1) channels are newly configured channels, and the remaining part of the channels are configured channels. Among them, each of the newly configured channels and each of the configured channels meet the bandwidth requirement of the first service. This means that the controller 110 configures a new channel for executing the first service between two partially adjacent nodes among the i nodes, and the remaining two adjacent nodes among the i nodes are at least In a channel, a channel is determined to be used to execute the first service.
在相邻的两个节点之间存在至少一个已配置的通道时,控制器110可以在该相邻的两个节点之间新配置用于执行第一业务的通道,也可以从该至少一个已配置的通道中,确定其中的一个通道用于执行第一业务。When there is at least one configured channel between two adjacent nodes, the controller 110 may newly configure a channel for executing the first service between the two adjacent nodes, or may select from the at least one configured channel. Among the configured channels, one of the channels is determined to be used to execute the first service.
下面以控制器110在节点121与节点122之间确定用于执行第一业务的通道为例,对在相邻的两个节点之间是配置新通道用于执行第一业务、还是从已配置的通道中确定一个通道来执行第一业务进行详细的描述。其中,第一业务的报文由节点121转发给节点122。具体流程请参见图3,为一种资源配置方法的流程图。The following takes the controller 110 determining the channel for executing the first service between the node 121 and the node 122 as an example, and whether to configure a new channel between two adjacent nodes to execute the first service, or from the configured channel In the channels, determine a channel to execute the first service for a detailed description. Among them, the message of the first service is forwarded by the node 121 to the node 122. For the specific process, please refer to Figure 3, which is a flowchart of a resource configuration method.
S301:控制器110获取节点121的带宽资源占用情况。S301: The controller 110 obtains the bandwidth resource occupation status of the node 121.
控制器110可以根据控制器110维护的资源占用表项来获取节点121的带宽资源占用情况。The controller 110 may obtain the bandwidth resource occupancy status of the node 121 according to the resource occupancy table entries maintained by the controller 110.
S302:控制器110根据节点121的带宽资源占用情况,判断节点121与节点122之间是否存在已配置的通道。如果节点121与节点122之间存在已配置的通道,则执行S303;如果节点121与节点122之间不存在已配置的通道,则执行S305。S302: The controller 110 determines whether there is a configured channel between the node 121 and the node 122 according to the bandwidth resource occupancy of the node 121. If there is a configured channel between the node 121 and the node 122, execute S303; if there is no configured channel between the node 121 and the node 122, then execute S305.
例如,节点121的带宽资源占用情况仅包括第一通道,第一通道对应的两端的两个节点的标识分别为节点121的标识和节点124的标识,控制器110可以确定节点121与节点122之间不存在已配置的通道。For example, the bandwidth resource occupancy of node 121 only includes the first channel, and the identifiers of the two nodes at the two ends corresponding to the first channel are the identifier of node 121 and the identifier of node 124 respectively, and the controller 110 may determine whether the node 121 and the node 122 are There is no configured channel between.
再例如,节点121的带宽资源占用情况包括第一通道和第二通道,第一通道对应的两端的两个节点的标识分别为节点121的标识和节点124的标识,第二通道对应的两端的两个节点的标识分别为节点121的标识和节点122的标识,控制器110可以确定节点121与节点122之间存在已配置的通道,即第二通道。For another example, the bandwidth resource occupancy of node 121 includes the first channel and the second channel. The identifiers of the two nodes at the two ends corresponding to the first channel are the identifier of node 121 and the identifier of node 124, respectively. The identifiers of the two nodes are the identifier of the node 121 and the identifier of the node 122 respectively, and the controller 110 may determine that there is a configured channel between the node 121 and the node 122, that is, the second channel.
S303:控制器110根据第一业务的带宽需求以及节点121的带宽资源占用情况,判断节点121与节点122之间已配置的通道中是否有至少一个通道的带宽满足第一业务的带宽需求。如果节点121与节点122之间已配置的通道中的至少一个通道的带宽满足第一业务的带宽需求,则执行S304;如果节点121与节点122之间所有已配置的通道中的带宽不满足第一业务的带宽需求,则执行S305。S303: The controller 110 determines whether the bandwidth of at least one channel among the configured channels between the node 121 and the node 122 meets the bandwidth requirement of the first service according to the bandwidth requirement of the first service and the bandwidth resource occupancy of the node 121. If the bandwidth of at least one of the channels configured between the node 121 and the node 122 meets the bandwidth requirement of the first service, execute S304; if the bandwidth of all the configured channels between the node 121 and the node 122 does not meet the bandwidth requirement of the first service For the bandwidth requirement of a service, S305 is executed.
例如,第一业务的带宽需求为1.2G bits/s,节点121与节点122之间已配置的通道包 括第一通道和第二通道,第一通道的带宽为1G bits/s,第二通道的带宽为1.2G bits/s,控制器110可以确定第一通道的带宽不满足第一业务的带宽需求,第二通道的带宽满足第一业务的带宽需求。For example, the bandwidth requirement of the first service is 1.2Gbits/s, the configured channel between node 121 and node 122 includes the first channel and the second channel, the bandwidth of the first channel is 1Gbits/s, and the bandwidth of the second channel is 1Gbits/s. The bandwidth is 1.2 Gbits/s, and the controller 110 may determine that the bandwidth of the first channel does not meet the bandwidth requirement of the first service, and the bandwidth of the second channel meets the bandwidth requirement of the first service.
S304:控制器110从节点121与节点122之间已配置的通道中确定一个通道用于执行第一业务。S304: The controller 110 determines a channel from the configured channels between the node 121 and the node 122 for executing the first service.
如果节点121与节点122之间存在多个已配置的通道可以用于执行第一业务,控制器110可以从该多个已配置的通道中确定其中带宽最大的一个通道用于执行第一业务;或者,控制器110可以从该多个已配置的通道中确定其中带宽最小的一个通道用于执行第一业务;或者,控制器110可以从该多个已配置的通道中确定其中的任一个通道用于执行第一业务;本申请实施例对此不作限定。If there are multiple configured channels between the node 121 and the node 122 that can be used to execute the first service, the controller 110 may determine from the multiple configured channels that the channel with the largest bandwidth is used to execute the first service; Alternatively, the controller 110 may determine from the plurality of configured channels that the channel with the smallest bandwidth is used to execute the first service; or, the controller 110 may determine any one of the plurality of configured channels Used to execute the first service; this embodiment of the application does not limit this.
S305:控制器110在节点121与节点122之间配置用于执行第一业务的新通道。S305: The controller 110 configures a new channel between the node 121 and the node 122 for executing the first service.
通过S301~S308所示的流程,控制器110可以确定在相邻的两个节点之间是配置新通道用于执行第一业务,还是从该两个节点之间已配置的至少一个通道中确定其中的一个通道用于执行第一业务。Through the procedures shown in S301 to S308, the controller 110 can determine whether to configure a new channel between two adjacent nodes to execute the first service, or to determine from at least one channel that has been configured between the two nodes One of the channels is used to execute the first service.
在上述情况2中,k为大于0且小于(i-1)的整数,控制器110为第一业务配置k个新通道以及(i-1-k)个已配置的通道,该(i-1-k)个已配置的通道中的每个通道皆满足第一业务的带宽需求,意味着,已配置的通道中过剩的资源得到了合理地利用,避免资源的浪费,提高资源利用率。In the above case 2, k is an integer greater than 0 and less than (i-1), the controller 110 configures k new channels and (i-1-k) configured channels for the first service, and the (i- 1-k) Each channel of the configured channels meets the bandwidth requirement of the first service, which means that the excess resources in the configured channels are reasonably used, which avoids resource waste and improves resource utilization.
情况3:(i-1)个通道中的全部通道为已配置的通道。其中,已配置的通道中的每个通道满足第一业务的带宽需求。意味着,控制器110在i个节点中任一相邻的两个节点之间,从该两个节点之间的至少一个已配置的通道中确定一个已配置的通道执行第一业务。Case 3: All channels in (i-1) channels are configured channels. Among them, each of the configured channels meets the bandwidth requirement of the first service. This means that between any two adjacent nodes among the i nodes, the controller 110 determines a configured channel from at least one configured channel between the two nodes to perform the first service.
例如,i个节点中每个相邻的两个节点之间存在至少一个已配置的通道,且该至少一个已配置的通道中的至少一个通道的带宽满足第一业务的带宽需求,控制器110可以确定i个节点中每相邻的两个节点之间的一个已配置的通道用于执行第一业务,也就是(i-1)个已配置的通道用于执行第一业务。For example, at least one configured channel exists between each adjacent two nodes in the i nodes, and the bandwidth of at least one channel in the at least one configured channel meets the bandwidth requirement of the first service, the controller 110 It can be determined that one configured channel between every two adjacent nodes in the i nodes is used to execute the first service, that is, (i-1) configured channels are used to execute the first service.
在上述情况3中,k等于0,控制器110确定(i-1)个已配置的通道用于执行第一业务,其中的每个通道的带宽皆满足第一业务的带宽需求。由于用于执行第一业务的(i-1)个通道为已配置的通道,意味着,该(i-1)个通道不仅需要执行第一业务还需要执行其他业务,使得大量过剩的资源得到合理地利用,避免了资源浪费,提高资源利用率。In case 3 above, k is equal to 0, and the controller 110 determines (i-1) configured channels for executing the first service, and the bandwidth of each of the channels meets the bandwidth requirement of the first service. Since the (i-1) channels used to perform the first service are configured channels, it means that the (i-1) channels not only need to perform the first service but also need to perform other services, so that a large amount of excess resources are obtained. Reasonable utilization avoids waste of resources and improves resource utilization.
在确定出(i-1)个通道之后,控制器110可以向第一传输路径中的每个节点,发送如下信息中的一项或多项:执行第一业务的通道的标识,执行第一业务的通道的带宽,或第一业务的标识等。进一步地,控制器110还可以接收来自第一传输路径中每个节点的响应消息。响应消息可以指示节点已存储控制器110所指示的执行第一业务的通道的标识,执行第一业务的通道的带宽,或第一业务的标识等中的一项或多项信息。After determining (i-1) channels, the controller 110 may send one or more of the following information to each node in the first transmission path: the identification of the channel that executes the first service, and execute the first The bandwidth of the service channel, or the identity of the first service, etc. Further, the controller 110 may also receive a response message from each node in the first transmission path. The response message may indicate that the node has stored one or more of the identification of the channel for executing the first service indicated by the controller 110, the bandwidth of the channel for executing the first service, or the identification of the first service.
在一种可能的实施方式中,控制器110可以根据(i-1)个通道中每一个通道的带宽以及第一业务的带宽需求,确定在一宏周期内用于执行第一业务的时间单元的数量N。In a possible implementation manner, the controller 110 may determine the time unit for executing the first service in a macro cycle according to the bandwidth of each of the (i-1) channels and the bandwidth requirement of the first service. The number N.
在(i-1)个通道中的每个通道的带宽相同时,意味着i个节点在一个时间单元内能够传输的最大数据量相等(也称为每个时间单元对应的带宽相等),则控制器110可以根据通道的带宽确定一个时间单元对应的带宽,再根据一个时间单元对应的带宽以及第一业务的带宽需求,确定在一个宏周期内用于执行第一业务的时间单元的数量N。例如,一个宏周 期包括10个时间单元,每个时间单元的时间长度为10μs,(i-1)个通道中的每个通道的带宽相同,皆为1.2G bits/s,意味着为每个时间单元对应的带宽为1.2G bits/s。例如,第一业务的带宽需求为0.6G bits/s,控制器110可以确定出一个宏周期内用于执行第一业务的时间单元数据为5个。When the bandwidth of each of the (i-1) channels is the same, it means that the maximum amount of data that can be transmitted by i nodes in a time unit is equal (also called the bandwidth corresponding to each time unit is equal), then The controller 110 may determine the bandwidth corresponding to a time unit according to the bandwidth of the channel, and then determine the number N of time units used to execute the first service in a macrocycle according to the bandwidth corresponding to a time unit and the bandwidth requirement of the first service. . For example, a macrocycle includes 10 time units, and the time length of each time unit is 10μs. The bandwidth of each channel in (i-1) channels is 1.2Gbits/s, which means that each The bandwidth corresponding to the time unit is 1.2G bits/s. For example, the bandwidth requirement of the first service is 0.6 Gbits/s, and the controller 110 may determine that there are 5 time unit data for executing the first service in one macrocycle.
在(i-1)个通道中的至少一个通道的带宽与其余通道的带宽不同时,意味着i个节点在一个时间单元内能够传输的最大数据量不相等,则控制器110可以确定出(i-1)个通道对应的(i-1)个带宽中的最小带宽。然后,控制器110可以根据该最小带宽以及第一业务的带宽需求,确定在一个宏周期内用于执行第一业务的时间单元的数量N。例如,一个宏周期包括10个时间单元,每个时间单元的时间长度为10μs,节点121与节点122之间的第一通道的带宽为1.2G bits/S,节点121在一个时间单元内能够传输的最大数据量为1.5kB,节点122与节点123之间的第二通道的带宽为2.4G bits/S,节点122在一个时间单元内能够传输的最大数据量为3kB,第一通道和第二通道中的最小带宽为1.2G bits/S,第一业务的带宽需求为0.6G bits/S,控制器110根据最小带宽可以确定出一个宏周期内用于执行第一业务的时间单元数据为5个。When the bandwidth of at least one of the (i-1) channels is different from the bandwidth of the remaining channels, it means that the maximum amount of data that i nodes can transmit in a time unit is not equal, and the controller 110 can determine ( i-1) The smallest bandwidth among the (i-1) bandwidths corresponding to the channels. Then, the controller 110 may determine the number N of time units used to execute the first service in a macro cycle according to the minimum bandwidth and the bandwidth requirement of the first service. For example, a macrocycle includes 10 time units, the time length of each time unit is 10 μs, the bandwidth of the first channel between node 121 and node 122 is 1.2 Gbits/S, and node 121 can transmit within one time unit The maximum amount of data is 1.5kB, the bandwidth of the second channel between node 122 and node 123 is 2.4Gbits/S, the maximum amount of data that node 122 can transmit in a time unit is 3kB, the first channel and the second channel The minimum bandwidth in the channel is 1.2Gbits/S, and the bandwidth requirement of the first service is 0.6Gbits/S. The controller 110 can determine according to the minimum bandwidth that the time unit data used to execute the first service in a macrocycle is 5 A.
S204:控制器110为第一节点配置该N个时间单元在一个宏周期内的N个位置。S204: The controller 110 configures N positions of the N time units in a macrocycle for the first node.
在控制器110确定出用于执行第一业务的时间单元的数量N后,为节点121(即第一节点)配置N个时间单元在一个宏周期内的N个位置。After the controller 110 determines the number N of time units used to execute the first service, the node 121 (that is, the first node) is configured with N time units at N positions in one macrocycle.
如果(i-1)个通道中的每个通道都是新通道,新通道对应的时域资源皆处于空闲状态,则控制器110可以为第一节点配置该N个时间单元在一个宏周期内的任意N个位置。例如,一个宏周期内包括三个时间单元,执行第一业务的时间单元数量为两个,控制器110为第一节点配置一个宏周期内的第一个时间单元(序列号为0)以及第二个时间单元(序列号为1)的两个时间单元执行第一业务,或者配置一个宏周期内的第一个时间单元(序列号为0)以及第三个时间单元(序列号为2)的两个时间单元执行第一业务,或者配置一个宏周期内的第二个时间单元(序列号为1)以及第三个时间单元(序列号为2)的两个时间单元执行第一业务。If each of the (i-1) channels is a new channel, and the time domain resources corresponding to the new channel are all in an idle state, the controller 110 may configure the N time units for the first node in one macrocycle Any N positions of. For example, there are three time units in a macrocycle, and the number of time units for performing the first service is two, and the controller 110 configures the first node with the first time unit (sequence number is 0) and the first time unit in a macrocycle. Two time units of two time units (serial number 1) perform the first service, or configure the first time unit (serial number 0) and the third time unit (serial number 2) in a macro cycle The first service is performed by the two time units of, or the second time unit (sequence number 1) and the third time unit (sequence number 2) in a macrocycle are configured to perform the first service.
在此情况下,控制器110可以为(i-1)个通道中的每个通道配置相同的带宽,这样,i个节点在一个时间单元内能够传输的最大数据量相同。例如每个时间单元的时间长度为10μs,控制器110在节点121与节点122之间新配置带宽为1.2G bits/s的第一通道,在节点122与节点123之间新配置带宽为1.2G bits/s的第二通道。节点121通过第一通道可以在每个时间单元内最大传输1.5kB的数据,节点122通过第二通道可以在每个时间单元内最大传输1.5kB的数据。In this case, the controller 110 may configure the same bandwidth for each of the (i-1) channels, so that the maximum amount of data that can be transmitted by the i nodes in one time unit is the same. For example, the time length of each time unit is 10 μs, and the controller 110 newly configures the first channel with a bandwidth of 1.2G bits/s between node 121 and node 122, and newly configures a bandwidth of 1.2G between node 122 and node 123 The second channel of bits/s. The node 121 can transmit a maximum of 1.5 kB of data in each time unit through the first channel, and the node 122 can transmit a maximum of 1.5 kB of data in each time unit through the second channel.
如果(i-1)个通道中的至少一个通道为已配置的通道,这意味着至少一个通道的上一跳节点的部分时域资源被占用,可能存在时域资源冲突,则控制器110可以先为节点121配置N个时间单元在一个宏周期内的N个位置,再根据第一传输路径中除节点123(即第二节点)之外的节点的时域资源占用情况,以及宏周期偏移,调整至少一个节点的时域资源分配情况,以使得该至少一个节点在一个宏周期内用于执行第一业务的时域资源处于空闲状态。If at least one of the (i-1) channels is a configured channel, which means that part of the time domain resources of the previous hop node of at least one channel is occupied, and there may be a time domain resource conflict, the controller 110 may The node 121 is first configured with N time units at N positions in a macrocycle, and then based on the time domain resource occupancy of nodes other than node 123 (ie, the second node) in the first transmission path, and the macrocycle deviation Move, adjust the time domain resource allocation situation of at least one node, so that the time domain resource used for executing the first service of the at least one node in a macro cycle is in an idle state.
其中,时域资源冲突是指,一个时间单元内需要使用一个通道执行至少一个业务,或者,一个时间单元内需要使用一个通道执行至少一个业务,该一个时间单元内的带宽资源不满足该至少一个业务的总的带宽需求。例如,节点121的带宽资源占用情况包括第一通 道和第二通道,第一通道的带宽和第二通道的带宽皆满足第一业务的带宽需求,节点121通过第一通道使用一个宏周期内序列号为0、1的两个时间单元执行第二业务,节点121通过第二通道使用一个宏周期内序列号为3、4的两个时间单元执行第三业务,控制器110为节点121配置一个宏周期内序列号为1、2的两个时间单元执行第一业务,对于第一通道,节点121需要在一个宏周期内序列号为1的时间单元内同时执行第一业务和第二业务,故第一通道存在时域资源冲突;对于第二通道,节点121在一个宏周期内不同的两个位置所对应的时间单元内分别执行第一业务和第三业务,故第二通道不存在时域资源冲突。再例如,节点121的带宽资源占用情况包括第一通道和第二通道,第一业务的带宽需求是1.2G bits/s,第二业务的带宽需求是1G bits/s,第一通道的带宽为1.2G bits/s,第二通道的带宽为2.4G bits/s;对于第一通道,一个时间单元对应的带宽为1.2G bits/s,显然不满足第一业务以及第二业务的总的带宽需求,则第一通道存在时域资源冲突;而对于第二通道,一个时间单元内对应的带宽为2.4G bits/s,显然满足第一业务以及第二业务的总的带宽需求,则第二通道不存在时域资源冲突。Among them, the time domain resource conflict refers to that one channel needs to be used to execute at least one service within a time unit, or one channel needs to be used to execute at least one service within a time unit, and the bandwidth resource in the one time unit does not satisfy the at least one service. The total bandwidth requirements of the business. For example, the bandwidth resource occupancy of node 121 includes the first channel and the second channel. Both the bandwidth of the first channel and the bandwidth of the second channel meet the bandwidth requirements of the first service. The node 121 uses the first channel to use a macrocycle sequence The two time units numbered 0 and 1 perform the second service, the node 121 uses the two time units numbered 3 and 4 in a macrocycle to perform the third service through the second channel, and the controller 110 configures one for node 121 The two time units with sequence numbers 1 and 2 in the macrocycle execute the first service. For the first channel, the node 121 needs to execute the first service and the second service at the same time in the time unit with the sequence number 1 in one macrocycle. Therefore, the first channel has a time domain resource conflict; for the second channel, the node 121 executes the first service and the third service in the time units corresponding to two different positions in a macrocycle, so when the second channel does not exist Domain resource conflict. For another example, the bandwidth resource occupancy of node 121 includes the first channel and the second channel, the bandwidth requirement of the first service is 1.2G bits/s, the bandwidth requirement of the second service is 1G bits/s, and the bandwidth of the first channel is 1.2G bits/s, the bandwidth of the second channel is 2.4G bits/s; for the first channel, the bandwidth corresponding to one time unit is 1.2G bits/s, which obviously does not meet the total bandwidth of the first service and the second service Demand, the first channel has a time domain resource conflict; for the second channel, the corresponding bandwidth in a time unit is 2.4 Gbits/s, which obviously meets the total bandwidth requirements of the first service and the second service, then the second There is no time domain resource conflict in the channel.
下面以节点122使用第一通道执行第一业务会存在时域资源冲突为例,对如何调整节点122的时域资源以化解时域资源冲突进行详细的描述。其中,第一通道为节点122与节点123之间的已配置的通道中的一个通道,控制器110为节点121配置在一个宏周期内的N个位置对应的时间单元执行第一业务,节点122在一个宏周期内的H个时间单元对应的H个时间单元内执行第一业务,该H个位置中的至少一个位置所对应的时间单元被第二业务占用,或者该H个位置中的至少一个位置所对应的时间单元已配置给第二业务,H的大小等于N的大小,H个时间单元的序列号与N个时间单元的序列号可能不一样。具体流程请参见图4,为一种资源配置方法的流程图。Hereinafter, taking the time domain resource conflict when the node 122 uses the first channel to execute the first service as an example, how to adjust the time domain resource of the node 122 to resolve the time domain resource conflict will be described in detail. The first channel is one of the configured channels between the node 122 and the node 123. The controller 110 configures the node 121 to execute the first service at the time unit corresponding to N positions in a macrocycle, and the node 122 The first service is executed in H time units corresponding to H time units in a macrocycle, and the time unit corresponding to at least one of the H positions is occupied by the second service, or at least one of the H positions The time unit corresponding to a location has been allocated to the second service, the size of H is equal to the size of N, and the serial numbers of H time units may be different from the serial numbers of N time units. Please refer to Figure 4 for the specific process, which is a flowchart of a resource configuration method.
S401:控制器110获取节点122的时域资源占用情况,以确定第二业务的标识以及节点122用于执行第二业务的时间单元的数量Q。S401: The controller 110 obtains the time domain resource occupation status of the node 122 to determine the identifier of the second service and the number Q of time units used by the node 122 to execute the second service.
控制器110可以根据控制器110维护的资源占用表项来获取节点122的时域资源占用情况,从而能控制器110可以确定出第二业务的标识,以及节点122执行第二业务需要一个宏周期内的Q个时间单元,Q为大于1的正整数。The controller 110 can obtain the time domain resource occupancy status of the node 122 according to the resource occupancy table items maintained by the controller 110, so that the controller 110 can determine the identity of the second service, and the node 122 needs a macrocycle to execute the second service Q time units within, Q is a positive integer greater than 1.
S402:控制器110根据第二业务的标识,确定执行第二业务的第二传输路径。S402: The controller 110 determines a second transmission path for executing the second service according to the identifier of the second service.
第二传输路径包括节点122和节点124,第二业务经由节点124进入网络130。The second transmission path includes a node 122 and a node 124, and the second service enters the network 130 via the node 124.
S403:控制器110根据第一宏周期偏移,确定K个位置,该K个位置为节点124在一个宏周期内与H个位置对应的位置。S403: The controller 110 determines K positions according to the first macrocycle offset, where the K positions are positions of the node 124 corresponding to the H positions in one macrocycle.
控制器110可以根据宏周期偏移表项获取第一宏周期偏移,该宏周期偏移表项用于存储网络130中报文在两个节点间传输的时延。该第一宏周期偏移为报文沿第二传输路径从节点124传输到节点122的时延。例如,在第二传输路径中节点122为节点124的下一跳节点,则控制器110获取节点122的宏周期偏移表项,确定报文从节点122传输到节点124的时延,即为该第一宏周期偏移。再例如,第二业务的报文由节点124转发给节点125,再由节点125转发给节点122,控制器110分别根据节点125的宏周期偏移表项以及节点122的宏周期偏移表项,确定节点124与节点125之间的传输时延,以及节点125与节点122之间的传输时延,该第一宏周期偏移为节点124与节点125之间的传输时延,以及节点125与节点122之间的传输时延之和。The controller 110 may obtain the first macroperiod offset according to the macroperiod offset entry, and the macroperiod offset entry is used to store the transmission delay of the packet in the network 130 between two nodes. The first macrocycle offset is the time delay for the message to be transmitted from the node 124 to the node 122 along the second transmission path. For example, in the second transmission path, the node 122 is the next hop node of the node 124, and the controller 110 obtains the macroperiod offset entry of the node 122, and determines the time delay of the packet transmission from the node 122 to the node 124, which is The first macrocycle offset. For another example, the message of the second service is forwarded by the node 124 to the node 125, and then forwarded by the node 125 to the node 122, and the controller 110 respectively according to the macroperiod offset entry of the node 125 and the macroperiod offset entry of the node 122 , Determine the transmission delay between the node 124 and the node 125, and the transmission delay between the node 125 and the node 122, the first macrocycle offset is the transmission delay between the node 124 and the node 125, and the node 125 The sum of the transmission delays with the node 122.
S404:控制器110根据第二传输路径中的节点的资源占用情况,为节点124重新配置 Q个时间单元在一个宏周期内的Q个位置,该Q个位置包括一个宏周期内除K个位置之外的位置。S404: The controller 110 reconfigures the Q positions of the Q time units in a macro period for the node 124 according to the resource occupation of the nodes in the second transmission path, and the Q positions include K positions in a macro period. Outside the location.
控制器110根据第二传输路径中的节点的带宽资源占用情况、和/或时域资源占用情况,为节点124重新配置Q个时间单元在一个宏周期内的Q个位置,该Q个位置包括一个宏周期内除K个位置之外的位置。The controller 110 reconfigures the Q locations of Q time units in a macrocycle for the node 124 according to the bandwidth resource occupancy status and/or the time domain resource occupancy status of the nodes in the second transmission path, and the Q locations include Positions other than K positions in a macrocycle.
S405:控制器110向节点124发送重配置消息,所述重配置消息指示Q个位置。S405: The controller 110 sends a reconfiguration message to the node 124, where the reconfiguration message indicates Q positions.
节点124在接收到该重配置消息后,作为响应,将在该Q个位置对应的Q个时间单元内执行第二业务,这样,由于Q个位置为一个宏周期内除K个位置之外的位置,故该K个位置对应的K个时间单元就处于空闲状态,而节点122处,K个位置与H个位置对应,从而H个位置对应的H个时间单元也就处于空闲状态,进而化解了节点122的时域资源冲突问题。After the node 124 receives the reconfiguration message, in response, it will execute the second service in Q time units corresponding to the Q positions. In this way, since the Q positions are excluding the K positions in a macrocycle Therefore, the K time units corresponding to the K positions are in the idle state, and at node 122, the K positions correspond to the H positions, so the H time units corresponding to the H positions are also in the idle state, and the solution The time domain resource conflict problem of node 122 is solved.
通过S401~S405所示的流程,控制器110避免或化解节点处的时域资源冲突,使得过剩的带宽资源得到合理地利用,减少资源浪费,从而可以提供资源利用率。Through the processes shown in S401 to S405, the controller 110 avoids or resolves time-domain resource conflicts at nodes, so that excess bandwidth resources can be reasonably used, and resource waste is reduced, thereby providing resource utilization.
需要说明的是,在S404所示的步骤中,控制器110根据第二传输路径中的节点的资源占用情况,确定通过调整节点124用于执行第二业务的时域资源,不能使得K个位置对应的K个时间单元皆处于空闲状态,意味着,不能使得一个宏周期内H个位置对应的H个时间单元皆处于空闲状态,那么控制器110可以从节点122与节点123之间已配置的通道中确定除第一通道之外的一个通道执行第一业务。进一步地,如果节点122与节点123之间所有已配置的通道皆存在时域资源冲突,且不可避免时,控制器110可以在节点122与节点123配置一个用于执行第一业务的通道。It should be noted that in the step shown in S404, the controller 110 determines that by adjusting the time domain resources used by the node 124 to execute the second service according to the resource occupancy of the nodes in the second transmission path, the K positions cannot be set. The corresponding K time units are all in the idle state, which means that the H time units corresponding to the H positions in a macro cycle cannot be made to be in the idle state. Then the controller 110 can be configured from the node 122 and the node 123. A channel other than the first channel is determined to perform the first service among the channels. Further, if all configured channels between the node 122 and the node 123 have time domain resource conflicts, and it is unavoidable, the controller 110 may configure a channel for executing the first service between the node 122 and the node 123.
需要说明的是,图4所示的流程,为控制器110调整节点124中Q个时间单元在一个宏周期内的位置,达到调整节点122用于执行第二业务的时域资源的目的,从而使得节点122通过第一通道使用不同位置对应的时间单元来分别执行第一业务和第二业务。在另一种示例中,控制器110可以调整节点121中N个时间单元在一个宏周期内的位置,达到调整节点122用于执行第一业务的时域资源的目的,从而使得节点122通过第一通道使用不同位置对应的时间单元来分别执行第一业务和第二业务。It should be noted that the process shown in FIG. 4 adjusts the positions of Q time units in the node 124 in a macro cycle for the controller 110 to achieve the purpose of adjusting the time domain resources used by the node 122 to execute the second service, thereby The node 122 uses the time units corresponding to different positions to execute the first service and the second service respectively through the first channel. In another example, the controller 110 can adjust the positions of the N time units in the node 121 within a macrocycle to achieve the purpose of adjusting the time domain resources used by the node 122 to execute the first service, so that the node 122 can pass the first service. One channel uses time units corresponding to different locations to execute the first service and the second service respectively.
举例说明,如图12所示,M=6,一个宏周期内6个时间单元对应的序列号分别为0、1、2、3、4、5,第二业务经过节点121、节点122以及节点125,第三业务经过节点124、节点122以及节点123。对于第二业务而言,节点121在一个宏周期内的第一个时间单元、第二个时间单元以及第三个时间单元(即序列号分别为0、1、2)的3个时间单元内,通过节点121与节点122之间的第一通道向节点122发送第二业务的报文;节点121与节点122的之间的宏周期偏移为3个时间单元,节点122接收到第二业务的报文之后,在一个宏周期内的第四个时间单元、第五个时间单元以及第六个时间单元(即序列号分别为3、4、5)的3个时间单元内,通过节点122与节点125之间的第二通道向节点125发送该第二业务的报文。对于第三业务而言,节点124在一个宏周期内的第一个时间单元、第五个时间单元以及第六个时间单元(即序列号分别为0、4、5)的3个时间单元内,通过节点124与节点122之间的第三通道向节点122发送第三业务的报文,节点124与节点122之间的宏周期偏移为1个时间单元,节点122接收到第三业务的报文之后,在一个宏周期内的第一个时间单元、第二个时间单元以及第六个时间单元(即序列号分别为0、1、5,应理解的是,节点122在序列号为0的时间单元内所发送的报文,为节点124在上一个宏周期内 的序列号为5的时间单元内所发送的报文)的3个时间单元内,通过节点122与节点123之间的第四通道向节点123发送第三业务的报文。For example, as shown in Figure 12, M=6, the sequence numbers corresponding to the 6 time units in a macrocycle are 0, 1, 2, 3, 4, and 5 respectively. The second service passes through node 121, node 122, and node 125. The third service passes through node 124, node 122, and node 123. For the second service, the node 121 is within 3 time units of the first time unit, the second time unit, and the third time unit (that is, the sequence numbers are 0, 1, and 2 respectively) in a macrocycle , Send a message of the second service to node 122 through the first channel between node 121 and node 122; the macrocycle offset between node 121 and node 122 is 3 time units, node 122 receives the second service After the message, in three time units of the fourth time unit, the fifth time unit and the sixth time unit (that is, the sequence numbers are 3, 4, and 5 respectively) in a macrocycle, pass through node 122 The second channel with the node 125 sends the message of the second service to the node 125. For the third service, the node 124 is within 3 time units of the first time unit, the fifth time unit, and the sixth time unit (that is, the sequence numbers are 0, 4, and 5 respectively) in a macrocycle , The third service packet is sent to the node 122 through the third channel between the node 124 and the node 122, the macrocycle offset between the node 124 and the node 122 is 1 time unit, and the node 122 receives the third service After the message, the first time unit, the second time unit, and the sixth time unit in a macrocycle (that is, the sequence numbers are 0, 1, and 5, respectively. It should be understood that the sequence number of node 122 is The message sent in the time unit of 0 is the message sent by the node 124 in the time unit of the sequence number 5 in the previous macrocycle) within 3 time units, passing between the node 122 and the node 123 The fourth channel of the sender sends a message of the third service to the node 123.
控制器110接收用于指示为第一业务配置时域子资源的请求消息,该第一业务经过节点121进入网络130,经过123离开网络130。节点121与节点122之间已配置有通道,即第一通道,节点122与节点123之间已配置有通道,即第二通道,假设需要一个宏周期内的2个时间单元来执行第一业务,而节点121与节点122在一个宏周期内分别有3个时间单元处于空闲状态,故可以考虑选择已配置的通道来执行该第一业务。The controller 110 receives a request message for instructing to configure time domain sub-resources for the first service, which enters the network 130 through the node 121 and leaves the network 130 through 123. A channel has been configured between node 121 and node 122, that is, the first channel, and a channel has been configured between node 122 and node 123, that is, the second channel. Assuming that two time units in a macrocycle are required to execute the first service , And the node 121 and the node 122 respectively have 3 time units in an idle state in a macro cycle, so it can be considered to select a configured channel to perform the first service.
在一种实施方式中,由于节点121使用序列号为0、1、2的3个时间单元执行第二业务,序列号为3、4、5的3个时间单元处于空闲状态,因此控制器110可以确定节点121使用序列号为3、4的2个时间单元执行第一业务,或者使用序列号为3、5的2个时间单元执行第一业务,或者使用序列号为4、5的2个时间单元执行第一业务。假设控制器110确定节点121使用序列号为3、4的2个时间单元执行第一业务,即为节点121配置一个宏周期内的第四个时间单元和第五个时间单元来执行第一业务。由于节点121与节点122之间的宏周期偏移为2个时间单元,那么节点122需要使用序列号为5、0的2个时间单元执行第一业务,但节点122的序列号为5、0的2个时间单元已经配置给第三业务,也就是说,节点122需要使用序列号为5、0的2个时间单元同时转发第一业务的报文以及第三业务的报文,存在时域资源冲突。In one embodiment, since the node 121 uses the 3 time units with sequence numbers 0, 1, and 2 to perform the second service, and the 3 time units with sequence numbers 3, 4, and 5 are in an idle state, the controller 110 It can be determined that node 121 uses 2 time units with sequence numbers 3 and 4 to perform the first service, or uses 2 time units with sequence numbers 3 and 5 to perform the first service, or uses 2 time units with sequence numbers 4 and 5 The time unit executes the first business. Suppose that the controller 110 determines that the node 121 uses 2 time units with sequence numbers 3 and 4 to perform the first service, that is, configures the fourth time unit and the fifth time unit in a macrocycle for the node 121 to perform the first service . Since the macrocycle offset between node 121 and node 122 is 2 time units, node 122 needs to use 2 time units with sequence numbers 5 and 0 to perform the first service, but the sequence numbers of node 122 are 5, 0 The 2 time units of the has been configured for the third service, that is, the node 122 needs to use the 2 time units with sequence numbers 5 and 0 to forward the packets of the first service and the packets of the third service at the same time, and there is a time domain Resource conflict.
节点122需要使用序列号为5、0的2个时间单元执行第一业务,节点124与节点122之间的宏周期偏移为1个时间单元,节点122用于执行第一业务的2个时间单元对应到节点124时,2个时间单元的序列号为4、5。节点124有3个时间单元处于空闲状态,控制器110可以为节点124配置除序列号为4、5之外的3个时间单元执行第三业务。具体地,控制器110可以为节点124配置序列号为1、2、3的3个时间单元执行第三业务,或者配置序列号为1、2、0的3个时间单元执行第三业务,或者配置序列号为1、3、0的3个时间单元执行第三业务,或者配置序列号为2、3、0的3个时间单元执行第三业务。该四种配置方式皆可保证节点122用于执行第一业务的2个时间单元处于空闲状态。若控制器110为节点124配置序列号为1、2、3的3个时间单元执行第三业务,则控制器110向节点124发送重配置消息,以使节点124在下一个宏周期使用序列号为1、2、3的3个时间单元执行第三业务。相应地,节点122使用序列号为2、3、4的3个时间单元执行第三业务,使用序列号为5、0的2个时间单元执行第一业务,如图13所示。The node 122 needs to use 2 time units with sequence numbers 5 and 0 to execute the first service. The macrocycle offset between the node 124 and the node 122 is 1 time unit, and the node 122 is used to execute the first service 2 times When the unit corresponds to the node 124, the sequence numbers of the two time units are 4 and 5. The node 124 has 3 time units in an idle state, and the controller 110 may configure the node 124 with 3 time units other than the sequence numbers 4 and 5 to perform the third service. Specifically, the controller 110 may configure the node 124 with three time units with sequence numbers 1, 2, and 3 to perform the third service, or configure the three time units with sequence numbers 1, 2, and 0 to perform the third service, or Configure 3 time units with serial numbers 1, 3, and 0 to perform the third service, or configure 3 time units with serial numbers 2, 3, and 0 to perform the third service. The four configuration modes can all ensure that the two time units used by the node 122 to execute the first service are in an idle state. If the controller 110 configures the node 124 with three time units with sequence numbers 1, 2, and 3 to perform the third service, the controller 110 sends a reconfiguration message to the node 124 so that the node 124 uses the sequence number as The 3 time units of 1, 2, and 3 execute the third service. Correspondingly, the node 122 uses 3 time units with sequence numbers 2, 3, and 4 to execute the third service, and uses 2 time units with sequence numbers 5 and 0 to execute the first service, as shown in FIG. 13.
在另一种实施方式中,节点122序列号为5、0、1的3个序列号被第三业务占用,序列号为2、3、4的3个时间单位处于空闲状态,控制器110可以确定节点122使用序列号为2、3的2个时间单元执行第一业务,或者使用序列号为2、4的2个时间单元执行第一业务,或者使用序列号为3、4的2个时间单元执行第一业务。假设控制器110确定节点122使用序列号为2、3的2个时间单元执行第一业务,由于节点121与节点122之间的宏周期偏移为2个时间单元,则控制器110需要为节点121配置一个宏周期内的第一个时间单元以及第二个时间单元执行第一业务,即节点121使用序列号为0、1的2个时间单元执行第一业务,而节点121序列号为0、1的2个时间单元已经配置给第二业务,也就是说,节点121需要使用序列号为0、1的2个时间单元同时执行第一业务和第二业务,存在时域资源冲突。In another embodiment, the three sequence numbers of the node 122 with sequence numbers 5, 0, and 1 are occupied by the third service, and the three time units with sequence numbers of 2, 3, and 4 are in an idle state, and the controller 110 may Determine that node 122 uses 2 time units with sequence numbers 2 and 3 to perform the first service, or uses 2 time units with sequence numbers 2 and 4 to perform the first service, or uses 2 time units with sequence numbers 3 and 4 The unit performs the first business. Suppose that the controller 110 determines that the node 122 uses 2 time units with sequence numbers 2 and 3 to perform the first service. Since the macrocycle offset between the node 121 and the node 122 is 2 time units, the controller 110 needs to be the node 121 configures the first time unit and the second time unit in a macrocycle to perform the first service, that is, node 121 uses two time units with sequence numbers 0 and 1 to perform the first service, and node 121 has a sequence number of 0 The 2 time units of, 1 have been configured for the second service, that is, the node 121 needs to use the 2 time units with sequence numbers 0 and 1 to execute the first service and the second service at the same time, and there is a time domain resource conflict.
控制器110需要为节点121配置序列号为0、1的2个时间单元执行第一业务,节点 121与节点122之间的宏周期偏移为3个时间单元,节点121用于执行第一业务的2个时间单元对应到节点122时,2个时间单元的序列号为3、4。由于节点122有3个时间单元处于空闲状态,因此控制器110可以为节点122配置除序列号为3、4之外的3个时间单元执行第二业务。控制器110可以为节点122配置序列号为5、0、1的3个时间单元执行第二业务,或者配置序列号为5、0、2的3个时间单元执行第二业务,或者配置序列号为5、1、2的3个时间单元执行第二业务,或者配置序列号为0、1、2的3个时间单元执行第二业务。该四种配置方式皆可保证节点121用于执行第一业务的2个时间单元处于空闲状态。若节点122使用序列号为5、0、1的3个时间单元执行第二业务,对应到节点121处的序列号为2、3、4,则控制器110向节点121发送重配置消息,以使节点121在下一个宏周期使用序列号为2、3、4的3个时间单元执行第二业务。相应地,节点122使用序列号为5、0、1的3个时间单元执行第二业务,使用序列号为2、3的2个时间单元执行第一业务,如图14所示。The controller 110 needs to configure two time units with sequence numbers 0 and 1 for the node 121 to execute the first service, the macrocycle offset between the node 121 and the node 122 is 3 time units, and the node 121 is used to execute the first service When the two time units of, correspond to node 122, the sequence numbers of the two time units are 3 and 4. Since the node 122 has 3 time units in an idle state, the controller 110 may configure the node 122 with 3 time units other than the sequence numbers 3 and 4 to perform the second service. The controller 110 can configure the node 122 with 3 time units with serial numbers 5, 0, 1 to perform the second service, or configure the 3 time units with serial numbers 5, 0, 2 to perform the second service, or configure the serial number Perform the second service for the 3 time units of 5, 1, and 2, or configure the 3 time units with sequence numbers of 0, 1, and 2 to execute the second service. The four configuration modes can all ensure that the two time units used by the node 121 to execute the first service are in an idle state. If node 122 uses 3 time units with sequence numbers 5, 0, and 1 to perform the second service, and the sequence numbers corresponding to node 121 are 2, 3, and 4, controller 110 sends a reconfiguration message to node 121 to In the next macrocycle, the node 121 uses 3 time units with sequence numbers 2, 3, and 4 to execute the second service. Correspondingly, the node 122 uses 3 time units with sequence numbers 5, 0, and 1 to execute the second service, and uses 2 time units with sequence numbers 2 and 3 to execute the first service, as shown in FIG. 14.
S205:控制器110向第一节点发送配置消息,该配置消息指示N个时间单元在一个宏周期内的N个位置。S205: The controller 110 sends a configuration message to the first node, where the configuration message indicates the N positions of the N time units in one macrocycle.
其中,配置消息还指示第一通道的标识、和/或第一业务的标识,其中第一通道用于指示第一节点与第一节点的下一跳节点间用于执行第一业务的带宽资源。Wherein, the configuration message also indicates the identity of the first channel and/or the identity of the first service, where the first channel is used to indicate the bandwidth resource between the first node and the next hop node of the first node for executing the first service .
本申请的上述实施例中,控制器110以时间单位为粒度为第一节点配置一个宏周期内的N个时间单元,这样第一节点将会在固定的N个时间单元内执行第一业务,意味着控制器110可以将第一节点转发第一业务的报文的时延控制在一定的指标范围内。控制器110根据为第一节点配置的N个时间单元以及宏周期偏移表项,可以掌握第一业务的报文在各节点的转发时延,也就是说,各节点对报文的转发时延对于控制器110来说具有确定性,满足DIP技术提供确定性转发服务的要求。其中,宏周期偏移表项包括网络130中所有节点的宏周期偏移。In the above-mentioned embodiment of the present application, the controller 110 configures the first node with N time units in a macrocycle with the time unit as the granularity, so that the first node will execute the first service in a fixed N time units. This means that the controller 110 can control the delay for the first node to forward the first service packet within a certain index range. According to the N time units configured for the first node and the macroperiod offset table entry, the controller 110 can grasp the forwarding delay of the first service message at each node, that is, when each node forwards the message The delay is deterministic for the controller 110 and meets the requirement of the DIP technology to provide deterministic forwarding services. Among them, the macrocycle offset table entry includes the macrocycle offsets of all nodes in the network 130.
另外,一个宏周期内的每个时间单元内允许传输报文的最大数量是确定的,也就是说,控制器110能够严格地将单位时间内所转发报文的大小控制在一个范围内。当带宽资源过剩时,控制器110可以根据宏周期偏移表项中各节点之间的传输时延,各节点之间的时域资源占用情况,以及各节点之间的带宽资源占用情况,将过剩的带宽资源配置给新业务,从而减少资源浪费,提高资源利用率。In addition, the maximum number of packets allowed to be transmitted in each time unit in a macrocycle is determined, that is, the controller 110 can strictly control the size of the packets forwarded per unit time within a range. When bandwidth resources are surplus, the controller 110 may adjust the transmission delay between nodes in the macroperiod offset table entry, the time domain resource occupancy between each node, and the bandwidth resource occupancy between each node. Excess bandwidth resources are allocated to new services, thereby reducing resource waste and improving resource utilization.
在一种实施方式中,控制器110可以接收来自管理人员的控制指令,该控制指令用于调整网络130中各节点的时域资源占用情况,以提高资源利用率。In an implementation manner, the controller 110 may receive a control instruction from an administrator, and the control instruction is used to adjust the time domain resource occupancy of each node in the network 130 to improve resource utilization.
请参见图5,为本申请实施例提供的一种宏周期偏移的确定方法的流程示意图。该方法可应用于图1所示的通信系统100中,在下文的介绍过程中,就以本申请实施例提供的方法应用于图1所示的通信系统100为例。Please refer to FIG. 5, which is a schematic flowchart of a method for determining a macrocycle offset according to an embodiment of this application. This method can be applied to the communication system 100 shown in FIG. 1. In the following introduction, the method provided in the embodiment of the present application is applied to the communication system 100 shown in FIG. 1 as an example.
S501:第三节点生成第一指示消息,并将第二指示消息发送给第四节点。S501: The third node generates a first indication message, and sends a second indication message to the fourth node.
第三节点和第四节点为网络130中的任意两个节点,且第六节点为第七节点的下一跳节点。The third node and the fourth node are any two nodes in the network 130, and the sixth node is the next hop node of the seventh node.
第三节点可以按照设定频率自动生成第一指示消息,也可以受控于控制器110,本申请实施例对此不作限定。例如在第三节点接收到控制器110发送的控制消息后生成该第一指示消息。The third node may automatically generate the first indication message according to the set frequency, or may be controlled by the controller 110, which is not limited in the embodiment of the present application. For example, the first indication message is generated after the third node receives the control message sent by the controller 110.
S502:第三节将第一指示消息发送给第四节点。S502: The third section sends the first indication message to the fourth node.
第一指示消息指示第一位置,以使得第四节点确定第二宏周期偏移,第一位置为第三节点生成第一指示消息的时间单元在一个宏周期中的位置,该位置可以是序列号。然后第三节点将第一位置携带到第一指示消息中发送给第四节点。The first indication message indicates the first position, so that the fourth node determines the second macrocycle offset. The first position is the position in a macrocycle of the time unit at which the third node generates the first indication message. The position may be a sequence number. Then the third node carries the first position into the first indication message and sends it to the fourth node.
其中,生成第一指示消息的时间单元是指,生成第一指示消息的时间戳所在的时间单元,例如,生成该第一指示消息的时间戳在一个宏周期的序列号为1的时间单元内,则生成第一指示消息的时间单元是指序列号为1的时间单元。第二宏周期偏移用于指示报文从第三节点传输到第四节点的时延。Wherein, the time unit for generating the first indication message refers to the time unit where the timestamp for generating the first indication message is located, for example, the timestamp for generating the first indication message is within a time unit with a sequence number of 1 in a macrocycle , The time unit for generating the first indication message refers to the time unit with the sequence number 1. The second macrocycle offset is used to indicate the time delay for the message to be transmitted from the third node to the fourth node.
在具体实施时,第一位置可以由第三节点所包括的内部芯片生成第一指示消息的时间戳以及启动该内部芯片的时间戳确定,其中,该内部芯片用于确定宏周期偏移或生成第一指示消息。该内部芯片可以是现场可编程门序列(field programmable gate array,FPGA)芯片,也可以是其它门控队列芯片,本申请实施例对此不作限定。In specific implementation, the first position may be determined by the time stamp of the internal chip included in the third node generating the first indication message and the time stamp of starting the internal chip, where the internal chip is used to determine the macrocycle offset or generate The first indication message. The internal chip may be a field programmable gate array (FPGA) chip or other gated queue chips, which is not limited in the embodiment of the present application.
在一种实施方式中,第一位置满足以下公式:In one embodiment, the first position satisfies the following formula:
X=[floor((t 1-t 0)/T)+1]mod T     (1) X=[floor((t 1 -t 0 )/T)+1]mod T (1)
其中,floor(·)表示向下取整,mod表示取余运算,T表示宏周期,X表示第一位置,t 1表示内部芯片生成第一指示消息的时间戳,t 0表示启动第三节点内部芯片的时间戳。 Among them, floor(·) represents rounding down, mod represents remainder operation, T represents macrocycle, X represents the first position, t 1 represents the timestamp of the first indication message generated by the internal chip, and t 0 represents the start of the third node The timestamp of the internal chip.
在一种实施方式中,第一指示消息承载于内部网关协议报文中或承载于用户数据报协议报文中。In an implementation manner, the first indication message is carried in an internal gateway protocol message or in a user datagram protocol message.
S503:第四节点接收第一指示消息,并根据第一指示消息确定第二宏周期偏移。S503: The fourth node receives the first indication message, and determines the second macrocycle offset according to the first indication message.
第四节点接收到第一指示消息后,作为响应,根据第一位置和第二位置确定第二宏周期偏移,该第二位置为第四节点响应第一指示消息的时间单元在一个宏周期中的位置。After receiving the first indication message, the fourth node, in response, determines the second macroperiod offset according to the first position and the second position. The second position is the time unit for the fourth node to respond to the first indication message in one macroperiod. In the location.
在具体实施时,第二位置可以由第四节点内部芯片接收到第一指示消息的时间戳,以及启动该内部芯片的时间戳确定。In a specific implementation, the second position may be determined by the timestamp when the internal chip of the fourth node receives the first indication message and the timestamp when the internal chip is started.
在一种实施方式中,第四序列号满足以下公式:In one embodiment, the fourth sequence number satisfies the following formula:
Y=[floor((t 2+L max+T-t 3)/T)+1]mod T   (2) Y=[floor((t 2 +L max +Tt 3 )/T)+1]mod T (2)
其中,floor(·)表示向下取整,mod表示取余运算,T表示宏周期;Y表示第二位置,t 2表示内部芯片接收到第一指示消息的时间戳,L max表示时延常数,t 3表示第四节点启动内部芯片的时间戳。 Among them, floor(·) represents rounding down, mod represents remainder operation, T represents macrocycle; Y represents the second position, t 2 represents the timestamp of the first indication message received by the internal chip, and L max represents the delay constant , T 3 represents the timestamp when the fourth node starts the internal chip.
在确定出第二位置之后,第四节点根据第一位置与第二位置的差值确定第二宏周期偏移。After the second position is determined, the fourth node determines the second macroperiod offset according to the difference between the first position and the second position.
在一种实施方式中,第二宏周期偏移满足以下公式:In one embodiment, the second macrocycle offset satisfies the following formula:
Macro_Delta=(Y-X+T)mod T     (3)Macro_Delta=(Y-X+T)mod T (3)
其中,floor(·)表示向下取整,mod表示取余运算,T表示宏周期,X表示第一位置,Y表示第二位置,Macro_Delta表示第二宏周期偏移。Among them, floor(·) represents rounding down, mod represents the remainder operation, T represents the macrocycle, X represents the first position, Y represents the second position, and Macro_Delta represents the second macrocycle offset.
第四节点确定出与第三节点之间的第二宏周期偏移后,将宏周期偏移信息发送给控制器110,宏周期偏移信息包括第三宏周期偏移、第三节点的标识或第四节点的标识中的一项或多项。控制器110接收到宏周期偏移信息,并维护或更新第四节点的宏周期偏移表项。其中,宏周期偏移表项中存储有网络130中各节点的宏周期偏移。After the fourth node determines the second macrocycle offset with the third node, it sends the macrocycle offset information to the controller 110. The macrocycle offset information includes the third macrocycle offset and the identifier of the third node. Or one or more of the identifications of the fourth node. The controller 110 receives the macrocycle offset information, and maintains or updates the macrocycle offset table entry of the fourth node. Wherein, the macrocycle offset table entry stores the macrocycle offset of each node in the network 130.
通过图5所示的数据流程,控制器110可以收集网络130中各节点之间的传输时延,这样,在进行资源配置时,控制器110可以根据宏周期偏移表项,合理地为各节点进行资源配置,避免时域资源冲突,提高资源利用率。Through the data flow shown in FIG. 5, the controller 110 can collect the transmission delay between the nodes in the network 130. In this way, when the resource is configured, the controller 110 can offset the entries according to the macrocycle and reasonably Nodes perform resource configuration to avoid time domain resource conflicts and improve resource utilization.
举例说明,如图6所示,通道所经过的节点包括节点121、节点122以及节点123其中,入边缘节点为节点121,出边缘节点为123。节点121将报文转发给节点122,节点122接收到报文后将报文转发给节点123,节点123接收到报文后将报文传输给其它网络130。在配置时域资源之前,节点122确定出从节点121到节点122之间的宏周期偏移上报给控制器110;节点123确定从节点122到节点123之间的宏周期偏移并上报给控制器110。For example, as shown in FIG. 6, the nodes passed by the channel include node 121, node 122 and node 123, where the ingress edge node is node 121 and the egress edge node is 123. The node 121 forwards the message to the node 122, the node 122 forwards the message to the node 123 after receiving the message, and the node 123 transmits the message to other networks 130 after receiving the message. Before configuring time domain resources, node 122 determines the macrocycle offset from node 121 to node 122 and reports it to controller 110; node 123 determines the macrocycle offset from node 122 to node 123 and reports it to the controller.器110.
本申请上述实施例中,第三节点将指示第一位置的第一指示消息发送给第四节点,第四节点接收到第一指示消息后,根据第一位置和第二位置确定出从第三节点到第四节点之间的传输时延,即第二宏周期偏移,然后第四节点将该第二宏周期偏移发送给控制器110。这样,控制器110就可以收集网络130中各节点的宏周期偏移,能够较准确地确定出网络130中各节点的时域资源占用情况,在为各节点进行资源配置时,可以根据各节点的宏周期偏移合理地为各节点配置时域资源,避免了时域资源冲突,提高资源利用率。In the foregoing embodiment of the present application, the third node sends the first indication message indicating the first position to the fourth node. After receiving the first indication message, the fourth node determines from the third node according to the first position and the second position. The transmission delay between the node and the fourth node, that is, the second macrocycle offset, and then the fourth node sends the second macrocycle offset to the controller 110. In this way, the controller 110 can collect the macrocycle offset of each node in the network 130, and can more accurately determine the time domain resource occupancy of each node in the network 130. When configuring resources for each node, it can be based on each node. The macro-cycle offset of the system reasonably configures time-domain resources for each node, avoids time-domain resource conflicts, and improves resource utilization.
本申请实施例提供另一种资源配置方法,请参见图7,为该方法的流程示意图。该方法可应用于图1所示的通信系统100中,在下文的介绍过程中,就以本申请实施例提供的方法应用于图1所示的通信系统100为例。The embodiment of the present application provides another resource configuration method. Please refer to FIG. 7, which is a schematic flowchart of the method. This method can be applied to the communication system 100 shown in FIG. 1. In the following introduction, the method provided in the embodiment of the present application is applied to the communication system 100 shown in FIG. 1 as an example.
S701:第一节点接收来自控制器110的配置消息,该配置消息指示N个时间单元在一个宏周期内的N个位置。S701: The first node receives a configuration message from the controller 110, the configuration message indicating N positions of N time units in one macrocycle.
第一节点接收到来自控制器110的配置消息,作为响应,第一节点将会在一个宏周期内的N个位置对应的N个时间单元内执行第一业务。The first node receives the configuration message from the controller 110, and in response, the first node will execute the first service in N time units corresponding to N positions in a macrocycle.
第一节点还可能接收来自控制器110的第一转发指令,第一转发指令用于指示第五节点的标识。第五节点为第一节点在第一传输路径的下一跳节点。进一步地,第一节点将第五节点添加至转发表之后,向控制器110发送第一转发响应消息。The first node may also receive a first forwarding instruction from the controller 110, where the first forwarding instruction is used to indicate the identity of the fifth node. The fifth node is the next hop node of the first node on the first transmission path. Further, after adding the fifth node to the forwarding table, the first node sends a first forwarding response message to the controller 110.
在一种实施方式中,第一节点生成第二指示信息,第二指示信息包括第一序列号,所述第一序列号为所述第一节点生成所述第二指示信息的时间单元在一个宏周期中的序列号。所述第一节点向所述第五节点发送所述第二指示信息,所述第二指示信息用于指示所述第五节点根据所述第一序列号和第二序列号确定第二宏周期偏移,所述第二序列号为所述第五节点响应所述第二指示信息的时间单元在一个宏周期中的序列号,该第二宏周期偏移用于指示报文从第一节点传输到第五节点的时延。In an implementation manner, the first node generates the second indication information, the second indication information includes a first sequence number, and the first sequence number is a unit of time when the first node generates the second indication information. The sequence number in the macrocycle. The first node sends the second indication information to the fifth node, where the second indication information is used to instruct the fifth node to determine a second macroperiod according to the first sequence number and the second sequence number Offset, the second sequence number is the sequence number in a macro cycle of the time unit of the fifth node in response to the second indication information, and the second macro cycle offset is used to indicate that the packet moves from the first node Transmission delay to the fifth node.
S702:第一节点在N个位置对应的N个时间单元内执行所述第一业务。S702: The first node executes the first service in N time units corresponding to N positions.
在一种可能的实施方式中,第一节点可以执行图5中第三节点所执行的流程,和/或可以执行图5中第四节点所执行的流程。也就是,第一节点可以生成第一位置,并通过第一指示消息指示第一节点的下一跳节点确定第一节点与第一节点的下一跳节点之间的传输时延,还可以接收来自第一节点的上一跳节点的第一指示消息,基于该第一指示消息确定第一节点与第一节点的上一跳节点之间的传输时延,并将该传输时延上报为控制器110。具体实现过程可参见图5中所示的流程,在此不再赘述。In a possible implementation manner, the first node may execute the process executed by the third node in FIG. 5 and/or may execute the process executed by the fourth node in FIG. 5. That is, the first node may generate the first position, and instruct the next hop node of the first node to determine the transmission delay between the first node and the next hop node of the first node through the first indication message, and may also receive A first indication message from the last hop node of the first node, based on the first indication message, determine the transmission delay between the first node and the last hop node of the first node, and report the transmission delay as a control器110. For the specific implementation process, refer to the process shown in FIG. 5, which will not be repeated here.
本申请的上述实施例中,第一节点接收控制器110发送的配置消息,该配置消息指示N个时间单元在一个宏周期内的N个位置。作为响应,第一节点将使用这固定的N个位置所对应的N个时间单元内执行第一业务,而不会使用一个宏周期内除该N个位置之外的位置所对应的时间单元内执行第一业务,意味着第一节点在确定的时间范围内执行第一业务,满足DIP技术提供确定性转发服务的要求。In the foregoing embodiment of the present application, the first node receives the configuration message sent by the controller 110, and the configuration message indicates the N positions of the N time units in one macrocycle. In response, the first node will use the N time units corresponding to the fixed N positions to execute the first service, instead of using the time units corresponding to the positions other than the N positions in a macrocycle Executing the first service means that the first node executes the first service within a certain time range and meets the requirements of DIP technology to provide deterministic forwarding services.
下面结合附图介绍本申请实施例提供的装置。The following describes the device provided by the embodiment of the present application with reference to the accompanying drawings.
基于与方法实施例同样的技术构思,本申请实施例还提供一种控制器,如图8所示,该控制器包括收发单元801以及处理单元802;所述处理单元802,用于通过收发单元801接收请求消息,所述请求消息用于指示所述控制器配置用于执行第一业务的时域资源,以及通过收发单元801向第一节点发送配置消息,所述配置消息指示N个时间单元在一个宏周期内的N个位置;其中,所述N个时间单元为执行所述第一业务的时域资源,且所述N个时间单元对应的带宽资源满足所述第一业务的带宽需求,所述N个时间单元中的一个时间单元用于指示调度时域资源的最小时长,一个宏周期包括M个时间单元,所述M为大于或等于所述N的整数,所述N为大于或等于1的整数。Based on the same technical idea as the method embodiment, the embodiment of the present application also provides a controller, as shown in FIG. 8, the controller includes a transceiver unit 801 and a processing unit 802; the processing unit 802 is configured to pass through the transceiver unit 801 receives a request message, the request message is used to instruct the controller to configure time domain resources for executing the first service, and send a configuration message to the first node through the transceiver unit 801, the configuration message indicates N time units N locations in a macrocycle; wherein the N time units are time domain resources for executing the first service, and the bandwidth resources corresponding to the N time units meet the bandwidth requirements of the first service , One of the N time units is used to indicate the minimum duration for scheduling time domain resources, a macrocycle includes M time units, where M is an integer greater than or equal to N, and N is greater than Or an integer equal to 1.
本申请的上述实施例中,控制器响应于请求消息,向第一节点发送指示N个位置的配置消息,这样第一节点将会以时间单位为粒度,在一个宏周期内的N个位置所对应的N个时间单元内执行第一业务,而不会在该宏周期内除该N个位置所对应的N个时间单元之外的时间单元内执行第一业务,意味着控制器可以将第一节点转发第一业务的报文的时延控制在一定的指标范围内,满足DIP技术提供确定性转发服务的要求。In the above-mentioned embodiment of the present application, the controller sends a configuration message indicating N locations to the first node in response to the request message. In this way, the first node will use the time unit as the granularity, and the location of the N locations in a macrocycle is The first service is executed in the corresponding N time units, and the first service will not be executed in the time units other than the N time units corresponding to the N positions in the macrocycle, which means that the controller can perform the first service The time delay for a node to forward the first service message is controlled within a certain index range, which meets the requirement of the DIP technology to provide deterministic forwarding services.
在一种可选的实施方式中,所述处理单元802,具体用于:根据所述请求消息,确定在一个宏周期内用于执行所述第一业务的时间单元的数量N;根据第一传输路径中的节点的时域资源占用情况,为所述第一节点配置所述N个时间单元在一个宏周期内的N个位置,其中,所述第一传输路径的入口为所述第一节点、出口为第二节点,所述第一业务经由所述第一节点进入第一网络、经由所述第二节点离开所述第一网络。In an optional implementation manner, the processing unit 802 is specifically configured to: according to the request message, determine the number N of time units used to execute the first service in a macro cycle; For the time domain resource occupancy of the nodes in the transmission path, the N positions of the N time units in a macrocycle are configured for the first node, wherein the entry of the first transmission path is the first The node and the exit are the second node, and the first service enters the first network via the first node, and leaves the first network via the second node.
在一种可选的实施方式中,所述第一传输路径包括第三节点,H个位置为所述第三节点在一个宏周期内与所述N个位置对应的位置,且所述H个位置中的至少一个位置对应的时间单元被第二业务占用,所述H的大小等于所述N的大小,所述处理单元802,还用于:所述控制器调整所述第三节点中用于执行所述第二业务的时域资源,在调整后,所述H个位置对应的H个时间单元处于空闲状态。In an optional implementation manner, the first transmission path includes a third node, and the H positions are positions of the third node corresponding to the N positions in a macrocycle, and the H positions The time unit corresponding to at least one of the locations is occupied by the second service, the size of the H is equal to the size of the N, and the processing unit 802 is further configured to: the controller adjusts the use of the third node After the time domain resources for executing the second service are adjusted, the H time units corresponding to the H positions are in an idle state.
在一种可选的实施方式中,所述处理单元802,具体用于:根据第一宏周期偏移,确定K个位置,所述K个位置为第四节点在一个宏周期内与所述H个位置对应的位置,其中,所述第二业务经由所述第四节点进入第一网络,所述第一宏周期偏移为报文从所述第四节点传输到所述第三节点的时延,所述K的大小等于所述H的大小;根据第二传输路径中的节点的时域资源占用情况,为所述第四节点重新配置Q个时间单元在一个宏周期内的Q个位置,其中,所述Q个时间单元为所述第四节点执行所述第二业务的时域资源,所述Q个位置包括一个宏周期中除所述K个位置之外的位置,所述第二传输路径用于传输所述第二业务的报文。In an optional implementation manner, the processing unit 802 is specifically configured to: determine K positions according to the first macrocycle offset, where the K positions are the fourth node's relationship with the first macrocycle within one macrocycle. Locations corresponding to H locations, where the second service enters the first network via the fourth node, and the first macrocycle offset is the amount of data transmitted from the fourth node to the third node Delay, the size of K is equal to the size of H; according to the time domain resource occupancy of the nodes in the second transmission path, the fourth node is reconfigured with Q time units in one macrocycle. Positions, wherein the Q time units are time domain resources for the fourth node to perform the second service, the Q positions include positions other than the K positions in a macrocycle, and the The second transmission path is used to transmit the message of the second service.
在一种可选的实施方式中,所述处理单元802,具体用于:根据第一传输路径中的节点的带宽资源占用情况,在所述第一传输路径中每相邻的两个节点之间配置一个用于执行所述第一业务的通道,所配置的通道用于确定每个时间单元对应的带宽资源,其中,所述第一传输路径的入口为所述第一节点、出口为第二节点,所述第一业务经由所述第一节点进入第一网络、经由所述第二节点离开所述第一网络。In an optional implementation manner, the processing unit 802 is specifically configured to: according to the bandwidth resource occupancy status of the nodes in the first transmission path, between every two adjacent nodes in the first transmission path A channel for executing the first service is configured between the channels, and the configured channel is used to determine the bandwidth resource corresponding to each time unit, wherein the entrance of the first transmission path is the first node, and the exit is the first node. Two nodes, the first service enters the first network via the first node, and leaves the first network via the second node.
在一种可选的实施方式中,所述第一传输路径包括第五节点和第六节点,所述第五节点为所述第六节点的下一跳节点;所述处理单元802,具体用于:根据所述第五节点的带宽资源占用情况以及所述第一业务的带宽需求,在所述第五节点与所述第六节点之间配置 一个用于执行所述第一业务的通道;或者,根据所述第五节点的带宽资源占用情况以及所述第一业务的带宽需求,从所述第五节点与所述第六节点之间的已配置的至少一个通道中,确定一个用于执行所述第一业务的通道。In an optional implementation manner, the first transmission path includes a fifth node and a sixth node, and the fifth node is a next hop node of the sixth node; the processing unit 802 specifically uses In: according to the bandwidth resource occupancy of the fifth node and the bandwidth requirement of the first service, configure a channel for executing the first service between the fifth node and the sixth node; Or, according to the bandwidth resource occupancy of the fifth node and the bandwidth requirement of the first service, from the at least one configured channel between the fifth node and the sixth node, determine one for The channel for executing the first service.
在一种可选的实施方式中,所述收发单元801,还用于:接收来自第七节点的第一指示消息,所述第一指示消息指示至少一个宏周期偏移,其中,所述至少一个宏周期偏移中的任一宏周期偏移为报文从所述第七节点的上一跳节点传输到所述第七节点的时延,所述第七节点、以及所述第七节点的上一跳节点为第一网络中的两个节点;所述处理单元802,还用于:基于所述第一指示消息更新所述第七节点的宏周期表项,所述宏周期表项用于存储所述至少一个宏周期偏移。In an optional implementation manner, the transceiving unit 801 is further configured to: receive a first indication message from the seventh node, the first indication message indicating at least one macrocycle offset, wherein the at least Any macrocycle offset in one macrocycle offset is the time delay for the packet to be transmitted from the previous hop node of the seventh node to the seventh node, the seventh node, and the seventh node The last hop node of is two nodes in the first network; the processing unit 802 is further configured to: update the macroperiod table entry of the seventh node based on the first indication message, the macroperiod table entry For storing the at least one macrocycle offset.
在一种可选的实施方式中,所述配置消息还包括第一通道的标识、和/或第一业务的标识,所述第一通道为所述第一节点、与所述第一节点的下一跳节点间用于执行所述第一业务的带宽资源。In an optional implementation manner, the configuration message further includes the identifier of the first channel and/or the identifier of the first service, and the first channel is the first node and the connection between the first node and the first node. The bandwidth resource between next hop nodes used to execute the first service.
在一种可选的实施方式中,所述请求消息包括以下信息中的一项或多项:所述第一节点的标识、所述第二节点的标识或所述第一业务的带宽需求。In an optional implementation manner, the request message includes one or more of the following information: the identifier of the first node, the identifier of the second node, or the bandwidth requirement of the first service.
在本申请各个实施例中的各功能单元可以以软件或硬件方式集成在一个处理器中,各功能单元也可以是单独物理存在,也可以两个或两个以上功能单元集成在一个模块中。集成的功能单元既可以采用硬件的形式实现,也可以采用软件形式实现。The functional units in each embodiment of the present application may be integrated in a processor in a software or hardware manner, each functional unit may also exist alone physically, or two or more functional units may be integrated into a module. The integrated functional unit can be implemented in the form of hardware or software.
本申请实施例还提供了一种装置,如图9所示,该装置可以为控制器,包括处理器901,上述处理单元802对应的实体的硬件可以为处理器901。控制器还可以包括收发器904,上述收发单元801对应的实体的硬件可以为收发器904。处理器901,可以是一个中央处理单元(英文:central processing unit,简称CPU),或者为数字洗好处理器(DSP)等。还包括:存储器902,用于存储处理器901所执行的程序。存储器902可以是非易失性存储器,例如硬盘(英文:hard disk drive,缩写:HDD)或固态硬盘(英文:solid-state drive,缩写:SSD)等,还可以是易失性存储器(英文:volatile memory),例如随机存取存储器(英文:random-access memory,缩写:RAM)。存储器902也可以是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The embodiment of the present application also provides a device. As shown in FIG. 9, the device may be a controller, including a processor 901, and the physical hardware corresponding to the processing unit 802 may be the processor 901. The controller may further include a transceiver 904, and the physical hardware corresponding to the foregoing transceiver unit 801 may be the transceiver 904. The processor 901 may be a central processing unit (English: central processing unit, CPU for short), or a digital processing processor (DSP), or the like. It also includes a memory 902, which is used to store a program executed by the processor 901. The memory 902 may be a non-volatile memory, such as a hard disk (English: hard disk drive, abbreviation: HDD) or a solid-state drive (English: solid-state drive, abbreviation: SSD), etc., or may be a volatile memory (English: volatile memory), such as random access memory (English: random-access memory, abbreviation: RAM). The memory 902 may also be any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
处理器901用于执行存储器902存储的程序代码,具体调用所述存储器902中存储的程序指令。具体的,处理器901通过收发器904接收第一业务的请求消息,因此收发器904用于作为具体执行单位接收请求消息并传递给处理器901,以使得处理器901为第一节点配置N个时间单元在一个宏周期内的N个位置。The processor 901 is configured to execute program codes stored in the memory 902, and specifically call program instructions stored in the memory 902. Specifically, the processor 901 receives the request message of the first service through the transceiver 904, so the transceiver 904 is used as a specific execution unit to receive the request message and pass it to the processor 901, so that the processor 901 configures N for the first node The time unit is in N positions within a macrocycle.
本申请实施例中不限定上述处理器901以及存储器902之间的具体连接介质。本申请实施例在图9中处理器901以及存储器902之间通过总线903连接,总线在图9中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The specific connection medium between the foregoing processor 901 and the memory 902 is not limited in the embodiment of the present application. In the embodiment of the present application, the processor 901 and the memory 902 in FIG. 9 are connected by a bus 903. The bus is represented by a thick line in FIG. Is limited. The bus can be divided into an address bus, a data bus, a control bus, and so on. For ease of representation, only one thick line is used in FIG. 9, but it does not mean that there is only one bus or one type of bus.
基于与方法实施例同样的技术构思,本申请实施例还提供一种网络节点,如图10所示,该网络节点为第一节点,该第一节点包括收发单元1001和处理单元1002;收发单元1001,用于接收来自控制器的配置消息,所述配置消息指示N个时间单元在一个宏周期内的N个位置用于接收来自控制器的资源配置指令;处理单元1002,用于在所述N个位置 对应的N个时间单元内执行所述第一业务;其中,所述N个时间单元为执行所述第一业务的时域资源,且所述N个时间单元对应的带宽资源满足第一业务的带宽需求,所述N个时间单元中的一个时间单元用于指示调度时域资源的最小时长,一个宏周期包括M个时间单元,所述M为大于或等于所述N的整数,所述N为大于或等于1的整数。Based on the same technical idea as the method embodiment, the embodiment of the present application also provides a network node. As shown in FIG. 10, the network node is a first node, and the first node includes a transceiver unit 1001 and a processing unit 1002; 1001, configured to receive a configuration message from the controller, where the configuration message indicates that N time units are used to receive resource configuration instructions from the controller at N positions in a macrocycle; the processing unit 1002 is configured to The first service is executed in N time units corresponding to N positions; wherein the N time units are time domain resources for executing the first service, and the bandwidth resources corresponding to the N time units satisfy the first The bandwidth requirement of a service, one of the N time units is used to indicate the minimum duration of scheduling time domain resources, a macrocycle includes M time units, and the M is an integer greater than or equal to the N, The N is an integer greater than or equal to 1.
本申请上述实施例中,第一节点接收配置消息,作为响应,使用一个宏周期内的N个位置所对应的N个时间单元内执行第一业务,以满足DIP技术中提供确定性转发服务的要求。In the foregoing embodiment of the present application, the first node receives the configuration message, and in response, uses the N time units corresponding to the N positions in a macrocycle to execute the first service in order to meet the requirement of providing deterministic forwarding services in DIP technology. Claim.
在一种可选的实施方式中,所述收发单元1001用于:向所述控制器发送第二指示消息,所述第二指示消息指示至少一个宏周期偏移,以使所述控制器基于所述至少一个宏周期偏移更新所述第一节点的宏周期偏移表项,所述宏周期偏移表项用于存储所述至少一个宏周期偏移,其中,所述至少一个宏周期偏移中的任一宏周期偏移为报文从所述第一节点的上一跳节点传输到所述第一节点的时延。In an optional implementation manner, the transceiver unit 1001 is configured to: send a second indication message to the controller, the second indication message indicating at least one macrocycle offset, so that the controller is based on The at least one macrocycle offset updates the macrocycle offset entry of the first node, and the macrocycle offset entry is used to store the at least one macrocycle offset, wherein the at least one macrocycle offset Any macrocycle offset in the offset is the time delay for the message to be transmitted from the previous hop node of the first node to the first node.
在一种可选的实施方式中,所述第一节点的上一跳节点为第八节点,所述至少一个宏周期偏移包括第二宏周期偏移,所述收发单元1001,还用于:接收来自所述第八节点的第三指示消息,所述第三指示消息指示第一位置,所述第一位置为所述第八节点生成所述第三指示消息的时间单元在一个宏周期内的位置;所述处理单元1002,具体用于:根据所述第一位置、以及第二位置,确定所述第二宏周期偏移,所述第二位置为所述第八节点响应所述第三指示消息的时间单元在一个宏周期内的位置,所述第二宏周期偏移为报文从所述第八节点传输到所述第一节点的时延。In an optional implementation manner, the last hop node of the first node is the eighth node, the at least one macroperiod offset includes a second macroperiod offset, and the transceiving unit 1001 is further configured to : Receiving a third indication message from the eighth node, where the third indication message indicates a first position, and the first position is the time unit at which the eighth node generates the third indication message in a macro cycle The processing unit 1002 is specifically configured to determine the second macroperiod offset according to the first position and the second position, the second position being the eighth node in response to the The position of the time unit of the third indication message within one macrocycle, and the second macrocycle offset is the time delay for the packet to be transmitted from the eighth node to the first node.
在一种可选的实施方式中,所述第一节点的下一跳节点为第九节点,所述处理单元1002,具体用于:生成第四指示消息,所述第四指示消息指示第三位置,所述第三位置为所述第一节点生成所述第四指示消息的时间单元在一个宏周期内的位置;所述收发单元1001,具体用于:向所述第九节点发送所述第四指示消息,所述第四指示消息用于指示所述第九节点根据所述第三位置和第四位置确定第三宏周期偏移,所述第四位置为所述第九节点响应所述第四指示消息的时间单元在一个宏周期内的位置,所述第三宏周期偏移为报文从所述第一节点传输到所述第九节点的时延。In an optional implementation manner, the next hop node of the first node is the ninth node, and the processing unit 1002 is specifically configured to: generate a fourth indication message, where the fourth indication message indicates the third Position, the third position is the position within a macrocycle of the time unit at which the first node generates the fourth indication message; the transceiving unit 1001 is specifically configured to: send the ninth node A fourth indication message, where the fourth indication message is used to instruct the ninth node to determine a third macrocycle offset according to the third position and the fourth position, and the fourth position is the response of the ninth node The position of the time unit of the fourth indication message in one macrocycle, and the third macrocycle offset is the time delay for the message to be transmitted from the first node to the ninth node.
在一种可选的实施方式中,所述配置消息还包括第一通道的标识、和/或第一业务的标识,所述第一通道用于指示所述第一节点、与所述第一节点的下一跳节点间用于执行所述第一业务的带宽资源。In an optional implementation manner, the configuration message further includes the identifier of the first channel and/or the identifier of the first service, and the first channel is used to indicate the first node and the first service. The bandwidth resource between the next hop nodes of the node for executing the first service.
在本申请各个实施例中的各功能单元可以以软件或硬件方式集成在一个处理器中,各功能单元也可以是单独物理存在,也可以两个或两个以上功能单元集成在一个模块中。集成的功能单元既可以采用硬件的形式实现,也可以采用软件形式实现。The functional units in each embodiment of the present application may be integrated in a processor in a software or hardware manner, each functional unit may also exist alone physically, or two or more functional units may be integrated into a module. The integrated functional unit can be implemented in the form of hardware or software.
本申请实施例还提供了一种装置,如图11所示,该装置可以为网络节点,包括处理器1101,上述处理单元1002对应的实体的硬件可以为处理器1101。网络节点还可以包括收发器1104,上述收发单元1001对应的实体的硬件可以为收发器1104。处理器1101,可以是一个中央处理单元(英文:central processing unit,简称CPU),或者为数字洗好处理器(DSP)等。还包括:存储器1102,用于存储处理器1101所执行的程序。存储器1102可以是非易失性存储器,例如硬盘(英文:hard disk drive,缩写:HDD)或固态硬盘(英文:solid-state drive,缩写:SSD)等,还可以是易失性存储器(英文:volatile memory),例如随机存取存储器(英文:random-access memory,缩写:RAM)。存储器1102也可以是能 够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The embodiment of the present application also provides a device. As shown in FIG. 11, the device may be a network node and includes a processor 1101. The physical hardware corresponding to the processing unit 1002 may be the processor 1101. The network node may further include a transceiver 1104, and the physical hardware corresponding to the above-mentioned transceiver unit 1001 may be the transceiver 1104. The processor 1101 may be a central processing unit (English: central processing unit, CPU for short), or a digital processing unit (DSP), or the like. It also includes a memory 1102, which is used to store a program executed by the processor 1101. The memory 1102 may be a non-volatile memory, such as a hard disk (English: hard disk drive, abbreviation: HDD) or a solid-state drive (English: solid-state drive, abbreviation: SSD), etc., and may also be a volatile memory (English: volatile memory), such as random access memory (English: random-access memory, abbreviation: RAM). The memory 1102 may also be any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
处理器1101用于执行存储器1102存储的程序代码,具体调用所述存储器1102中存储的程序指令。具体地,处理器1101通过收发器1104接收来自控制器的配置消息,该配置消息用于指示处理器1101使用一个宏周期内的N个位置所对应的N个时间单元内执行第一业务。处理器1101根据配置消息使用一个宏周期内的N个位置所对应N个时间单元执行第一业务。处理器1101以时间单元为粒度来执行第一业务,使得收发器1104转发该第一业务的报文的时延具有确定性,满足DIP技术中提供确定性转发服务的要求。The processor 1101 is configured to execute program codes stored in the memory 1102, and specifically call program instructions stored in the memory 1102. Specifically, the processor 1101 receives a configuration message from the controller through the transceiver 1104, and the configuration message is used to instruct the processor 1101 to execute the first service in N time units corresponding to N positions in a macrocycle. The processor 1101 executes the first service by using N time units corresponding to N positions in a macrocycle according to the configuration message. The processor 1101 executes the first service at the granularity of time unit, so that the delay for the transceiver 1104 to forward the packet of the first service is deterministic, and meets the requirement of providing deterministic forwarding service in the DIP technology.
本申请实施例中不限定上述处理器1101以及存储器1102之间的具体连接介质。本申请实施例在图11中处理器1101以及存储器1102之间通过总线1103连接,总线在图11中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图11中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The specific connection medium between the foregoing processor 1101 and the memory 1102 is not limited in the embodiment of the present application. In the embodiment of the present application, the processor 1101 and the memory 1102 in FIG. 11 are connected by a bus 1103. The bus is represented by a thick line in FIG. Is limited. The bus can be divided into an address bus, a data bus, a control bus, and so on. For ease of representation, only one thick line is used to represent in FIG. 11, but it does not mean that there is only one bus or one type of bus.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本申请是参照根据本申请实施例的方法、设备(装置)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This application is described with reference to flowcharts and/or block diagrams of methods, equipment (devices), and computer program products according to the embodiments of this application. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令形成指令装置,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory form an instruction device, and the instruction device is implemented in the process Figure a process or multiple processes and/or a block diagram of the functions specified in a block or multiple blocks.
显然,本领域的技术人员可以对本申请实施例进行各种改动和变型而不脱离本申请实施例的精神和范围。这样,倘若本申请实施例的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. In this way, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application also intends to include these modifications and variations.

Claims (32)

  1. 一种资源配置方法,其特征在于,所述方法包括:A resource allocation method, characterized in that the method includes:
    控制器接收请求消息,所述请求消息用于指示所述控制器配置用于执行第一业务的时域资源;The controller receives a request message, where the request message is used to instruct the controller to configure time domain resources for executing the first service;
    所述控制器向第一节点发送配置消息,所述配置消息指示N个时间单元在一个宏周期内的N个位置;The controller sends a configuration message to the first node, where the configuration message indicates N positions of N time units in one macrocycle;
    其中,所述N个时间单元为执行所述第一业务的时域资源,且所述N个时间单元对应的带宽资源满足所述第一业务的带宽需求,所述N个时间单元中的一个时间单元用于指示调度时域资源的最小时长,一个宏周期包括M个时间单元,所述M为大于或等于所述N的整数,所述N为大于或等于1的整数。Wherein, the N time units are time domain resources for executing the first service, and the bandwidth resources corresponding to the N time units meet the bandwidth requirements of the first service, one of the N time units The time unit is used to indicate the minimum duration of scheduling time domain resources. A macrocycle includes M time units, where M is an integer greater than or equal to the N, and the N is an integer greater than or equal to 1.
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    所述控制器根据所述请求消息,确定在一个宏周期内用于执行所述第一业务的时间单元的数量N;The controller determines the number N of time units used to execute the first service in a macro cycle according to the request message;
    所述控制器根据第一传输路径中的节点的时域资源占用情况,为所述第一节点配置所述N个时间单元在一个宏周期内的N个位置,其中,所述第一传输路径的入口为所述第一节点、出口为第二节点,所述第一业务经由所述第一节点进入第一网络、经由所述第二节点离开所述第一网络。The controller configures, for the first node, N positions of the N time units in a macrocycle according to the time domain resource occupancy of the nodes in the first transmission path, wherein the first transmission path The entrance of is the first node, and the exit is the second node. The first service enters the first network via the first node and leaves the first network via the second node.
  3. 如权利要求2所述的方法,其特征在于,所述第一传输路径包括第三节点,H个位置为所述第三节点在一个宏周期内与所述N个位置对应的位置,且所述H个位置中的至少一个位置对应的时间单元被第二业务占用,所述H的大小等于所述N的大小,所述方法还包括:The method according to claim 2, wherein the first transmission path includes a third node, and the H positions are positions of the third node corresponding to the N positions in a macrocycle, and If a time unit corresponding to at least one of the H positions is occupied by a second service, the size of H is equal to the size of N, and the method further includes:
    所述控制器调整所述第三节点中用于执行所述第二业务的时域资源,在调整后,所述H个位置对应的H个时间单元处于空闲状态。The controller adjusts the time domain resources used for executing the second service in the third node, and after adjustment, the H time units corresponding to the H positions are in an idle state.
  4. 如权利要求3所述的方法,其特征在于,所述控制器调整所述第三节点中用于执行所述第二业务的时域资源,包括:The method according to claim 3, wherein the controller adjusting the time domain resource used for executing the second service in the third node comprises:
    所述控制器根据第一宏周期偏移,确定K个位置,所述K个位置为第四节点在一个宏周期内与所述H个位置对应的位置,其中,所述第二业务经由所述第四节点进入第一网络,所述第一宏周期偏移为报文从所述第四节点传输到所述第三节点的时延,所述K的大小等于所述H的大小;The controller determines K positions according to the first macrocycle offset, where the K positions are the positions of the fourth node corresponding to the H positions in one macrocycle, and the second service passes through all the positions. The fourth node enters the first network, the first macrocycle offset is the time delay for the packet to be transmitted from the fourth node to the third node, and the size of K is equal to the size of H;
    所述控制器根据第二传输路径中的节点的时域资源占用情况,为所述第四节点重新配置Q个时间单元在一个宏周期内的Q个位置,其中,所述Q个时间单元为所述第四节点执行所述第二业务的时域资源,所述Q个位置包括一个宏周期中除所述K个位置之外的位置,所述第二传输路径用于传输所述第二业务的报文。The controller reconfigures Q positions of Q time units in one macrocycle for the fourth node according to the time domain resource occupancy of the nodes in the second transmission path, where the Q time units are The fourth node executes the time domain resources of the second service, the Q positions include positions other than the K positions in a macrocycle, and the second transmission path is used to transmit the second Business messages.
  5. 如权利要求1~4中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further comprises:
    所述控制器根据第一传输路径中的节点的带宽资源占用情况,在所述第一传输路径中每相邻的两个节点之间配置一个用于执行所述第一业务的通道,其中,所述第一传输路径的入口为所述第一节点、出口为第二节点,所述第一业务经由所述第一节点进入第一网络、经由所述第二节点离开所述第一网络。The controller configures a channel for executing the first service between every two adjacent nodes in the first transmission path according to the bandwidth resource occupancy of the nodes in the first transmission path, where: The entrance of the first transmission path is the first node and the exit is the second node, and the first service enters the first network via the first node and leaves the first network via the second node.
  6. 如权利要求5所述的方法,其特征在于,所述第一传输路径包括第五节点和第六 节点,所述第五节点为所述第六节点的下一跳节点;The method according to claim 5, wherein the first transmission path includes a fifth node and a sixth node, and the fifth node is a next hop node of the sixth node;
    所述控制器根据所述第一传输路径中的节点的带宽资源占用情况,在所述第一传输路径中每相邻的两个节点之间配置一个通道,包括:The controller configures a channel between every two adjacent nodes in the first transmission path according to the bandwidth resource occupancy of the nodes in the first transmission path, including:
    所述控制器根据所述第五节点的带宽资源占用情况以及所述第一业务的带宽需求,在所述第五节点与所述第六节点之间配置一个用于执行所述第一业务的通道;或者,The controller configures a device for executing the first service between the fifth node and the sixth node according to the bandwidth resource occupancy of the fifth node and the bandwidth requirement of the first service. Channel; or,
    所述控制器根据所述第五节点的带宽资源占用情况以及所述第一业务的带宽需求,从所述第五节点与所述第六节点之间的已配置的至少一个通道中,确定一个用于执行所述第一业务的通道。The controller determines one channel from at least one configured channel between the fifth node and the sixth node according to the bandwidth resource occupancy of the fifth node and the bandwidth requirement of the first service A channel used to execute the first service.
  7. 如权利要求1~6中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 6, wherein the method further comprises:
    所述控制器接收来自第七节点的第一指示消息,所述第一指示消息指示至少一个宏周期偏移,其中,所述至少一个宏周期偏移中的任一宏周期偏移为报文从所述第七节点的上一跳节点传输到所述第七节点的时延,所述第七节点、以及所述第七节点的上一跳节点为第一网络中的两个节点;The controller receives a first indication message from the seventh node, the first indication message indicating at least one macrocycle offset, wherein any macrocycle offset in the at least one macrocycle offset is a message The time delay for transmission from the last hop node of the seventh node to the seventh node, where the seventh node and the last hop node of the seventh node are two nodes in the first network;
    所述控制器基于所述第一指示消息更新所述第七节点的宏周期表项,所述宏周期表项用于存储所述至少一个宏周期偏移。The controller updates a macroperiod table entry of the seventh node based on the first indication message, where the macroperiod table entry is used to store the at least one macroperiod offset.
  8. 如权利要求1~7中任一项所述的方法,其特征在于,所述配置消息还包括第一通道的标识、和/或第一业务的标识,所述第一通道为所述第一节点、与所述第一节点的下一跳节点间用于执行所述第一业务的带宽资源。The method according to any one of claims 1 to 7, wherein the configuration message further includes an identifier of a first channel and/or an identifier of a first service, and the first channel is the first The node and the bandwidth resource used to execute the first service between the node and the next hop node of the first node.
  9. 如权利要求1~8中任一项所述的方法,其特征在于,所述请求消息包括以下信息中的一项或多项:所述第一节点的标识、所述第二节点的标识或所述第一业务的带宽需求。The method according to any one of claims 1 to 8, wherein the request message includes one or more of the following information: the identity of the first node, the identity of the second node, or The bandwidth requirement of the first service.
  10. 一种资源配置方法,其特征在于,所述方法包括:A resource allocation method, characterized in that the method includes:
    第一节点接收来自控制器的配置消息,所述配置消息指示N个时间单元在一个宏周期内的N个位置;The first node receives a configuration message from the controller, the configuration message indicating N positions of N time units in one macrocycle;
    所述第一节点在所述N个位置对应的N个时间单元内执行所述第一业务;The first node executes the first service in N time units corresponding to the N positions;
    其中,所述N个时间单元为执行所述第一业务的时域资源,且所述N个时间单元对应的带宽资源满足第一业务的带宽需求,所述N个时间单元中的一个时间单元用于指示调度时域资源的最小时长,一个宏周期包括M个时间单元,所述M为大于或等于所述N的整数,所述N为大于或等于1的整数。Wherein, the N time units are time domain resources for executing the first service, and the bandwidth resources corresponding to the N time units meet the bandwidth requirements of the first service, and one time unit in the N time units It is used to indicate the minimum duration for scheduling time domain resources. A macrocycle includes M time units, where M is an integer greater than or equal to the N, and the N is an integer greater than or equal to 1.
  11. 如权利要求10所述的方法,其特征在于,所述方法还包括:The method of claim 10, wherein the method further comprises:
    所述第一节点向所述控制器发送第二指示消息,所述第二指示消息指示至少一个宏周期偏移,以使所述控制器基于所述至少一个宏周期偏移更新所述第一节点的宏周期偏移表项,所述宏周期偏移表项用于存储所述至少一个宏周期偏移,其中,所述至少一个宏周期偏移中的任一宏周期偏移为报文从所述第一节点的上一跳节点传输到所述第一节点的时延。The first node sends a second indication message to the controller, where the second indication message indicates at least one macrocycle offset, so that the controller updates the first macrocycle offset based on the at least one macrocycle offset. A macrocycle offset entry of the node, where the macrocycle offset entry is used to store the at least one macrocycle offset, wherein any macrocycle offset in the at least one macrocycle offset is a message The transmission delay from the last hop node of the first node to the first node.
  12. 如权利要求11所述的方法,其特征在于,所述第一节点的上一跳节点为第八节点,所述至少一个宏周期偏移包括第二宏周期偏移,所述方法还包括:The method according to claim 11, wherein the last hop node of the first node is the eighth node, the at least one macroperiod offset includes a second macroperiod offset, and the method further comprises:
    所述第一节点接收来自所述第八节点的第三指示消息,所述第三指示消息指示第一位置,所述第一位置为所述第八节点生成所述第三指示消息的时间单元在一个宏周期内的位置;The first node receives a third indication message from the eighth node, the third indication message indicates a first position, and the first position is the time unit in which the eighth node generates the third indication message Position within a macrocycle;
    所述第一节点根据所述第一位置、以及第二位置,确定所述第二宏周期偏移,所述第 二位置为所述第八节点响应所述第三指示消息的时间单元在一个宏周期内的位置,所述第二宏周期偏移为报文从所述第八节点传输到所述第一节点的时延。The first node determines the second macroperiod offset according to the first position and the second position, and the second position is the time unit at which the eighth node responds to the third indication message. The position within the macrocycle, the second macrocycle offset is the time delay for the packet to be transmitted from the eighth node to the first node.
  13. 如权利要求10~12中任一项所述的方法,其特征在于,所述第一节点的下一跳节点为第九节点,所述方法还包括:The method according to any one of claims 10 to 12, wherein the next hop node of the first node is a ninth node, and the method further comprises:
    所述第一节点生成第四指示消息,所述第四指示消息指示第三位置,所述第三位置为所述第一节点生成所述第四指示消息的时间单元在一个宏周期内的位置;The first node generates a fourth indication message, the fourth indication message indicates a third position, and the third position is the position within a macrocycle of the time unit at which the first node generates the fourth indication message ;
    所述第一节点向所述第九节点发送所述第四指示消息,所述第四指示消息用于指示所述第九节点根据所述第三位置和第四位置确定第三宏周期偏移,所述第四位置为所述第九节点响应所述第四指示消息的时间单元在一个宏周期内的位置,所述第三宏周期偏移为报文从所述第一节点传输到所述第九节点的时延。The first node sends the fourth indication message to the ninth node, where the fourth indication message is used to instruct the ninth node to determine a third macroperiod offset according to the third position and the fourth position The fourth position is the position within one macrocycle of the time unit of the ninth node in response to the fourth indication message, and the third macrocycle offset is the transmission of the message from the first node to the The delay of the ninth node is described.
  14. 如权利要求10~13中任一项所述的方法,其特征在于,所述配置消息还包括第一通道的标识、和/或第一业务的标识,所述第一通道用于指示所述第一节点、与所述第一节点的下一跳节点间用于执行所述第一业务的带宽资源。The method according to any one of claims 10 to 13, wherein the configuration message further includes an identifier of a first channel and/or an identifier of a first service, and the first channel is used to indicate the Bandwidth resources used for executing the first service between the first node and the next hop node of the first node.
  15. 一种控制器,其特征在于,所述控制器包括:收发单元和处理单元;A controller, characterized in that the controller includes: a transceiver unit and a processing unit;
    所述处理器单元,用于通过所述收发单元接收请求消息,所述请求消息用于指示所述控制器配置用于执行第一业务的时域资源;以及通过所述收发单元向第一节点发送配置消息,所述配置消息指示N个时间单元在一个宏周期内的N个位置;The processor unit is configured to receive a request message through the transceiver unit, where the request message is used to instruct the controller to configure a time domain resource for executing the first service; and send a request message to the first node through the transceiver unit Sending a configuration message, the configuration message indicating N positions of N time units in one macrocycle;
    其中,所述N个时间单元为执行所述第一业务的时域资源,且所述N个时间单元对应的带宽资源满足所述第一业务的带宽需求,所述N个时间单元中的一个时间单元用于指示调度时域资源的最小时长,一个宏周期包括M个时间单元,所述M为大于或等于所述N的整数,所述N为大于或等于1的整数。Wherein, the N time units are time domain resources for executing the first service, and the bandwidth resources corresponding to the N time units meet the bandwidth requirements of the first service, one of the N time units The time unit is used to indicate the minimum duration of scheduling time domain resources. A macrocycle includes M time units, where M is an integer greater than or equal to the N, and the N is an integer greater than or equal to 1.
  16. 如权利要求15所述的控制器,其特征在于,所述处理单元,具体用于:The controller according to claim 15, wherein the processing unit is specifically configured to:
    根据所述请求消息,确定在一个宏周期内用于执行所述第一业务的时间单元的数量N;According to the request message, determine the number N of time units used to execute the first service in one macrocycle;
    根据第一传输路径中的节点的时域资源占用情况,为所述第一节点配置所述N个时间单元在一个宏周期内的N个位置,其中,所述第一传输路径的入口为所述第一节点、出口为第二节点,所述第一业务经由所述第一节点进入第一网络、经由所述第二节点离开所述第一网络。According to the time domain resource occupancy of the nodes in the first transmission path, the first node is configured with N positions of the N time units in a macrocycle, wherein the entry of the first transmission path is all The first node and the exit are second nodes, and the first service enters the first network via the first node, and leaves the first network via the second node.
  17. 如权利要求16所述的控制器,其特征在于,所述第一传输路径包括第三节点,H个位置为所述第三节点在一个宏周期内与所述N个位置对应的位置,且所述H个位置中的至少一个位置对应的时间单元被第二业务占用,所述H的大小等于所述N的大小,所述处理单元,还用于:The controller according to claim 16, wherein the first transmission path includes a third node, and the H positions are positions of the third node corresponding to the N positions in a macrocycle, and The time unit corresponding to at least one of the H positions is occupied by the second service, the size of H is equal to the size of N, and the processing unit is further configured to:
    所述控制器调整所述第三节点中用于执行所述第二业务的时域资源,在调整后,所述H个位置对应的H个时间单元处于空闲状态。The controller adjusts the time domain resources used for executing the second service in the third node, and after adjustment, the H time units corresponding to the H positions are in an idle state.
  18. 如权利要求17所述的控制器,其特征在于,所述处理单元,具体用于:The controller according to claim 17, wherein the processing unit is specifically configured to:
    根据第一宏周期偏移,确定K个位置,所述K个位置为第四节点在一个宏周期内与所述H个位置对应的位置,其中,所述第二业务经由所述第四节点进入第一网络,所述第一宏周期偏移为报文从所述第四节点传输到所述第三节点的时延,所述K的大小等于所述H的大小;According to the first macrocycle offset, determine K positions, where the K positions are the positions of the fourth node corresponding to the H positions in one macrocycle, where the second service passes through the fourth node Entering the first network, the first macrocycle offset is the time delay for the message to be transmitted from the fourth node to the third node, and the size of K is equal to the size of H;
    根据第二传输路径中的节点的时域资源占用情况,为所述第四节点重新配置Q个时间单元在一个宏周期内的Q个位置,其中,所述Q个时间单元为所述第四节点执行所述第二 业务的时域资源,所述Q个位置包括一个宏周期中除所述K个位置之外的位置,所述第二传输路径用于传输所述第二业务的报文。According to the time domain resource occupancy of the nodes in the second transmission path, reconfigure the Q positions of the Q time units in one macrocycle for the fourth node, where the Q time units are the fourth Time domain resources for the node to execute the second service, the Q positions include positions other than the K positions in a macrocycle, and the second transmission path is used to transmit packets of the second service .
  19. 如权利要求15~18中任一项所述的控制器,其特征在于,所述处理单元,具体用于:The controller according to any one of claims 15 to 18, wherein the processing unit is specifically configured to:
    根据第一传输路径中的节点的带宽资源占用情况,在所述第一传输路径中每相邻的两个节点之间配置一个用于执行所述第一业务的通道,其中,所述第一传输路径的入口为所述第一节点、出口为第二节点,所述第一业务经由所述第一节点进入第一网络、经由所述第二节点离开所述第一网络。According to the bandwidth resource occupancy of the nodes in the first transmission path, a channel for executing the first service is configured between every two adjacent nodes in the first transmission path, wherein the first The entrance of the transmission path is the first node, and the exit is the second node. The first service enters the first network via the first node and leaves the first network via the second node.
  20. 如权利要求19所述的控制器,其特征在于,所述第一传输路径包括第五节点和第六节点,所述第五节点为所述第六节点的下一跳节点;The controller according to claim 19, wherein the first transmission path includes a fifth node and a sixth node, and the fifth node is a next hop node of the sixth node;
    所述处理单元,具体用于:The processing unit is specifically used for:
    根据所述第五节点的带宽资源占用情况以及所述第一业务的带宽需求,在所述第五节点与所述第六节点之间配置一个用于执行所述第一业务的通道;或者,According to the bandwidth resource occupancy of the fifth node and the bandwidth requirement of the first service, configure a channel for executing the first service between the fifth node and the sixth node; or,
    根据所述第五节点的带宽资源占用情况以及所述第一业务的带宽需求,从所述第五节点与所述第六节点之间的已配置的至少一个通道中,确定一个用于执行所述第一业务的通道。According to the bandwidth resource occupancy of the fifth node and the bandwidth requirement of the first service, from the at least one configured channel between the fifth node and the sixth node, determine one for performing all The channel of the first service.
  21. 如权利要求15~20中任一项所述的控制器,其特征在于,所述收发单元,还用于:The controller according to any one of claims 15 to 20, wherein the transceiver unit is further configured to:
    接收来自第七节点的第一指示消息,所述第一指示消息指示至少一个宏周期偏移,其中,所述至少一个宏周期偏移中的任一宏周期偏移为报文从所述第七节点的上一跳节点传输到所述第七节点的时延,所述第七节点、以及所述第七节点的上一跳节点为第一网络中的两个节点;Receive a first indication message from the seventh node, where the first indication message indicates at least one macroperiod offset, wherein any one of the at least one macroperiod offset is the The transmission delay from the last hop node of the seven nodes to the seventh node, and the seventh node and the last hop node of the seventh node are two nodes in the first network;
    所述处理单元,还用于:The processing unit is also used for:
    基于所述第一指示消息更新所述第七节点的宏周期表项,所述宏周期表项用于存储所述至少一个宏周期偏移。The macroperiod table entry of the seventh node is updated based on the first indication message, where the macroperiod table entry is used to store the at least one macroperiod offset.
  22. 如权利要求15~21中任一项所述的控制器,其特征在于,所述配置消息还包括第一通道的标识、和/或第一业务的标识,所述第一通道为所述第一节点、与所述第一节点的下一跳节点间用于执行所述第一业务的带宽资源。The controller according to any one of claims 15 to 21, wherein the configuration message further includes an identifier of a first channel and/or an identifier of a first service, and the first channel is the first channel. A node and a bandwidth resource used for executing the first service between a node and a next hop node of the first node.
  23. 如权利要求15~22中任一项所述的控制器,其特征在于,所述请求消息包括以下信息中的一项或多项:所述第一节点的标识、所述第二节点的标识或所述第一业务的带宽需求。The controller according to any one of claims 15-22, wherein the request message includes one or more of the following information: an identifier of the first node, an identifier of the second node Or the bandwidth requirement of the first service.
  24. 一种网络节点,其特征在于,包括:A network node, characterized in that it comprises:
    收发单元,用于接收来自控制器的配置消息,所述配置消息指示N个时间单元在一个宏周期内的N个位置;The transceiver unit is configured to receive a configuration message from the controller, the configuration message indicating N positions of N time units in a macrocycle;
    处理单元,用于在所述N个位置对应的N个时间单元内执行所述第一业务;A processing unit, configured to execute the first service in N time units corresponding to the N positions;
    其中,所述N个时间单元为执行所述第一业务的时域资源,且所述N个时间单元对应的带宽资源满足第一业务的带宽需求,所述N个时间单元中的一个时间单元用于指示调度时域资源的最小时长,一个宏周期包括M个时间单元,所述M为大于或等于所述N的整数,所述N为大于或等于1的整数。Wherein, the N time units are time domain resources for executing the first service, and the bandwidth resources corresponding to the N time units meet the bandwidth requirements of the first service, and one time unit in the N time units It is used to indicate the minimum duration for scheduling time domain resources. A macrocycle includes M time units, where M is an integer greater than or equal to the N, and the N is an integer greater than or equal to 1.
  25. 如权利要求24所述的网络节点,其特征在于,所述收发单元用于:The network node according to claim 24, wherein the transceiver unit is configured to:
    向所述控制器发送第二指示消息,所述第二指示消息指示至少一个宏周期偏移,以使所述控制器基于所述至少一个宏周期偏移更新所述第一节点的宏周期偏移表项,所述宏周期偏移表项用于存储所述至少一个宏周期偏移,其中,所述至少一个宏周期偏移中的任一宏周期偏移为报文从所述第一节点的上一跳节点传输到所述第一节点的时延。Send a second indication message to the controller, where the second indication message indicates at least one macrocycle offset, so that the controller updates the macrocycle offset of the first node based on the at least one macrocycle offset Shift entry, the macroperiod offset entry is used to store the at least one macroperiod offset, wherein any macroperiod offset in the at least one macroperiod offset is the The transmission delay of the last hop of the node to the first node.
  26. 如权利要求25所述的网络节点,其特征在于,所述第一节点的上一跳节点为第八节点,所述至少一个宏周期偏移包括第二宏周期偏移,所述收发单元,还用于:The network node according to claim 25, wherein the last hop node of the first node is an eighth node, the at least one macroperiod offset includes a second macroperiod offset, and the transceiver unit, Also used for:
    接收来自所述第八节点的第三指示消息,所述第三指示消息指示第一位置,所述第一位置为所述第八节点生成所述第三指示消息的时间单元在一个宏周期内的位置;Receiving a third indication message from the eighth node, where the third indication message indicates a first position, and the first position is a time unit for the eighth node to generate the third indication message within one macrocycle s position;
    所述处理单元,具体用于:The processing unit is specifically used for:
    根据所述第一位置、以及第二位置,确定所述第二宏周期偏移,所述第二位置为所述第八节点响应所述第三指示消息的时间单元在一个宏周期内的位置,所述第二宏周期偏移为报文从所述第八节点传输到所述第一节点的时延。Determine the second macroperiod offset according to the first position and the second position, where the second position is the position within one macroperiod of the time unit of the eighth node in response to the third indication message , The second macrocycle offset is a time delay for a packet to be transmitted from the eighth node to the first node.
  27. 如权利要求24~26中任一项所述的网络节点,其特征在于,所述第一节点的下一跳节点为第九节点,所述处理单元,具体用于:The network node according to any one of claims 24 to 26, wherein the next hop node of the first node is a ninth node, and the processing unit is specifically configured to:
    生成第四指示消息,所述第四指示消息指示第三位置,所述第三位置为所述第一节点生成所述第四指示消息的时间单元在一个宏周期内的位置;Generating a fourth indication message, where the fourth indication message indicates a third position, and the third position is a position within a macrocycle of a time unit at which the first node generates the fourth indication message;
    所述收发单元,具体用于:The transceiver unit is specifically configured to:
    向所述第九节点发送所述第四指示消息,所述第四指示消息用于指示所述第九节点根据所述第三位置和第四位置确定第三宏周期偏移,所述第四位置为所述第九节点响应所述第四指示消息的时间单元在一个宏周期内的位置,所述第三宏周期偏移为报文从所述第一节点传输到所述第九节点的时延。The fourth indication message is sent to the ninth node, where the fourth indication message is used to instruct the ninth node to determine a third macroperiod offset according to the third position and the fourth position, and the fourth The position is the position within one macrocycle of the time unit at which the ninth node responds to the fourth indication message, and the third macrocycle offset is the amount of time a packet is transmitted from the first node to the ninth node Time delay.
  28. 如权利要求24~27中任一项所述的网络节点,其特征在于,所述配置消息还包括第一通道的标识、和/或第一业务的标识,所述第一通道用于指示所述第一节点、与所述第一节点的下一跳节点间用于执行所述第一业务的带宽资源。The network node according to any one of claims 24 to 27, wherein the configuration message further includes the identifier of the first channel and/or the identifier of the first service, and the first channel is used to indicate the Bandwidth resources used for executing the first service between the first node and the next hop node of the first node.
  29. 一种资源配置装置,其特征在于,包括至少一个处理器;所述至少一个处理器,用于运行计算机程序或指令,以使得装置执行如权利要求1至9中任一项所述的方法。A device for resource allocation, characterized by comprising at least one processor; the at least one processor is used to run a computer program or instruction so that the device executes the method according to any one of claims 1 to 9.
  30. 一种资源配置装置,其特征在于,包括至少一个处理器;所述至少一个处理器,用于运行计算机程序或指令,以使得装置执行如权利要求10至14中任一项所述的方法。A resource configuration device, characterized by comprising at least one processor; the at least one processor is used to run a computer program or instruction, so that the device executes the method according to any one of claims 10 to 14.
  31. 一种计算机可读存储介质,其特征在于,,所述计算机可读存储介质用于存储计算机指令,当所述计算机指令在计算机上运行时,使得所述计算机执行如权利要求1至9中任一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium is used to store computer instructions, and when the computer instructions are executed on a computer, the computer can execute any of claims 1 to 9 The method described in one item.
  32. 一种计算机可读存储介质,其特征在于,,所述计算机可读存储介质用于存储计算机指令,当所述计算机指令在计算机上运行时,使得所述计算机执行如权利要求10至14中任一项所述的方法。A computer-readable storage medium, characterized in that, the computer-readable storage medium is used to store computer instructions, and when the computer instructions are executed on a computer, the computer executes any of claims 10 to 14 The method described in one item.
PCT/CN2020/140421 2019-12-30 2020-12-28 Resource configuration method and device WO2021136213A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911404975.X 2019-12-30
CN201911404975.XA CN113132268A (en) 2019-12-30 2019-12-30 Resource allocation method and equipment

Publications (1)

Publication Number Publication Date
WO2021136213A1 true WO2021136213A1 (en) 2021-07-08

Family

ID=76686529

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/140421 WO2021136213A1 (en) 2019-12-30 2020-12-28 Resource configuration method and device

Country Status (2)

Country Link
CN (1) CN113132268A (en)
WO (1) WO2021136213A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114448865A (en) * 2021-12-23 2022-05-06 东莞市李群自动化技术有限公司 Method, system, device and storage medium for processing service message
CN117278471A (en) * 2023-11-21 2023-12-22 浙江国利信安科技有限公司 Method, computing device and storage medium for network communication time scheduling

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113285844B (en) * 2021-07-23 2021-10-15 浙江国利信安科技有限公司 Method, computing device, and medium for adjusting bandwidth
CN113401077B (en) * 2021-08-19 2021-11-16 北京理工大学深圳汽车研究院(电动车辆国家工程实验室深圳研究院) Intelligent vehicle dynamic reconfigurable network system and network scheduling method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924702A (en) * 2010-08-26 2010-12-22 华为技术有限公司 Service data transmission method and device
US20140207944A1 (en) * 2013-01-24 2014-07-24 Hitachi, Ltd. Method and system for managing cloud computing environment
WO2016107159A1 (en) * 2014-12-31 2016-07-07 华为技术有限公司 Communication method, device and system
US20190116128A1 (en) * 2017-10-18 2019-04-18 Futurewei Technologies, Inc. Dynamic allocation of edge computing resources in edge computing centers
CN110149711A (en) * 2018-02-13 2019-08-20 成都华为技术有限公司 A kind of method for transmitting signals and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924702A (en) * 2010-08-26 2010-12-22 华为技术有限公司 Service data transmission method and device
US20140207944A1 (en) * 2013-01-24 2014-07-24 Hitachi, Ltd. Method and system for managing cloud computing environment
WO2016107159A1 (en) * 2014-12-31 2016-07-07 华为技术有限公司 Communication method, device and system
US20190116128A1 (en) * 2017-10-18 2019-04-18 Futurewei Technologies, Inc. Dynamic allocation of edge computing resources in edge computing centers
CN110149711A (en) * 2018-02-13 2019-08-20 成都华为技术有限公司 A kind of method for transmitting signals and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114448865A (en) * 2021-12-23 2022-05-06 东莞市李群自动化技术有限公司 Method, system, device and storage medium for processing service message
CN114448865B (en) * 2021-12-23 2024-01-02 东莞市李群自动化技术有限公司 Service message processing method, system, equipment and storage medium
CN117278471A (en) * 2023-11-21 2023-12-22 浙江国利信安科技有限公司 Method, computing device and storage medium for network communication time scheduling
CN117278471B (en) * 2023-11-21 2024-01-26 浙江国利信安科技有限公司 Method, computing device and storage medium for network communication time scheduling

Also Published As

Publication number Publication date
CN113132268A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
WO2021136213A1 (en) Resource configuration method and device
CN111865830B (en) Processing method, device and system for time delay sensitive network service TSN
US10772101B2 (en) Systems and methods for determining air interface configuration
CN108418609B (en) System and method for radio bearer management for multipoint transmissions
EP3567787B1 (en) Signal transmission method, device and system
US11956157B2 (en) Activation of PDU session and QOS flows in 3GPP-based ethernet bridges
US11889342B2 (en) Method and apparatus for quality of service management
US11191050B2 (en) Communication processing method and apparatus
TW201427447A (en) Self-optimization of backhaul radio resources and small cell backhaul delay estimation
CN108702660A (en) Communication means, terminal device and the network equipment
WO2014012410A1 (en) Method and device for data transmission and communication system
US10447603B2 (en) Control signaling transmission method and device
WO2014086203A1 (en) Method and apparatus for configuring srs resource for cooperating cells
US11042408B2 (en) Device, system, and resource allocation method
US11997538B2 (en) Communication method and communications apparatus
CN112087777B (en) MDBV (minimum drive buffer volume) determination method, device and system
EP3709546B1 (en) Data transmission method and apparatus
JPWO2010061530A1 (en) Network system, public network resource management device, public network radio base station, private network resource management device, private network radio base station
CN117119393A (en) Resource period configuration, link processing and establishing methods and devices
WO2022127906A1 (en) Resource configuration method and apparatus, and network node and storage medium
CN114793209A (en) Data transmission method and device and SDN (software defined network) equipment
CN114073121A (en) Method and apparatus for flow control
WO2019091225A1 (en) Method for determining frequency-hopping physical resource, user terminal, and network side device
WO2022222748A1 (en) Relay communication method and apparatus
US20230164713A1 (en) Information control method and apparatus, and communications 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: 20910223

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20910223

Country of ref document: EP

Kind code of ref document: A1