WO2019029284A1 - 一种资源预留方法以及相关设备 - Google Patents

一种资源预留方法以及相关设备 Download PDF

Info

Publication number
WO2019029284A1
WO2019029284A1 PCT/CN2018/092826 CN2018092826W WO2019029284A1 WO 2019029284 A1 WO2019029284 A1 WO 2019029284A1 CN 2018092826 W CN2018092826 W CN 2018092826W WO 2019029284 A1 WO2019029284 A1 WO 2019029284A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
network device
resource index
index
data
Prior art date
Application number
PCT/CN2018/092826
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to EP18844895.5A priority Critical patent/EP3664389B1/en
Publication of WO2019029284A1 publication Critical patent/WO2019029284A1/zh
Priority to US16/785,181 priority patent/US11310167B2/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/72Admission control; Resource allocation using reservation actions during connection setup
    • 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/78Architectures of resource allocation
    • H04L47/781Centralised allocation of resources
    • 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/78Architectures of resource allocation
    • H04L47/783Distributed allocation of resources, e.g. bandwidth brokers
    • H04L47/787Bandwidth trade among domains
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/821Prioritising resource allocation or reservation requests

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a resource reservation method and related devices.
  • the resource reservation protocol (English name: resource reservation protocol, English abbreviation: RSVP) is a signaling protocol that allows any pair of transmitting devices and receiving devices on the network to establish a path for retaining network device bandwidth resources.
  • the data transmission guarantees the quality of service (English name: quality of service, English abbreviation: QoS).
  • QoS resource refers to a resource used in the network device to implement bandwidth guarantee, and each QoS resource entity has a corresponding index.
  • the integrated service (English name: integrated service, English abbreviation: IntServ) is a technology for providing end-to-end QoS based on flows in the network.
  • IntServ the sending device needs to apply for specific QoS resources to the network through RSVP before sending data. And after confirming that the network has reserved QoS resources for the data, it starts to send data.
  • the specific process of the RSVP in the prior art is described below with reference to FIG. 1 and FIG. 2, and the sending device S needs to reserve resources on the network devices R1, R2, R3, and R4 through RSVP before transmitting data to the receiving device R, and The mapping relationship between the service flow to be sent and the reserved resources is maintained on these network devices.
  • the sending device sends a path message to the receiving device through the protocol process component, where the path message carries the bandwidth, delay, and other requirements information, and the path device transmits the network devices R1, R2, and R3 along the path.
  • R4 establishes the path state hop by hop, obtains the reverse next hop address, and saves the reverse next hop address to the path state, which is used to guide the resv message forwarding and hop to the receiving device hop by hop.
  • the receiving device sends a resv message along the path sent by the path message, that is, sends a resv message along the network devices R4, R3, R2, and R1.
  • the resource request control component of the network device performs resource reservation. If the last hop network device closest to the sending device receives the resv message and reserves the resource successfully, it considers that the QoS resource reservation on the entire path is successful. At this time, the last hop network device can send a confirmation message (ie, a conf message) to the receiving device along the path sent by the resv message, and the receiving device learns that the QoS resource reservation on the entire path is successful after receiving the confirmation message. After the reservation is successful, a service flow matching table is established in the traffic classifier of the network device, and the corresponding QoS resource is delivered in the traffic scheduler of the network device, and the corresponding resource index is obtained.
  • a confirmation message ie, a conf message
  • any one-hop network device fails to reserve resources, the network device sends a resverr message (ie, an err message) to the receiving device along the path sent by the resv message, and the network device per hop that receives the resverr message releases the reserved QoS. Resources. After the resource is successfully reserved, the sending device can obtain the resource index by using the traffic classifier on the network device of each hop, and the traffic scheduler of the network device obtains the reserved resource according to the resource index to perform QoS guarantee. Scheduling, hop-by-hop forwarding.
  • the RSVP reservation resource request is performed serially.
  • the path status is established through the path message, and the resource is reserved when the resv message is sent back.
  • the resverr message needs to be rolled back.
  • the resources of the reserved QoS are released, and all network devices in the resource reservation through RSVP must support RSVP, and each network device on the path message transmission path consumes resources to maintain the context of the control plane for resv messages.
  • Reverse forwarding that is, RSVP needs to establish a service flow matching table for each network device on the path message transmission path, and maps the service flow and the resource, so that a large amount of resources of the network device, such as resources occupied by the context, need to be consumed.
  • the embodiment of the present application provides a resource reservation method, where the controller can obtain the data transmission of the communication session between the sending device and the receiving device.
  • the identifier information and the resource index of the network device, and the resource index and the resource requirement information are sent to the network device according to the identifier information, so that the network device configures the resource according to the resource index and the resource requirement information, and sends the identifier information and the resource index to the sending device. So that the transmitting device adds the identification information and the resource index to the data of the communication session, and transmits the data to the receiving device through the network device.
  • the embodiments of the present application further provide related devices such as a resource reservation device, a controller, a sending device, a network device, a computer program product, and a computer storage medium.
  • the first aspect of the embodiments of the present application provides a resource reservation method, which may include: receiving, by a controller, a resource reservation request of a communication session sent by a sending device, where the resource reservation request may be that the sending device has a QoS guarantee in the communication session. Sent to the controller when communication is required.
  • the resource reservation request may carry information such as resource requirement information and a quintuple.
  • the controller may obtain the identifier information of the network device that the data transmission between the sending device and the receiving device passes during the communication session, and obtain the network device according to the information carried in the resource reservation request. Resource index.
  • the identification information may be an address of the network device or related information used to identify the network device.
  • the controller sends the resource requirement information and the resource index to the network device according to the identifier information, where the resource requirement information and the resource index are used to instruct the network device to configure a resource for the communication session, so that the network device uses the resource requirement information and the resource index according to the received resource as the communication.
  • the session configures the corresponding resources. It can be understood that when there is only one network device, the controller only needs to send the resource requirement information and the resource index corresponding to the network device to the network device; when there are multiple network devices, the controller needs to connect each network. The resource requirement information and the resource index corresponding to the device are respectively sent to the corresponding network device.
  • the controller After transmitting the resource requirement information and the resource index to the network device, the controller sends the identifier information of the network device and the resource index of the network device to the sending device. For example, the controller may send the identifier information of the network device and the resource index of the network device to the sending device when receiving the response message fed back after the network device completes the resource configuration, or may send the resource requirement information and the resource index to the resource index.
  • the preset time can ensure that the network device has completed resource configuration, and can be flexibly set according to the actual situation. limited.
  • the sending device sends the data of the communication session
  • the identifier information of the network device and the resource index of the network device may be sent to the receiving device along with the data, and the network device may schedule the corresponding resource pair data according to the identifier information and the resource index.
  • the resource management of the entire network is implemented by the controller, and the network device no longer maintains the service flow state, the path message, and the resv message forwarding through the RSVP on the entire network to apply for resources serially, but concentrates on the controller.
  • the resources are applied in parallel, without consuming the resources of the network device to establish a mapping relationship between the service flow and the resource, thereby saving the resource overhead of the network device.
  • the controller may send the identifier information of the network device and the resource index of the network device to the sending device, where the controller may be After receiving the response message fed back by the network device, the controller determines, according to the response message, that the network device has completed the configuration of the resource, and sends the identifier information of the network device and the resource index of the network device to the sending device.
  • the response message is that the network device feeds back to the controller after completing the resource reservation according to the resource requirement information and the resource index.
  • the response message is used to indicate that the network device has completed the configuration of the resource, and the type of the response message may be flexibly set according to actual requirements, which is not limited herein.
  • the controller may send the identifier information of the network device and the resource index of the network device to the sending device, and ensure that the identifier information and the resource index are sent to the sending device when the resource configuration is completed.
  • the controller is sent to send the identification information and resource index reliability to the sending device.
  • the resource reservation request received by the controller is not only Carrying at least one resource requirement information of the bandwidth resource, the maximum delay, and the packet loss rate, and carrying the destination address corresponding to the receiving device, the source address corresponding to the sending device, the source port number, the destination port, and the protocol number, etc.
  • the controller obtains the identification information and the resource index of the network device, and obtains the resource requirement information and the destination address carried in the resource reservation request, and acquires the network device through which the data transmission between the sending device and the receiving device is performed.
  • the identification information and the resource index of the network device improve the convenience and reliability of the identification information of the network device and the resource index acquisition.
  • the controller maintains resources of all network devices in the entire network, and the controller acquires the network device.
  • the idle resource of the network device through which the data transmission of the communication session between the sending device and the receiving device passes may be obtained by accessing the resources of all the network devices maintained by the user, and the idle resource may include an idle resource index.
  • the idle bandwidth resource, etc., the idle resource can meet the resource index and the resource requirement information corresponding to the resource requirement.
  • the controller acquires identification information of the network device through which the data transmission of the communication session between the sending device and the receiving device passes according to the resource requirement information, the destination address, and the idle resource, and the controller allocates a resource index for the communication session.
  • the controller manages resources of the entire network, and implements centralized and parallel application of resources on the controller, thereby improving flexibility and efficiency of resource application.
  • the controller performs the data transmission of the communication session between the sending device and the receiving device.
  • the path that satisfies the resource requirement information, the destination address, and the idle resource is obtained from the entire network maintained by the controller, and then the data transmission between the sending device and the receiving device is obtained from the path.
  • the shortest path For example, when there is only one path that satisfies the resource requirement information, the destination address, and the idle resource, the path is the shortest path; when there are multiple paths satisfying the resource requirement information, the destination address, and the idle resource, the selected one is selected.
  • a shortest path For example, when there is only one path that satisfies the resource requirement information, the destination address, and the idle resource, the path is the shortest path; when there are multiple paths satisfying the resource requirement information, the destination address, and the idle resource, the selected one is selected.
  • the controller can run the shortest path first algorithm (English name: constrained shortest path first, English abbreviation: CSPF) to calculate the shortest path, or run other algorithms to obtain, which is not limited here.
  • CSPF constrained shortest path first
  • the controller may obtain the identifier information of the network device on the shortest path after the data transmission between the sending device and the receiving device is performed, so that the data transmission of the communication session passes through the network device less, and the communication session is improved. The efficiency with which data is transmitted.
  • the controller In the process of sending the resource index, the controller sends the identifier information and the resource index of the network device to the signaling packet in the process of sending the identifier information and the resource index of the network device to the sending device, and then sending the identifier to the sending device.
  • the signaling packet of the information and resource index, the type of the signaling packet is not limited herein. It is very convenient to implement, and improves the convenience of sending identification information and resource index.
  • the resource index includes a leaky bucket.
  • the index or the queue index that is, when the resource scheduling is performed, if the traffic flow rate is controlled by the traffic policing, for example, the traffic policing is implemented by using the leaky bucket algorithm, where the QoS resource corresponds to the leaky bucket resource, and the QoS resource index corresponds to It is the leaky bucket index.
  • the traffic flow rate is controlled by traffic shaping.
  • the traffic policing is implemented by using a queue algorithm.
  • the QoS resource corresponds to the queue resource
  • the QoS resource index corresponds to the queue index.
  • the type of the resource index in this embodiment may be set according to the type of the resource, enriching the type of the resource index, and realizing the diversity of the resource index.
  • the resource requirement information includes the bandwidth. At least one of the resource, the burst size, the maximum delay, the maximum delay jitter, and the packet loss rate may further include other information according to actual needs, which is not limited herein.
  • the resource requirement information may include various information, avoiding the unity of the resource requirement information, and realizing the diversity of the resource requirement information.
  • a second aspect of the embodiments of the present application provides a resource reservation method, which may include: a sending device sends a resource reservation request of a communication session to a controller, so that the controller acquires between the sending device and the receiving device according to the resource reservation request. And determining, by the network device, the identifier information of the network device and the resource index of the network device, and sending the resource requirement information and the resource index to the network device according to the identifier information, so that the network device according to the received resource requirement information and resources The index configures the corresponding resources for the communication session.
  • the resource reservation request may be sent by the sending device to the controller when the communication session has a QoS guaranteed communication requirement.
  • the resource reservation request may include information such as resource requirement information and a quintuple, and the resource requirement information may include a bandwidth resource, a maximum delay, and a packet loss rate, and the quintuple may include a destination address, a source address, and a source. Port number, destination port, protocol number, etc.
  • the sending device receives the feedback information fed back by the controller according to the resource reservation request, where the feedback information carries the identifier information of the network device and the resource index of the network device through which the data transmission of the communication session passes, and the identifier information may be an address of the network device. Or related information for identifying a network device, and the resource index may be a leaky bucket index or a queue index.
  • the sending device When the data of the communication session needs to be sent, the sending device adds the identification information and the resource index of the network device to the data of the communication session, and sends the data carrying the identification information and the resource index to the receiving device through the network device, so that the network device can The data is forwarded according to the identifier information and the resource corresponding to the resource index scheduling.
  • the resource management of the entire network is implemented by the controller, and the network device no longer maintains the service flow state, the path message, and the resv message forwarding through the RSVP on the entire network to apply for resources serially, but concentrates on the controller.
  • the resources are applied in parallel, without consuming the resources of the network device to establish a mapping relationship between the service flow and the resource, thereby saving the resource overhead of the network device.
  • the sending device in order to facilitate the sending device to add the identification information and the resource index to the data of the communication session when transmitting the data of the communication session.
  • the sending device when receiving the identifier information and the resource index of the network device sent by the controller, first obtains the session identifier of the communication session, and then associates the identifier information and the resource index with the session identifier, which may be stored in the sending device. Locally, it can also be stored in the server, which is not limited here.
  • the sending device When the sending device sends the data of the communication session, the stored identification information and the resource index corresponding to the session identifier may be obtained from the local or the server, and the sending device adds the acquired stored identification information and the resource index to the data. And transmitting the data to the receiving device through the network device.
  • the sending device may associate the identifier information, the resource index, and the session identifier, so as to facilitate subsequent use of the identifier information and the resource index, thereby improving the convenience of sending data by the sending device.
  • the data sent by the sending device to the receiving device by using the network device It can be a data message or other types of data.
  • the type of the data can include the sixth version of the Internet Protocol (English full name: internet protocol version 6, English abbreviation: IPv6), the fourth edition of the Internet Protocol (English full name: internet protocol version 4, English abbreviation: IPv4), or multi-protocol label switching (English full name: multi-protocol label switching, English abbreviation: MPLS). It can be understood that the type of the data may also include other types, which are not limited herein. The diversity of data types is achieved in this embodiment.
  • the sending device when the data type of the communication session is IPv6, the sending device sends the data of the communication session.
  • the identification information and the resource index may be added to the IPv6 header and sent to the receiving device by the network device. For example, it may be a field that extends the header of IPv6, and the identification information and the resource index are added to the extended field of IPv6.
  • the sending device may add the identification information and the resource index to the IPv4 header when transmitting the data of the communication session, and send the IPv4 to the receiving device through the network device.
  • the sending device may add the identification information and the resource index to the head of the MPLS when transmitting the data of the communication session, and send the MPLS to the receiving device through the network device.
  • the network device not only is it very convenient to implement, but also the flexibility of the transmitting device to transmit data is improved.
  • a third aspect of the embodiments of the present application provides a resource reservation method, which may include: receiving, by a network device, resource requirement information and a resource index of a communication session sent by a controller, where the resource requirement information and the resource index may be received by the controller according to the The resource reservation request of the communication session sent by the sending device is obtained by acquiring the identification information of the network device through which the data transmission of the communication session between the transmitting device and the receiving device passes and the resource index of the network device.
  • the resource reservation request may be sent to the controller when the communication session has a QoS-guaranteed communication requirement, and the resource reservation request may carry bandwidth resources, burst size, maximum delay, maximum delay jitter, and Resource demand information such as the packet loss rate, the destination address corresponding to the receiving device, the source address corresponding to the sending device, the source port number, the destination port, and the protocol number.
  • the network device allocates a resource for the communication session according to the resource requirement information and the resource index, where the resource corresponds to the resource index, and the resource index may be a leaky bucket index or a queue index.
  • the network device receives the data of the communication session sent by the sending device, where the data carries the target resource index corresponding to the network device and the target identifier information corresponding to the next hop of the network device.
  • the target resource index is included in the resource index
  • the target identifier information is included in the identifier information of the data transmission through the network device.
  • the network device forwards the data according to the target resource index and the target identification information. For example, the network device may determine an output interface corresponding to the target identifier information, and obtain a resource corresponding to the target resource index, and then send the data to the next hop with respect to the network device by using the output interface and the resource, until The next hop is the receiving device.
  • the resource of the entire network is managed by the controller, and the network device no longer maintains the service flow state, performs the path message, and forwards the resv message through the RSVP on the entire network to apply for resources serially.
  • the resources are collectively applied in parallel on the controller, without consuming the resources of the network device to establish a mapping relationship between the service flow and the resource, thereby saving the resource overhead of the network device.
  • the controller in a first implementation manner of the third aspect of the embodiments of the present application, in order to ensure that the controller can send the identifier information of the network device and the network device to the sending device, when the resource configuration is completed.
  • the resource index allocates resources for the communication session according to the resource requirement information and the resource index sent by the controller.
  • the network device feeds back a response message to the controller. So that the controller determines, according to the response message, that the network device has completed the configuration of the resource, so as to send the identification information of the network device and the resource index of the network device to the sending device.
  • the type of the response message can be flexibly set according to the actual needs, which is not limited herein.
  • the network device after the network device completes the configuration of the resource, the network device sends a response message to the controller, so that the controller can send the identifier information of the network device and the resource index of the network device to the sending device when the resource configuration is completed, thereby improving the control.
  • the device sends the identification information and resource index reliability to the sending device.
  • the network device is configured according to the target resource index and the target identification information.
  • the network device first obtains the target resource index corresponding to the network device from the first instruction section of the data, and the target identification information corresponding to the next hop of the network device.
  • the network device then obtains an output interface corresponding to the target identification information, and deletes the target identification information after acquiring the output interface.
  • the network device acquires the resource corresponding to the target resource index in the preset traffic scheduler, and schedules the resource, and deletes the target resource index after acquiring the resource.
  • the network device transmits data of the communication session to the next hop with respect to the network device through the output interface and the resource until the next hop is the receiving device.
  • the network device may sequentially store the identification information and the resource index corresponding to all the network devices that the data transmission between the sending device and the receiving device passes through, according to the data, and forward the data.
  • the target identification information and the target resource index stored in the first instruction section are obtained, and after the target identification information and the target resource index are used, the target identification information and the target resource index are deleted, and when the network device is transmitted to the next hop network device, the next The one-hop network device also acquires the target identification information and the target resource index stored in the first instruction section, and deletes the target identification information and the target resource index after using the target identification, until the next hop is the receiving device. Thereby improving the efficiency and convenience of data transmission.
  • the network device is configured according to the target resource index and the target identification information.
  • the network device first obtains the data from the communication session according to the corresponding offset of all the network devices through which the data transmission of the communication session between the transmitting device and the receiving device passes. a target resource index corresponding to the network device, and target identification information corresponding to a next hop of the network device.
  • the network device acquires an output interface corresponding to the target identifier information, and acquires a resource corresponding to the target resource index in the traffic scheduler preset by the network device, and schedules the resource.
  • the network device sends the data of the communication session to the next hop through the output interface and the resource until the next hop is the receiving device.
  • the network device may sequentially store the identification information and the resource index corresponding to all the network devices that the data transmission between the sending device and the receiving device passes through, according to the data, and forward the data.
  • the network device forwards the data, the corresponding target resource index and the target identification information are obtained from the data according to the offset corresponding to the network device, and the data is forwarded, thereby improving the flexibility and reliability of forwarding the data.
  • the resource The index includes a leaky bucket index or a queue index. That is, when the resource scheduling is performed, if the traffic flow rate is controlled by traffic policing, for example, the leaky bucket algorithm is used to implement traffic policing. At this time, the QoS resource corresponds to the leaky bucket resource, and the QoS resource index corresponds to the leaky bucket index.
  • the traffic flow rate is controlled by traffic shaping. For example, the traffic policing is implemented by using a queue algorithm.
  • the QoS resource corresponds to the queue resource
  • the QoS resource index corresponds to the queue index.
  • the type of the resource index in this embodiment may be set according to the type of the resource, enriching the type of the resource index, and realizing the diversity of the resource index.
  • the resource The demand information includes at least one of a bandwidth resource, a burst size, a maximum delay, a maximum delay jitter, and a packet loss rate.
  • the resource requirement information may also include other information, which is not limited herein.
  • the resource requirement information may include various information, avoiding the unity of the resource requirement information, and realizing the diversity of the resource requirement information.
  • a fourth aspect of the embodiments of the present application provides a resource reservation apparatus, which may include: a receiving unit, configured to receive a resource reservation request of a communication session sent by a sending device, where the resource reservation request may be that the sending device has a communication session.
  • the resource reservation request carries information such as resource requirement information and a quintuple.
  • an obtaining unit configured to acquire, according to the resource reservation request received by the receiving unit, the identifier information of the network device and the resource index of the network device, where the data transmission between the sending device and the receiving device is performed, and the identifier information may be The address of the network device or related information used to identify the network device.
  • a first sending unit configured to send the resource requirement information received by the receiving unit and the resource index obtained by the acquiring unit to the network device according to the identifier information acquired by the acquiring unit, where the resource requirement information and the resource index are used to indicate that the network device is a communication session
  • the resource is configured to enable the network device to configure a corresponding resource for the communication session according to the received resource requirement information and the resource index.
  • the second sending unit is configured to send the identifier information and the resource index acquired by the acquiring unit to the sending device.
  • the second sending unit may be configured to send the identifier information of the network device and the resource index of the network device to the sending device after receiving the response message fed back after the network device completes the resource configuration, or may be the resource demand information and the resource index.
  • the device After being sent to the network device, the device sends the identifier information of the network device and the resource index of the network device to the sending device.
  • the preset time can ensure that the network device has completed resource configuration, and can be flexibly set according to the actual situation. There is no limit.
  • the sending device sends the data of the communication session
  • the identifier information of the network device and the resource index of the network device may be sent to the receiving device along with the data, and the network device may schedule the corresponding resource pair data according to the identifier information and the resource index.
  • the controller manages resources of the entire network by using the receiving unit, the acquiring unit, the first sending unit, and the second sending unit, and no longer maintains the service flow state, the path message, and the resv message by the network device through the RSVP on the entire network.
  • the operation of forwarding and the like to serially apply for resources, but to apply for resources in parallel on the controller, without consuming the resources of the network device to establish a mapping relationship between the service flow and the resources, thereby saving the resource overhead of the network device.
  • the second sending unit is specifically configured to: after receiving, the network device completes the resource reservation based on the resource requirement information and the resource index
  • the response message sends the identification information and the resource index acquired by the obtaining unit to the sending device according to the response message.
  • the second sending unit sends the identifier information of the network device and the resource index of the network device to the sending device
  • the identifier information of the network device and the resource index of the network device may be sent to the sending device after receiving the response message. It is ensured that the identifier information and the resource index are sent to the sending device when the resource configuration is completed, and the second sending unit sends the identifier information and the resource index reliability to the sending device.
  • the resource reservation request received by the receiving unit is not only Carrying at least one resource requirement information of the bandwidth resource, the maximum delay, and the packet loss rate, and carrying the destination address corresponding to the receiving device, the source address corresponding to the sending device, the source port number, the destination port, and the protocol number, etc.
  • the acquiring unit is configured to obtain, according to the resource requirement information and the destination address carried in the resource reservation request received by the receiving unit, the identifier information of the network device that the data transmission of the communication session between the sending device and the receiving device passes, and Resource index. The convenience and reliability of the identification information and resource index acquisition of the network device are improved.
  • the acquiring unit includes: a first acquiring subunit, configured to be maintained by the access controller itself.
  • the resources of all the network devices acquire the idle resources of the network device through which the data transmission of the communication session between the sending device and the receiving device passes, and the idle resources may include an idle resource index and an idle bandwidth resource, etc., and the idle resource may satisfy the resource.
  • the index and resource requirement information correspond to the resource requirements.
  • a second acquiring subunit configured to acquire data of a communication session between the sending device and the receiving device according to the resource requirement information received by the receiving unit, the destination address received by the receiving unit, and the idle resource acquired by the first acquiring subunit
  • the identification information of the network device through which the transmission passes; the allocation subunit is configured to allocate a resource index for the communication session.
  • the second obtaining sub-unit is specifically configured to obtain information that meets resource requirements and objectives from the network.
  • the path of the address and the idle resource; the shortest path through which the data transmission between the transmitting device and the receiving device passes is obtained from the path; and the identification information is determined according to the shortest path. For example, when there is only one path that satisfies the resource requirement information, the destination address, and the idle resource, the path is the shortest path; when there are multiple paths satisfying the resource requirement information, the destination address, and the idle resource, the selected one is selected.
  • a shortest path is only one path that satisfies the resource requirement information, the destination address, and the idle resource.
  • the second obtaining sub-unit can run the CSPF algorithm to calculate the shortest path, and can also be obtained by running other algorithms, which is not limited herein.
  • the second acquiring subunit determines the corresponding network device on the shortest path, and obtains the identifier information of the network device.
  • the second obtaining sub-unit can obtain the identification information of the network device on the shortest path after the data transmission between the sending device and the receiving device is performed, so that the data transmission of the communication session passes through the network device less, and the information is improved. The efficiency of data transmission in a communication session.
  • the second sending unit is configured to send the identifier information and the resource index acquired by the obtaining unit to the identifier of the network device and the resource index.
  • the signaling packet carrying the identifier information and the resource index is sent to the sending device, and the type of the signaling packet is not limited herein. It is very convenient to implement, and improves the convenience of sending identification information and resource index.
  • the resource The index includes a leaky bucket index or a queue index. That is, when the resource scheduling is performed, traffic policing is used to control the traffic flow rate.
  • traffic policing is used to control the traffic flow rate.
  • the leaky bucket algorithm is used to implement traffic policing.
  • the QoS resource corresponds to the leaky bucket resource, and the QoS.
  • the resource index corresponds to the leaky bucket index.
  • the traffic flow rate is controlled by traffic shaping.
  • the traffic policing is implemented by using a queue algorithm.
  • the QoS resource corresponds to the queue resource
  • the QoS resource index corresponds to the queue index.
  • the type of the resource index in this embodiment may be set according to the type of the resource, enriching the type of the resource index, and realizing the diversity of the resource index.
  • the resource The requirement information includes at least one of a bandwidth resource, a burst size, a maximum delay, a maximum delay jitter, and a packet loss rate.
  • the resource requirement information may further include other information according to actual needs, which is not limited herein.
  • the resource requirement information may include various information, avoiding the unity of the resource requirement information, and realizing the diversity of the resource requirement information.
  • the fifth aspect of the embodiments of the present application provides a resource reservation apparatus, which may include: a first sending unit, configured to send a resource reservation request of a communication session to a controller, so that the controller acquires the sending device according to the resource reservation request; Identifying information of the network device through which the data transmission of the communication session is performed with the receiving device, and a resource index of the network device, and transmitting the resource requirement information and the resource index to the network device according to the identification information, so that the network device receives the The resource requirement information and the resource index configure corresponding resources for the communication session.
  • the resource reservation request may be sent by the sending device to the controller when the communication session has a QoS guaranteed communication requirement.
  • the resource reservation request may include information such as resource requirement information and a quintuple, and the resource requirement information may include a bandwidth resource, a maximum delay, and a packet loss rate, and the quintuple may include a destination address, a source address, and a source. Port number, destination port, protocol number, etc.
  • the receiving unit is configured to receive feedback information that is sent by the controller according to the resource reservation request sent by the first sending unit, where the feedback information carries the identifier information of the network device and the resource index of the network device that the data transmission of the communication session passes.
  • the identifier information may be an address of the network device or related information for identifying the network device, and the resource index may be a leaky bucket index or a queue index.
  • a second sending unit configured to add the identifier information and the resource index received by the receiving unit to the data of the communication session, and send the data carrying the identifier information and the resource index to the receiving device by using the network device, so that the network device can
  • the resources corresponding to the information and resource index scheduling forward the data.
  • the resource management of the entire network is implemented by the controller, and the network device no longer maintains the service flow state, the path message, and the resv message forwarding through the RSVP on the entire network to apply for resources serially, but concentrates on the controller.
  • the resources are applied in parallel, without consuming the resources of the network device to establish a mapping relationship between the service flow and the resource, thereby saving the resource overhead of the network device.
  • the identification information and the resource index of the network device are added to the data of the communication session, and the data is sent to the receiving device by the network device, so that the network device can be based on the identification information and the resource.
  • the resources corresponding to the index scheduling forward the data, which is very convenient to implement.
  • the data reservation device in order to facilitate the second sending unit to add the identification information and the resource index to the communication session when transmitting the data of the communication session
  • the data reservation device further includes: an obtaining unit, configured to acquire a session identifier of the communication session; and a storage unit, configured to receive, by the receiving unit, the identifier information, the resource index received by the receiving unit, and the acquiring unit,
  • the session identifier is stored in the association, and may be stored in the local device of the sending device, or may be stored in the server, which is not limited herein.
  • the second sending unit is configured to obtain the stored identification information and the resource index according to the session identifier acquired by the acquiring unit, add the identification information and the resource index to the data, and send the data to the receiving device by using the network device.
  • the storage unit may associate the identifier information, the resource index, and the session identifier, so as to facilitate subsequent use of the identifier information and the resource index, thereby improving the convenience of sending data.
  • the second sending unit sends the second sending unit to the receiving device by using the network device.
  • the data may be a data message or other types of data, and the types of the data include the Internet Protocol 6th Edition IPv6, the Internet Protocol 4th Edition IPv4, or the multi-protocol label switching MPLS. It can be understood that the type of the data may also include other types, which are not limited herein. The diversity of data types is achieved in this embodiment.
  • the second sending unit when the type of the data of the communication session is IPv6, the second sending unit sends the communication session.
  • the data may be added to the IPv6 header and sent to the receiving device via the network device.
  • it may be a field that extends the header of IPv6, and the identification information and the resource index are added to the extended field of IPv6.
  • the second sending unit may add the identification information and the resource index to the IPv4 header when transmitting the data of the communication session, and send the IPv4 to the receiving device through the network device.
  • the second sending unit may add the identification information and the resource index to the head of the MPLS when transmitting the data of the communication session, and send the MPLS to the receiving device by using the network device.
  • the network device In this embodiment, not only is it very convenient to implement, but also the flexibility of the transmitting device to transmit data is improved.
  • the sixth aspect of the embodiments of the present application provides a resource reservation apparatus, which may include: a first receiving unit, configured to receive resource requirement information and a resource index of a communication session sent by a controller, where the resource requirement information and the resource index may be The controller obtains, according to the resource reservation request of the communication session sent by the sending device, the identifier information of the network device that the data transmission of the communication session between the sending device and the receiving device passes, and the resource index of the network device. .
  • the resource reservation request may be sent to the controller when the communication session has a QoS-guaranteed communication requirement, and the resource reservation request may carry bandwidth resources, burst size, maximum delay, maximum delay jitter, and Resource demand information such as the packet loss rate, the destination address corresponding to the receiving device, the source address corresponding to the sending device, the source port number, the destination port, and the protocol number.
  • the configuration unit is configured to configure a resource for the communication session according to the resource requirement information and the resource index received by the first receiving unit, where the resource corresponds to the resource index, and the resource index may be a leaky bucket index or a queue index.
  • a second receiving unit configured to receive data of a communication session sent by the sending device, where the data carries a target resource index corresponding to the network device and target identifier information corresponding to a next hop of the network device, where the network device reserves resources The network device where the device is located, the target resource index is included in the resource index, and the target identifier information is included in the identifier information of the data transmission through the network device.
  • a forwarding unit configured to forward the data received by the second receiving unit according to the target resource index and the target identifier information received by the second receiving unit.
  • the forwarding unit may determine an output interface corresponding to the target identifier information, and obtain a resource corresponding to the target resource index, and then send the data to the next hop relative to the network device by using the output interface and the resource, until The next hop is the receiving device.
  • the resource of the entire network is managed by the controller, and the network device no longer maintains the service flow state, performs the path message, and forwards the resv message through the RSVP on the entire network to apply for resources serially.
  • the resources are collectively applied in parallel on the controller, without consuming the resources of the network device to establish a mapping relationship between the service flow and the resource, thereby saving the resource overhead of the network device.
  • the resource indexing device further includes: a feedback unit, configured to feed back a response message to the controller after the configuration unit completes the configuration of the resource. So that the controller determines, according to the response message, that the configuration unit has completed the configuration of the resource, so as to send the identification information of the network device and the resource index of the network device to the sending device.
  • the type of the response message can be flexibly set according to the actual needs, which is not limited herein.
  • the feedback unit feeds back a response message to the controller, so that the controller can send the identifier information of the network device and the resource index of the network device to the sending device when the resource configuration is completed.
  • the controller is sent to the sending device to send the identifier information and the resource index reliability.
  • the forwarding unit is configured according to the target resource index and the target identification information.
  • the forwarding unit is specifically configured to: obtain, from the first instruction section of the data received by the second receiving unit, a target resource index corresponding to the network device, and the next node with respect to the network device Obtaining the corresponding target identification information; obtaining an output interface corresponding to the target identification information; and deleting the target identification information after acquiring the output interface; acquiring the resource corresponding to the target resource index in the traffic scheduler preset by the network device, and The resource is scheduled, and the target resource index is deleted after the resource is obtained; the data of the communication session is sent to the next hop with respect to the network device through the output interface and the resource until the next hop is the receiving device.
  • the forwarding unit may sequentially store the identification information and the resource index corresponding to all the network devices that the data transmission between the sending device and the receiving device passes through, according to the data, and forward the data.
  • the forwarding unit forwards the data, the target identification information and the target resource index stored in the first instruction section are obtained, and after the target identification information and the target resource index are used, the target identification information and the target resource index are deleted, and when the next hop network device is transmitted, the next The one-hop network device also acquires the target identification information and the target resource index stored in the first instruction section, and deletes the target identification information and the target resource index after using the target identification, until the next hop is the receiving device. Thereby improving the efficiency and convenience of data transmission.
  • the forwarding unit is configured according to the target resource index and the target identification information.
  • the forwarding unit is specifically configured to: according to the offset of all network devices that the data transmission of the communication session between the sending device and the receiving device is performed by the network device where the forwarding unit is located, And acquiring, by the data received by the second receiving unit, a target resource index corresponding to the network device, and target identifier information corresponding to the next hop of the network device.
  • the forwarding unit may sequentially store the identification information and the resource index corresponding to all the network devices that the data transmission between the sending device and the receiving device passes through, and sequentially forward the data according to the data.
  • the corresponding target resource index and the target identification information may be obtained from the data according to the offset corresponding to the network device where the forwarding unit is located, and the data is forwarded, thereby improving flexibility and reliability of forwarding data.
  • the resource The index includes a leaky bucket index or a queue index. That is, when the resource scheduling is performed, if the traffic flow rate is controlled by traffic policing, for example, the leaky bucket algorithm is used to implement traffic policing. At this time, the QoS resource corresponds to the leaky bucket resource, and the QoS resource index corresponds to the leaky bucket index.
  • the traffic flow rate is controlled by traffic shaping. For example, the traffic policing is implemented by using a queue algorithm.
  • the QoS resource corresponds to the queue resource
  • the QoS resource index corresponds to the queue index.
  • the type of the resource index in this embodiment may be set according to the type of the resource, enriching the type of the resource index, and realizing the diversity of the resource index.
  • the resource The demand information includes at least one of a bandwidth resource, a burst size, a maximum delay, a maximum delay jitter, and a packet loss rate.
  • the resource requirement information may also include other information, which is not limited herein.
  • the resource requirement information may include various information, avoiding the unity of the resource requirement information, and realizing the diversity of the resource requirement information.
  • a seventh aspect of the embodiments of the present application provides a controller, including: a processor, a memory, a bus, an input device, and an output device; the memory stores program code; and the processor executes the program code in the memory as described above.
  • the resource reservation method according to any one of the first to seventh embodiments of the first aspect of the present application.
  • An eighth aspect of the embodiments of the present application provides a transmitting device, including: a processor, a memory, a bus, an input device, and an output device; the memory stores program code; and the processor executes the program code in the memory as described above.
  • a transmitting device including: a processor, a memory, a bus, an input device, and an output device; the memory stores program code; and the processor executes the program code in the memory as described above.
  • a ninth aspect of the embodiments of the present application provides a network device, including: a processor, a memory, a bus, an input device, and an output device; the memory stores program code; and the processor executes the program code in the memory as described above.
  • the resource reservation method according to any one of the first to fifth embodiments of the third aspect of the present application.
  • a tenth aspect of the present application provides a computer program product comprising instructions, which, when run on a computer, cause the computer to perform the first aspect of the first aspect of the present application, the first aspect of the first aspect of the present application.
  • the resource reservation method according to any one of the seventh to fourth embodiments.
  • the eleventh aspect of the present application provides a computer program product including instructions, which when executed on a computer, causes the computer to perform the first aspect of the second aspect of the present application, the first aspect of the second embodiment of the present application.
  • a resource reservation method according to any one of the third to third embodiments.
  • a twelfth aspect of the present application provides a computer program product comprising instructions, which, when run on a computer, cause the computer to perform the first aspect of the third aspect of the present application, A resource reservation method according to any one of the fifth to fourth embodiments.
  • a thirteenth aspect of the present application provides a computer readable storage medium, wherein the computer storage medium stores instructions, when executed on a computer, causing the computer to execute the first aspect of the embodiment of the present application as described above.
  • the resource reservation method according to any one of the first to seventh embodiments of the first aspect of the present application.
  • a fourteenth aspect of the embodiments of the present application provides a computer readable storage medium, wherein the computer storage medium stores instructions, when executed on a computer, causing the computer to execute the second aspect of the embodiment of the present application as described above.
  • the resource reservation method according to any one of the first to third embodiments of the second aspect of the present application.
  • a fifteenth aspect of the embodiments of the present application provides a computer readable storage medium, wherein the computer storage medium stores instructions, when executed on a computer, causing the computer to execute the third aspect of the embodiment of the present application as described above.
  • the resource reservation method according to any one of the first to fifth embodiments of the third aspect of the present application.
  • the embodiments of the present application have the following advantages:
  • the controller obtains, according to the resource reservation request of the communication session sent by the sending device, the identifier information of the network device and the resource index of the network device through which the data transmission of the communication session between the sending device and the receiving device passes. Then, the controller sends the resource index and the resource requirement information to the network device according to the identifier information, so that the network device configures resources for the communication session according to the resource index and the resource requirement information. And the controller sends the identifier information and the resource index to the sending device, so that when the sending device sends the data of the communication session, the identifier information and the resource index corresponding to the communication session may be added to the data, and the data is sent by the network device.
  • the receiving device is configured to forward the data according to the identification information and the resource index obtained from the data when the network device receives the data. Therefore, the resource of the entire network is managed by the controller, and the network device no longer maintains the service flow state, the path message, and the resv message forwarding through the RSVP on the entire network to apply for resources serially, but on the controller. Centrally requesting resources in parallel without consuming the resources of the network device to establish a mapping relationship between the service flow and the resources, thereby saving the resource overhead of the network device.
  • FIG. 1 is a topological view of a communication network architecture in the prior art
  • FIG. 2 is a schematic diagram of an embodiment of a resource reservation method in the prior art
  • FIG. 3 is a topological diagram of a communication network architecture in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of an embodiment of a resource reservation method according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of another embodiment of a resource reservation method according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another embodiment of a resource reservation method according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another embodiment of a resource reservation method according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an embodiment of a resource reservation apparatus according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another embodiment of a resource reservation apparatus according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of another embodiment of a resource reservation apparatus according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of an embodiment of a controller in an embodiment of the present application.
  • the embodiment of the present application provides a resource reservation method, where the controller can obtain the data transmission of the communication session between the sending device and the receiving device.
  • the identifier information and the resource index of the network device, and the resource index and the resource requirement information are sent to the network device according to the identifier information, so that the network device configures the resource according to the resource index and the resource requirement information, and sends the identifier information and the resource index to the sending device. So that the transmitting device adds the identification information and the resource index to the data of the communication session, and transmits the data to the receiving device through the network device.
  • the embodiments of the present application further provide related devices such as a resource reservation device, a controller, a sending device, a network device, a computer program product, and a computer storage medium.
  • the controller C the network devices R1 to R9, the transmitting device S, the receiving device Rc1, and the receiving device Rc2 are included.
  • 0 to 3 indicate the interface number of the network device
  • N1 to N15 indicate the link bandwidth
  • the controller manages the resources and network topology of the entire network QoS
  • the network device is no longer responsible for resource management.
  • the controller is deployed on a general-purpose computing system. Controller software implementation.
  • the network device may include a router, a computer or a switch, etc.
  • the sending device may include a terminal such as a mobile phone or a computer
  • the receiving device may include a terminal such as a mobile phone or a computer. Since the controller manages the resources of the entire network, it is not necessary to apply for resources serially through the network device on the entire network, but to apply for resources in parallel on the controller.
  • the controller may include multiple resource managers and protocol process components, etc., wherein the protocol process component is used to perform RSVP operations and manage the entire network.
  • All resources each resource manager corresponds to the network device, and is responsible for managing resources of the corresponding network device, that is, one network device corresponds to one resource manager, and one resource manager can manage all resource indexes corresponding to one network device.
  • the resource manager 1 corresponds to the network device 1
  • the resource manager 2 corresponds to the network device 2
  • the resource manager n corresponds to the network device n.
  • the sending device includes an application program and a protocol process component, etc., wherein the protocol process component in the sending device is used to perform an RSVP operation, and the application in the sending device is a sender of the service flow.
  • the receiving device includes an application program, a protocol process component, and the like, wherein the protocol process component in the receiving device is configured to perform an RSVP operation, and the application in the receiving device is a receiver of the service flow.
  • the network device includes a traffic scheduler, and the traffic scheduler in the network device is configured to allocate resources, and uses the resource index to obtain resources corresponding to the resource index for traffic scheduling. Compared with the prior art, the network device in the present application can cancel the traffic classifier, apply for the resource control component, the control plane component, and the like, thereby saving the overhead of the network device hardware resources.
  • the application corresponding to the service sends a resource requirement request to the protocol process component of the sending device itself, and the resource requirement application includes the bandwidth resource, Resource demand information such as burst, maximum delay, maximum delay jitter, or packet loss rate.
  • the protocol process component of the sending device constructs a resource reservation request and sends the resource reservation request to the controller.
  • the controller receives the resource reservation request from its own protocol process component, and the protocol process component on the controller obtains the information between the sending device and the receiving device according to the resources of each network device and the resource requirement information carried in the resource reservation request.
  • the network device through which the data transmission of the communication session passes, and the identification information of the network device is determined, and the network device may be one or more.
  • the protocol process component on the controller sends a resource index request to the resource manager corresponding to the network device, and the resource manager feeds back the determined resource index to the protocol process component.
  • the protocol process component on the controller sends a resource configuration message to the traffic scheduler on the corresponding network device, where the resource configuration message carries the resource index and the resource requirement information, and the traffic scheduler on the network device receives the resource.
  • the resource is configured for the service according to the resource index and the resource requirement information.
  • the traffic scheduler feeds back the response message to the protocol process component on the controller.
  • the protocol process component on the controller After receiving the response message, the protocol process component on the controller knows that the resource configuration is complete, and the corresponding network device identification information and The resource index is sent to the protocol process component on the sending device, and the protocol process component on the sending device stores the identifier information and the resource index, and the resource reservation is completed.
  • the protocol process component of the controller sends a request message to the traffic scheduler on the corresponding network device
  • the resource configuration is determined after the preset time is determined, and the identifier information and the resource index of the corresponding network device are sent to the sending. Protocol process component on the device.
  • the sending device sends the stored identification information and the resource index along with the data to the receiving device through the network device, as shown in FIG. 5 .
  • the network device can forward the data according to the identifier information and the resource index carried in the data.
  • FIG. 3 and the resource reservation method embodiment of FIG. 4 and FIG. 5 are merely examples.
  • the network architecture and the service scenario described in the embodiments of the present application are for a clearer description.
  • the technical solutions of the embodiments of the present application do not constitute a limitation of the technical solutions provided by the embodiments of the present application, and those skilled in the art may know that the technology provided by the embodiments of the present application is provided as the network architecture evolves and new service scenarios appear. The same applies to similar technical issues.
  • an embodiment of the resource reservation method in the embodiment of the present application includes:
  • the sending device sends a resource reservation request for the communication session to the controller.
  • the resource reservation request may be sent by the sending device to the controller when the communication session has a QoS-guaranteed communication requirement, or may be sent by the sending device to the controller when the communication session needs to send data, or the sending device is moving.
  • the sending device may send the device to the controller at a preset time, and may also be other sending modes, which is not limited herein.
  • the resource reservation request may carry at least one resource requirement information, such as a bandwidth resource, a maximum delay, and a packet loss rate, and may also carry a destination address corresponding to the receiving device, a source address corresponding to the sending device, and a source port number.
  • the quintuple of the destination port and the protocol number may carry other information in the resource reservation request, which is not limited herein.
  • the communication session may be a service, for example, a call service, a short message service, a voice service, a video service, or a payment service, and is not limited herein.
  • the controller obtains, according to the received resource reservation request, identifier information of the network device that passes through the data transmission between the sending device and the receiving device, and a resource index of the network device.
  • the controller may obtain, according to the information carried in the resource reservation request, the identifier information of the network device through which the data transmission between the sending device and the receiving device is performed, and Get the resource index of the network device.
  • the identification information may be an address of the network device or related information used to identify the network device.
  • the resource index is used to identify a corresponding resource and establish a mapping relationship with the resource.
  • the resource index may be a leaky bucket index or a queue index.
  • the controller sends the resource index and the resource requirement information to the network device according to the identifier information.
  • the controller may send the resource index of the network device and the resource requirement information of the network device to the corresponding network device according to the identifier information of the network device, so that the network device according to the received resource requirement
  • the information and resource index configures the corresponding resources for the communication session.
  • the resource requirement information is carried in the resource reservation request.
  • the resource requirement information may be at least one of a bandwidth resource, a maximum delay, a burst size, a maximum delay jitter, and a packet loss rate.
  • the controller when there is only one network device, the controller only needs to send the resource requirement information and the resource index corresponding to the network device to the network device; when there are multiple network devices, the controller needs to connect each network.
  • the resource requirement information and the resource index corresponding to the device are respectively sent to the corresponding network device.
  • the network device allocates resources for the communication session according to the received resource index and resource requirement information.
  • the network device After receiving the resource index and the resource requirement information sent by the controller, the network device configures a resource corresponding to the resource index and the resource requirement information for the communication session, where the resource corresponds to the resource index, and the resource can meet the resource requirement information. demand.
  • the controller sends the identifier information and the resource index to the sending device.
  • the controller After transmitting the resource requirement information and the resource index to the network device, the controller sends the identifier information of the network device and the resource index of the network device to the sending device. For example, the controller may send the identifier information of the network device and the resource index of the network device to the sending device when receiving the response message fed back after the network device completes the resource configuration, or may send the resource requirement information and the resource index to the resource index.
  • the preset time can ensure that the network device has completed resource configuration, and can be flexibly set according to the actual situation. limited. The timing at which the controller sends the identifier information of the network device and the resource index of the network device to the sending device can be flexibly set according to the actual situation, which is not limited herein.
  • the sending device When the sending device needs to send data of the communication session, the sending device adds the identifier information and the resource index to the data, and sends the data that carries the identifier information and the resource index to the network device.
  • the sending device may add the identifier information of the network device and the resource index of the network device to the data, and then send the data carrying the identifier information and the resource index to the network device, and then the network device The data is sent to the receiving device.
  • the sending device may The session identifier of the communication session is obtained, and the identifier information, the resource index, and the session identifier are stored in association with each other, and may be stored in the local device of the sending device, or may be stored in the server, which is not limited herein.
  • the sending device first obtains the stored identification information and the resource index corresponding to the session identifier, and then adds the obtained stored identification information and resource index to the data, and the data is passed through the network device. Send to the receiving device.
  • the network device obtains the identifier information and the resource index from the data.
  • the network device may obtain the identifier information and the resource index, and the network device may obtain the identifier information and the resource index from the data, and schedule the corresponding resource according to the identifier information and the resource index.
  • the data is forwarded to the receiving device.
  • the network device forwards data of the communication session to the receiving device according to the identifier information and the resource index.
  • the network device receives the data of the communication session sent by the sending device, where the data carries the target resource index corresponding to the network device and the target identifier information corresponding to the next hop of the network device, where the target resource index is included in the resource index.
  • the target identification information is included in the identification information of the data transmission through the network device.
  • the network device forwards the data according to the target resource index and the target identification information. For example, the network device may determine an output interface corresponding to the target identifier information, and obtain a resource corresponding to the target resource index, and then send the data to the next hop with respect to the network device by using the output interface and the resource, until The next hop is the receiving device.
  • the controller of the embodiment of the present application obtains the identifier information of the network device and the resource of the network device after the data transmission of the communication session between the sending device and the receiving device is performed according to the resource reservation request of the communication session sent by the sending device. index. Then, the controller sends the resource index and the resource requirement information to the network device according to the identifier information, so that the network device configures resources for the communication session according to the resource index and the resource requirement information. And the controller sends the identifier information and the resource index to the sending device, so that when the sending device sends the data of the communication session, the identifier information and the resource index corresponding to the communication session may be added to the data, and the data is sent by the network device.
  • the receiving device is configured to forward the data according to the identification information and the resource index obtained from the data when the network device receives the data. Therefore, the resource of the entire network is managed by the controller, and the network device no longer maintains the service flow state, the path message, and the resv message forwarding through the RSVP on the entire network to apply for resources serially, but on the controller. Centrally requesting resources in parallel without consuming the resources of the network device to establish a mapping relationship between the service flow and the resources, thereby saving the resource overhead of the network device.
  • the network device in the embodiment of the present application may further send a response message to the controller after the resource configuration is completed, and the sending device may further perform the specific process of associating the identifier information and the resource index with the session identifier of the communication session.
  • the sending device may further perform the specific process of associating the identifier information and the resource index with the session identifier of the communication session.
  • FIG. 7 another embodiment of a resource reservation method in an embodiment of the present application includes:
  • the sending device sends a resource reservation request for the communication session to the controller.
  • the sending device may send a resource reservation request to the controller when the communication session has a QoS-guaranteed communication requirement, or the sending device may send a resource reservation request to the controller when the communication session needs to send data, or may be the sending device.
  • the resource reservation request is sent to the controller after the connection is established with the new network device.
  • the sending device may send a resource reservation request to the controller every preset time, or may be another sending mode. This is not a limitation.
  • the application when the upper layer application of the transmitting device (ie, the application corresponding to the communication session) has a communication requirement requiring QoS guarantee, the application sends a resource requirement request to the protocol process component of the underlying software of the sending device itself.
  • the resource requirement application includes resource requirement information such as a bandwidth resource, a burst, a maximum delay, a maximum delay jitter, and a packet loss rate, and may also include a source destination address, a source destination transport layer port number, and a transport layer protocol number.
  • the protocol process component of the sending device After receiving the resource requirement request, the protocol process component of the sending device underlying software requests to construct a resource reservation request according to the resource requirement, and sends the resource reservation request to the controller.
  • the resource reservation request may carry at least one resource requirement information, such as a bandwidth resource, a burst size, a maximum delay, a maximum delay jitter, and a packet loss rate, and may also carry a destination address and a sending device corresponding to the receiving device.
  • the quintuple of the source address, the source port number, the destination port, and the protocol number may further carry other information, and the format and content order of the resource reservation request are not limited herein.
  • the controller acquires, according to the received resource reservation request, identifier information of the network device that passes through the data transmission between the sending device and the receiving device, and a resource index of the network device.
  • the controller may obtain, according to the information carried in the resource reservation request, the identifier information of the network device through which the data transmission between the sending device and the receiving device is performed, and Get the resource index of the network device.
  • the identification information may be an address of the network device or related information used to identify the network device.
  • the resource index is used to identify a certain resource and establish a mapping relationship with the resource.
  • the resource index includes a leaky bucket index or a queue index, that is, when the resource scheduling is performed, traffic flow rate is controlled by traffic policing.
  • the leaky bucket algorithm is used to implement traffic policing.
  • the QoS resource corresponds to the leaky bucket resource
  • the QoS resource index corresponds to the leaky bucket index.
  • the traffic flow rate is controlled by traffic shaping.
  • the traffic policing is implemented by using a queue algorithm.
  • the QoS resource corresponds to the queue resource
  • the QoS resource index corresponds to the queue index.
  • each network device has its corresponding resource index, and the resource index range of each network device may be the same or may be inconsistent. Therefore, the remaining resource indexes of each network device may be different, and the obtained sending device and the obtained device are The resource index of the network device through which the data transmission of the communication session between the receiving devices passes may be different, and each resource index corresponds to the network device. It can be understood that, in an actual application, the resource index of the network device through which the data transmission of the communication session between the sending device and the receiving device is obtained by the controller may be, or the resource index corresponding to the device for each network device is Consistently, the consistent resource index may also be mapped to a target resource index corresponding to each network device. After the resource index of the network device is determined, the target resource index corresponding to each network device may be determined, which is not limited herein.
  • the controller receives the resource reservation request by its own protocol process component, and the protocol process component on the controller obtains according to the resources of each network device and the resource requirement information carried in the resource reservation request.
  • the network device through which the data transmission of the communication session is performed between the sending device and the receiving device, and the identification information of the network device is determined, and the network device may be one or more.
  • the protocol process component on the controller sends a resource index request to the resource manager corresponding to the network device, and the resource manager feeds back the determined resource index to the protocol process component.
  • the controller obtains the identifier information of the network device and the resource index of the network device, and may obtain the resource requirement information and the destination address carried in the resource reservation request. Specifically, the controller maintains the resources of all the network devices in the entire network.
  • the controller can obtain the communication between the sending device and the receiving device by accessing the resources of all the network devices maintained by the controller.
  • the idle resource of the network device through which the data transmission of the session passes, the idle resource may include an idle resource index and an idle bandwidth resource, etc., and the idle resource may satisfy the resource index and the resource requirement information corresponding to the resource. Then, the controller acquires identification information of the network device through which the data transmission of the communication session between the sending device and the receiving device passes according to the resource requirement information, the destination address, and the idle resource, and the controller allocates a resource index for the communication session.
  • the controller may obtain the path that satisfies the resource requirement information, the destination address, and the idle resource from the entire network maintained by the controller when acquiring the identifier information of the network device through which the data transmission of the communication session is performed between the sending device and the receiving device. Then, the shortest path through which data transmission between the transmitting device and the receiving device passes is obtained from the path. For example, when there is only one path that satisfies the resource requirement information, the destination address, and the idle resource, the path is the shortest path; when there are multiple paths satisfying the resource requirement information, the destination address, and the idle resource, the selected one is selected. A shortest path.
  • the controller can run the CSPF algorithm to calculate the shortest path, or run other algorithms to obtain it. After the controller obtains the shortest path, the corresponding network device on the shortest path is determined, and the identifier information of the network device is obtained.
  • the controller runs the CSPF algorithm through the protocol process component, performs calculation according to the information carried in the resource reservation request, and obtains a path sequence, and then the protocol process component sends the resource manager corresponding to each network device on the path sequence.
  • the resource index application the resource manager returns the resource index determined according to the application to the protocol process component.
  • the controller may fail to obtain the resource index and the identifier information. If the calculation fails, the controller returns a request failure message to the sending device. If the calculation succeeds, the network device on the traversal path applies for the resource index to obtain the resource index. The resource corresponding to the resource index can then be determined.
  • the failure of the controller to obtain the resource index and the identification information includes:
  • One possibility is that, assuming that the network device has a total of 10 resource indexes, the network device has used a large number of resource indexes, and there may be bandwidth resources remaining, but the resource index However, as shown in Table 1, the bandwidth resources remain in the case where the resource index is exhausted.
  • the network device has used a large amount of bandwidth resources, and there may be cases where the resource index remains, but the bandwidth resources are exhausted, as shown in Table 2. As shown, the resource index remains when the bandwidth resource is exhausted.
  • the network device needs to have sufficient bandwidth resources and at least one free resource index at the same time, and the CSPF operation can successfully return the path sequence.
  • a resource index can be applied.
  • the request failure message may be sent to the sending device, so that the sending device learns that the resource reservation of the communication session fails; or when the controller acquires the identifier information of the network device.
  • the resource index fails, the device fails to send a request failure message to the sending device.
  • the sending device does not receive the identifier information and the resource index of the network device sent by the controller within the preset time period, it determines that the resource reservation of the communication session fails.
  • the controller sends the resource index and the resource requirement information to the network device according to the identifier information.
  • the controller may send the resource index of the network device and the resource requirement information of the network device to the corresponding network device according to the identifier information of the network device, so that the network device according to the received resource requirement
  • the information and resource index configures the corresponding resources for the communication session.
  • the resource requirement information is carried in the resource reservation request.
  • the resource requirement information may be at least one of a bandwidth resource, a maximum delay, a burst size, a maximum delay jitter, and a packet loss rate.
  • the controller when there is only one network device on the path sequence, the controller only needs to send the resource requirement information and the resource index corresponding to the network device to the network device; when there are multiple network devices on the path sequence, the control The device needs to send the resource requirement information and the resource index corresponding to each network device to the corresponding network device.
  • the controller sends a request message to the traffic scheduler on the corresponding network device on the path sequence through the protocol process component, where the request message carries the resource index and the resource requirement information.
  • the resource configuration message may be constructed according to the resource index and the resource requirement information, and then the resource configuration message carrying the resource index and the resource requirement information is sent to the network device. So that the network device configures resources for the communication session according to the resource configuration message.
  • the type of the resource configuration message can be flexibly configured according to actual needs, which is not limited herein.
  • the network device allocates resources for the communication session according to the received resource index and resource requirement information.
  • the network device After receiving the resource index and the resource requirement information sent by the controller, the network device configures a resource corresponding to the resource index and the resource requirement information for the communication session, where the resource corresponds to the resource index, and the resource can meet the resource requirement information. demand. As described with reference to FIG. 4, after receiving the request message, the traffic scheduler on the network device allocates resources for the communication session according to the resource index and the resource requirement information.
  • the network device After completing the configuration of the resource, the network device feeds back a response message to the controller.
  • the controller After transmitting the resource requirement information and the resource index to the network device, the controller sends the identifier information of the network device and the resource index of the network device to the sending device.
  • the network device allocates resources for the communication session according to the resource requirement information and the resource index sent by the controller. After completing the configuration of the resource, the network device feeds back a response message to the controller. So that the controller determines, according to the response message, that the network device has completed the configuration of the resource, so as to send the identification information of the network device and the resource index of the network device to the sending device. For example, after the resource configuration is completed, the traffic scheduler on the network device feeds back a response message to the protocol process component on the controller.
  • the type of the response message can be flexibly set according to the actual needs, which is not limited herein.
  • the controller adds the identifier information and the resource index to the signaling packet.
  • the controller sends the signaling packet carrying the identifier information and the resource index to the sending device.
  • the controller After receiving the response message sent by the network device, the controller sends the identifier information of the network device and the resource index of the network device to the sending device. For example, the controller may carry the identifier information of the network device and the resource index of the network device.
  • the signaling packet is sent to the sending device, and the type of the signaling packet is not limited herein.
  • the protocol process component on the controller after receiving the response message, learns that the resource configuration is complete, and sends the identifier information and the resource index of the corresponding network device to the protocol process component on the sending device.
  • the protocol process component on the sending device stores the identification information and the resource index, and the resource reservation is completed. It can be understood that after the protocol process component of the controller sends a request message to the traffic scheduler on the corresponding network device, the resource configuration is determined after the preset time is determined, and the identifier information and the resource index of the corresponding network device are sent. Give the protocol process component on the sending device.
  • the sending device associates the identifier information and the resource index with the session identifier of the communication session.
  • the identification information and the resource index are added together to the data of the communication session, and the sending device can obtain the session of the communication session after receiving the identification information and the resource index sent by the controller.
  • the identifier is then stored in association with the session identifier, and the resource index is stored in the local device of the sending device, and may be stored in the server.
  • the sending device first obtains the stored identification information and the resource index corresponding to the session identifier, and then adds the obtained stored identification information and resource index to the data, and the data is passed through the network device. Send to the receiving device.
  • the sending device When the sending device needs to send data of the communication session, the sending device adds the identifier information and the resource index to the data, and sends the data that carries the identifier information and the resource index to the network device.
  • the sending device may first detect whether the communication session stores the identifier information of the corresponding network device and the resource index of the network device. If the storage is present, the identifier information of the stored network device and the resource index of the network device are added to the data, and then the data carrying the identification information and the resource index is sent to the network device, and then the network device sends the data to the network device. Receive device, as shown in Figure 5. The sending device may sequentially add the identification information and the resource index corresponding to all the network devices through which the data transmission of the communication session between the sending device and the receiving device passes, to the data of the communication session. If there is no storage, the transmitting device directly transmits the data of the communication session to the receiving device through the network device.
  • the data of the communication session sent by the sending device to the receiving device through the network device may be a data packet or other types of data, and the type of the data may include IPv6, IPv4, or MPLS. It can be understood that the type of the data may also include other types, which are not limited herein.
  • the sending device may add the identification information and the resource index to the IPv6 header when transmitting the data of the communication session, and send the IPv6 to the receiving device through the network device. For example, it may be a field that extends the header of IPv6, and the identification information and the resource index are added to the extended field of IPv6.
  • the sending device may add the identification information and the resource index to the IPv4 header when transmitting the data of the communication session, and send the IPv4 to the receiving device through the network device. For example, it may be a field that extends the header of IPv4, and the identification information and the resource index are added to the extended field of IPv4.
  • the sending device may add the identification information and the resource index to the head of the MPLS when transmitting the data of the communication session, and send the MPLS to the receiving device through the network device. For example, it may be a field that extends the header of the MPLS, and the identification information and the resource index are added to the extension field of the MPLS.
  • the IPv6 routing header is used as an example.
  • the transmitting device constructs an IPv6 routing header of type 4 when sending data of the communication session.
  • Each ring segment segment is filled with the identification information and resource index of each network device, as shown in Table 3.
  • the sending device sends the routing header to the receiving device through the network device.
  • the QoS header field is extended in each segment to carry the QoS resource index.
  • Address[1] to Address[n] are identification information of network devices
  • QoS header[1] to QoS header[n] are resource indexes of each network device.
  • the network device obtains the identifier information and the resource index from the data.
  • the network device may obtain the identifier information and the resource index, and the network device may obtain the identifier information and the resource index from the data, and schedule the corresponding resource according to the identifier information and the resource index.
  • the data is forwarded to the receiving device. At this time, the network device no longer needs to obtain the identification information and the resource index through the traffic classifier.
  • the network device forwards data of the communication session to the receiving device according to the identifier information and the resource index.
  • the network device may be one or more network devices, and the network device receives the data of the communication session sent by the sending device, where the data carries the corresponding device of the network device. a target resource index and a target identifier information corresponding to a next hop of the network device, where the target resource index includes a resource index of the network device through which the data transmission of the communication session is performed between the sending device and the receiving device, and the target identifier
  • the information is contained in the identification information of the data transmission through the network device.
  • the network device forwards the data according to the target resource index and the target identification information.
  • the network device In the process of forwarding, by the network device, the data of the communication session according to the target resource index and the target identification information, the network device first obtains the target resource index corresponding to the network device from the first instruction section of the data, and is lower than the network device. One-hop corresponding target identification information. The network device then obtains an output interface corresponding to the target identification information, and deletes the target identification information after acquiring the output interface. The network device acquires the resource corresponding to the target resource index in the preset traffic scheduler, and schedules the resource, and deletes the target resource index after acquiring the resource. The network device transmits data of the communication session to the next hop with respect to the network device through the output interface and the resource until the next hop is the receiving device.
  • the network device may forward the data according to the identifier information and the resource index corresponding to all network devices that the data transmission of the communication session between the sending device and the receiving device in the data is sequentially stored.
  • the network device forwards data the target identification information and the target resource index stored in the first instruction section are obtained.
  • the network device pops up the outermost segment in the routing header and extracts the target in the QoS header.
  • the identifier information and the target resource index, and the traffic scheduler of the network device addresses the corresponding resource according to the destination resource index, and performs scheduling.
  • the next hop network device After the network device uses the target identifier information and the target resource index to delete the target identifier, the next hop network device obtains the target identifier information and the target resource index stored in the first instruction section, and After using the target identification information and the target resource index, delete it until the next hop is the receiving device.
  • the network device in the process of forwarding, by the network device, the data of the communication session according to the target resource index and the target identification information, the network device firstly uses all the network devices that the data transmission through the communication session between the sending device and the receiving device passes.
  • Corresponding offset obtaining a target resource index corresponding to the network device from the data of the communication session, and target identifier information corresponding to the next hop of the network device.
  • the offset may represent the order of the various network devices through which the data transmission of the communication session between the transmitting device and the receiving device passes.
  • the network device acquires an output interface corresponding to the target identifier information, and acquires a resource corresponding to the target resource index in the traffic scheduler preset by the network device, and schedules the resource.
  • the network device sends the data of the communication session to the next hop through the output interface and the resource until the next hop is the receiving device, that is, the last of all the network devices through which the data transmission of the communication session between the sending device and the receiving device passes.
  • the destination identifier information obtained by the last network device is the destination address corresponding to the receiving device.
  • the network device can control the traffic flow rate through traffic policing when performing resource scheduling.
  • the traffic policing is a QoS technology for controlling the traffic rate: first setting a target traffic rate, when the network device forwards When the traffic rate of the data is less than or equal to the target traffic rate, the traffic passes through; when the traffic rate of the network device forwarding data is greater than the target traffic rate, the traffic exceeding the target traffic rate portion is discarded.
  • the traffic policing can be implemented by using a leaky bucket algorithm.
  • the QoS resource corresponds to a leaky bucket resource
  • the QoS resource index corresponds to a leaky bucket index.
  • the traffic policing algorithm is implemented by using the leaky bucket algorithm: first, set a leaky bucket counter bucket (unit byte), configure an upper threshold threshold (unit byte), and configure an accumulation rate rate (in bytes per second).
  • Bucket (bucket+rate>threshold)? Threshold:bucket+rate;
  • Traffic policing through the leaky bucket algorithm does not increase the delay and improves the efficiency of data transmission.
  • the traffic flow rate can also be controlled by traffic shaping.
  • the traffic shaping is also a QoS technology for controlling the traffic rate: first, the traffic is received by using a buffer, and Constant rate output flow.
  • traffic shaping is implemented by using a queue: the input data is queued first, and the data queued in the queue is dequeued according to the fixed configured traffic rate. After the data in the queue is full, the data is not allowed to enter the queue. If the data of the queue is not full, you can use a certain policy (for example, RED, CoDel, etc.) to actively discard the traffic corresponding to the data entered after the queue is full.
  • the traffic shaping is implemented through the queue, the resource of the QoS corresponds to the queue resource, and the resource index of the QoS corresponds to the queue index.
  • the ability to implement traffic shaping through queues can withstand bursts.
  • a centralized resource reservation mechanism and a context-free forwarding mechanism are implemented, and the resource reservation application is all completed on the controller, and the CSPF algorithm can be used to determine whether the resource can be successfully applied at one time, thereby avoiding the existing one.
  • RSVP first applies for re-rollback. And the network device obtains the target resource index and the target identifier information directly in the data header, thereby avoiding the use of the traffic classifier, so that the network device does not have any control plane context, and does not need to consume resources occupied by the context of the network device.
  • the resource reservation method in this application is described in detail in conjunction with a specific application scenario.
  • the network devices R1 to R9, the transmitting device S, the receiving device Rc1, the receiving device Rc2, and the controller C are shown in FIG.
  • the numbers 0 to 3 at both ends of the link in FIG. 3 represent the interface numbers of the network devices
  • the numbers N1 to N15 on the links represent the bandwidth resources of the link (the unit is Mbps).
  • the IP address of the interface of the network device R1 to R9, the IP address of the sending device, and the receiving device are as shown in Table 4.
  • the IP address mentioned here corresponds to the aforementioned identification information, that is, the aforementioned identification information may be IP. address.
  • the sending device S sends a communication bandwidth resource of 30 Mbps and a maximum delay of 100 ms to the receiving device Rc1 through the network device, and the quintuple is (the source IP address is FFF0::2, and the destination IP address is FFF9::2, the source port number is 80, the destination port is 80, and the protocol number is 6).
  • the bandwidth resources of each link N1 to N15 in Figure 3 are 50 Mbps, and the resource index of each network device is 0. 100.
  • the sending device S sends a resource reservation request to the controller C, where the resource reservation request carries the destination address corresponding to the receiving device Rc1 as FFF9::2, and the resource requirement of the QoS includes the bandwidth resource is 30 Mbps, and the time delay request is 100 ms.
  • the resource reservation request can also carry a five-tuple (FFF0::2, FFF9::2, 80, 80, 6).
  • the controller C After receiving the resource reservation request, the controller C performs the CSPF operation. At this time, since the bandwidth resource of each link is 50 Mbps, which is greater than 30 Mbps in the resource requirement, there is no link to be excluded, so that the shortest is obtained.
  • the path is R1(2) ⁇ R5(2) ⁇ R6(2) ⁇ R4(2), that is, the network device through which the data transmission between the transmitting device S and the receiving device Rc1 is performed is the network device R1 ⁇ Network device R5 ⁇ network device R6 ⁇ network device R4, the output interface number of each network device is 2, according to Table 1, the IP addresses corresponding to network devices R1, R5, R6, and R4 are FFF2::1, FFFB ::1, FFF8::2, FFF9::1.
  • the controller C traverses the resource of the network device to obtain the corresponding resource index.
  • the resource index of each network device is not exhausted, and the resource index list is obtained (10, 100, 20, 100), that is, the resource index corresponding to the network device R1 is 10, the resource index corresponding to the network device R5 is 100, and the resource index corresponding to the network device R6 is 20, and the resource index corresponding to the network device R4 is obtained. 100.
  • the controller C After obtaining the IP address of the network device and the corresponding resource index, the controller C sends a resource configuration message carrying the resource index, the bandwidth resource is 30 Mbps, the delay request is 100 ms, and the like, to the network devices R1, R5, R6, and R4, respectively. .
  • the network device R1, R5, R6, and R4 respectively configure corresponding resources for the communication session according to the received resource configuration message, that is, the network device R1 reserves the resource index for the communication session as 10, and the bandwidth resource is 30 Mbps and the delay is 100 ms.
  • the resource, the network device R5 reserves a resource index of 100 for the communication session, and the bandwidth resource is 30 Mbps and the time delay is 100 ms.
  • the network device R6 reserves the resource index for the communication session as 20, and the bandwidth resource is 30 Mbps and the delay is 100 ms.
  • the resource, the network device R4 reserves a resource index of 100 for the communication session, and the bandwidth resource is 30 Mbps and the resource is delayed to 100 ms.
  • the network devices R1, R5, R6, and R4 feed back a response message to the controller C to notify the controller C that the resource configuration is completed.
  • the controller C After receiving the response message of the network device R1, R5, R6, and R4, the controller C sends the obtained IP address and resource index of the network device to the sending device S, because the sending device S accesses the network through the network device R1. Therefore, the controller C does not need to send the IP address of the network device R1 to the sending device S, but needs to send the network device R5, R6, R4, the IP address of the Rc1 of the receiving device, and the obtained resource index to the sending device S. .
  • the sending device S stores the IP address and the resource index of the received network device in association with the session identifier of the communication session. For example, the sending device S sets the IP address of the network device, the resource index of the network device, and (FFF0). ::2, FFF9::2, 80, 80, 6)
  • the instruction string forming the mapping relationship is stored locally, and the instruction string may be a data transmission station in which communication sessions between the transmitting device S and the receiving device Rc1 are sequentially performed in order.
  • the sending device S acquires the header of the instruction string insertion data, and sends the data to the network device along with the data. .
  • Table 5 The obtained IP address and resource index of each network device are as shown in Table 5 below:
  • the sending device S first sends the data of the command string carrying the IP address and the resource index to the network device R5 through the network device R1.
  • the network device R1 After receiving the data of the communication session of the sending device, the network device R1 checks that the data carries the command string. At this time, the network device R1 pops up the first instruction section, and obtains the next hop address as FFFB::1. Finding the routing table and obtaining the output interface is 2. The first instruction section is popped up and will not exist in the header of the data (for example, deleted), and the obtained next hop address is the IP address corresponding to the network device R5. . The network device R1 sends the data to the downlink card of the interface 2 through the switching network inside the network device R1, and the data is acquired by the index 10 in the scheduler of the downlink card to be sent to the next hop, that is, sent to the network device. R5.
  • the network device R5 pops up the first instruction section, obtains the next hop address as FFF8::1, finds the routing table and obtains the output interface as 2, and sends the data to the downlink card of the interface 2 through the switching network.
  • the data is acquired by the index 100 in the scheduler of the downlink card, and is scheduled to be sent to the next hop, that is, sent to the network device R6.
  • the network device R6 pops up the first instruction section, and obtains the next hop address as FFF9::1, finds the routing table and obtains the output interface as 2, and sends the data to the downlink card of the interface 2 through the switching network.
  • the data is acquired by the index 20 in the scheduler of the downlink card, and is scheduled to be sent to the next hop, that is, sent to the network device R4.
  • the network device R4 pops up the first instruction section, obtains the next hop address as FFF9::2, finds the routing table and obtains the output interface as 2, and sends the data to the downlink card of the interface 2 through the switching network.
  • the data is acquired by the index 100 in the scheduler of the downlink card, and is scheduled to be sent to the next hop, that is, sent to the receiving device Rc1.
  • the receiving device Rc1 receives the data of the communication session, and completes the process of performing data forwarding through the reserved resources.
  • an embodiment of the resource reservation device in the embodiment of the present application includes:
  • the receiving unit 801 is configured to receive a resource reservation request of the communication session sent by the sending device, where the resource reservation request carries resource requirement information;
  • the obtaining unit 802 is configured to acquire, according to the resource reservation request received by the receiving unit 801, the identifier information of the network device and the resource index of the network device, where the data transmission between the sending device and the receiving device is performed;
  • the first sending unit 803 is configured to send the resource requirement information received by the receiving unit 801 and the resource index obtained by the obtaining unit 802 according to the identifier information acquired by the obtaining unit 802, where the resource requirement information and the resource index are used to indicate the network.
  • the device configures resources for the communication session;
  • the second sending unit 804 is configured to send the identifier information and the resource index acquired by the obtaining unit 802 to the sending device.
  • each unit in the resource reservation device is similar to the process flow described in the foregoing embodiment shown in FIG. 3 to FIG. 6 , and details are not described herein again.
  • the second sending unit 804 is specifically configured to: receive, by the network device, a response message that is backed up after the resource reservation is completed according to the resource requirement information and the resource index, and send the obtaining unit 802 to the sending device according to the response message. Identification information and resource index to.
  • the resource reservation request further carries a destination address corresponding to the receiving device
  • the obtaining unit 802 is specifically configured to acquire the identifier information and the resource according to the resource requirement information and the destination address received by the receiving unit 801. index.
  • the obtaining unit 802 includes: a first acquiring subunit, configured to acquire an idle resource of the network device by accessing resources of all network devices maintained by the controller itself; and a second acquiring subunit, configured to: The identifier information is obtained according to the resource requirement information received by the receiving unit 801, the destination address received by the receiving unit 801, and the idle resource acquired by the first acquiring subunit, and the allocation subunit is configured to allocate a resource index for the communication session.
  • the second obtaining sub-unit is specifically configured to: obtain a path that satisfies the resource requirement information, the destination address, and the idle resource from the network; and obtain the data transmission between the sending device and the receiving device from the path.
  • the shortest path passed; the identification information is determined according to the shortest path.
  • the second sending unit 804 is specifically configured to: add the identifier information and the resource index acquired by the obtaining unit 802 to the signaling packet, and send the identifier information and the resource index to the sending device. Signaling message.
  • the resource index includes a leaky bucket index or a queue index.
  • the resource requirement information includes at least one of a bandwidth resource, a burst size, a maximum delay, a maximum delay jitter, and a packet loss ratio.
  • each unit in the resource reservation apparatus is similar to the method flow described in the foregoing embodiments shown in FIG. 3 to FIG. 7 , and details are not described herein again. .
  • another embodiment of the resource reservation apparatus in the embodiment of the present application includes:
  • the first sending unit 901 is configured to send a resource reservation request of the communication session to the controller;
  • the receiving unit 902 is configured to receive feedback information that is sent by the controller according to the resource reservation request sent by the first sending unit 901, where the feedback information carries the identifier information of the network device and the resource index of the network device that the data transmission of the communication session passes through. ;
  • the second sending unit 903 is configured to add the identifier information and the resource index received by the receiving unit 902 to the data of the communication session, and send the data to the receiving device by using the network device.
  • the resource reservation apparatus further includes: an obtaining unit, configured to acquire a session identifier of the communication session; and a storage unit, configured to receive the identifier information received by the receiving unit 902, and received by the receiving unit 902.
  • the resource index is associated with the session identifier obtained by the obtaining unit
  • the second sending unit 903 is configured to obtain the stored identifier information and the resource index according to the session identifier acquired by the acquiring unit, and add the identifier information and the resource index to the data.
  • the types of data include the Internet Protocol Sixth Edition IPv6, the Internet Protocol Fourth Edition IPv4, or the Multi-Protocol Label Switching MPLS.
  • the second sending unit 903 is specifically configured to add the identifier information and the resource index to the IPv6, IPv4, or MPLS header, and send the IPv6, IPv4, or MPLS to the receiving device by using the network device.
  • another embodiment of the resource reservation apparatus in the embodiment of the present application includes:
  • the first receiving unit 1001 is configured to receive resource requirement information and a resource index of the communication session sent by the controller;
  • the configuration unit 1002 is configured to configure a resource for the communication session according to the resource requirement information and the resource index received by the first receiving unit 1001, where the resource corresponds to the resource index;
  • the second receiving unit 1003 is configured to receive data of a communication session sent by the sending device, where the data carries a target resource index corresponding to the network device and target identifier information corresponding to a next hop of the network device, where the target resource index is included in the resource. Index, the target identification information is included in the identification information of the data transmission through the network device;
  • the forwarding unit 1004 is configured to forward the data received by the second receiving unit 1003 according to the target resource index and the target identification information received by the second receiving unit 1003.
  • the resource reservation apparatus further includes: a feedback unit, configured to feed back a response message to the controller after the configuration unit 1002 completes the configuration of the resource.
  • the forwarding unit 1004 is specifically configured to: obtain, from the first instruction section of the data received by the second receiving unit 1003, a target resource index corresponding to the network device, and the network device Target identifier information corresponding to the next hop; obtaining an output interface corresponding to the target identifier information; deleting the target identifier information; acquiring a resource corresponding to the target resource index; deleting the target resource index; and passing the data through the output interface and the resource to the network device The next hop is sent until the next hop is the receiving device.
  • the forwarding unit 1004 is specifically configured to: obtain, according to the offset corresponding to the network device, the target resource index corresponding to the network device from the data received by the second receiving unit 1003, and Obtaining target identifier information corresponding to the next hop of the network device; acquiring an output interface corresponding to the target identifier information; acquiring a resource corresponding to the target resource index; and sending the data to the next hop with respect to the network device through the output interface and the resource, until The next hop is the receiving device.
  • the resource index includes a leaky bucket index or a queue index.
  • the resource requirement information includes at least one of a bandwidth resource, a burst size, a maximum delay, a maximum delay jitter, and a packet loss ratio.
  • the resource reservation device in the embodiment of the present application is described above from the perspective of a modular functional entity.
  • the controller in the embodiment of the present application is described below from the perspective of hardware processing. Please refer to FIG. 11 for the control in the embodiment of the present application.
  • An embodiment of the device includes:
  • the input device 1101, the output device 1102, the processor 1103, and the memory 1104 (wherein the number of processors 1103 in the network device may be one or more, and one processor 1103 is taken as an example in FIG. 11).
  • the input device 1101, the output device 1102, the processor 1103, and the memory 1104 may be connected by a bus or other means, wherein the connection through the bus is taken as an example in FIG.
  • the program code is stored in the memory 1104.
  • the processor 1103 is configured to execute the method of the embodiment shown in the foregoing FIGS. 3 to 7 by calling the program code stored in the memory 1104.
  • An embodiment of the transmitting device in the embodiment of the present application includes: an input device, an output device, a processor, and a memory (wherein the number of processors in the network device may be one or more).
  • the input device, output device, processor, and memory may be connected by a bus or other means.
  • the program code is stored in the memory, and the processor is configured to execute the method of the embodiment shown in FIG. 3 to FIG. 7 by calling the program code stored in the memory.
  • An embodiment of the network device in the embodiment of the present application includes: an input device, an output device, a processor, and a memory (wherein the number of processors in the network device may be one or more).
  • the input device, output device, processor, and memory may be connected by a bus or other means.
  • the program code is stored in the memory, and the processor is configured to execute the method of the embodiment shown in FIG. 3 to FIG. 7 by calling the program code stored in the memory.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • a computer readable storage medium A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请实施例公开了一种资源预留方法以及相关设备,实现了由控制器管理整个网络的资源,在控制器上集中申请资源,而不需要消耗网络设备的建立业务流和资源之间的映射关系的资源。本申请实施例方法包括:控制器接收发送设备发送的通信会话的资源预留请求,资源预留请求中携带有资源需求信息;控制器根据资源预留请求,获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息及网络设备的资源索引;控制器根据标识信息向网络设备发送资源需求信息及资源索引,资源需求信息及资源索引用于指示网络设备为通信会话配置资源;控制器向发送设备发送标识信息和资源索引。

Description

一种资源预留方法以及相关设备
本申请要求于2017年08月08日提交中国专利局,申请号为201710671867.3,发明名称为“一种资源预留方法以及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及一种资源预留方法以及相关设备。
背景技术
资源预留协议(英文全称:resource reservation protocol,英文缩写:RSVP)是一种信令协议,该RSVP允许网络上任何一对发送设备与接收设备之间建立保留网络设备带宽资源的路径,为网络上的数据传输保证服务质量(英文全称:quality of service,英文缩写:QoS)。其中,QoS的资源是指网络设备中用以实现带宽保证的资源,每个QoS的资源实体有对应的索引。
集成服务(英文全称:integrated services,英文缩写:IntServ)是网络中基于流提供端到端QoS的技术,实现IntServ模型中,发送设备在发送数据前,需要通过RSVP向网络申请特定QoS的资源,并在确认网络已经为该数据预留了QoS的资源后,才开始发送数据。以下结合图1和图2对现有技术中RSVP的具体流程进行描述,发送设备S在向接收设备R发送数据前,需要通过RSVP在网络设备R1、R2、R3、R4上预留资源,并在这些网络设备上维护所要发送的业务流和所预留的资源之间的映射关系。为了实现该目的,首先,发送设备通过协议进程组件向接收设备发送path消息,该path消息中携带有对带宽、时延等需求信息,path消息传输过程中在沿途网络设备R1、R2、R3、R4上逐跳建立路径状态,获取反向下一跳地址,并将反向下一跳地址保存至该路径状态中,用于指导resv消息转发,逐跳向接收设备靠近。接收设备在接收到path消息后,会沿着path消息发送过来的路径回送resv消息,即沿着网络设备R4、R3、R2、R1发送resv消息。此时在网络设备接收到resv消息后,通过网络设备的资源申请控制组件进行资源预留。若最靠近发送设备的最后一跳网络设备接收到resv消息并预留资源成功后,认为在整条路径上QoS的资源预留成功。此时,最后一跳网络设备可以沿着resv消息发送过来的路径向接收设备发送confirmation消息(即conf消息),接收设备在接收到confirmation消息后获知在整条路径上QoS的资源预留成功。预留成功后在网络设备的流量分类器中建立业务流匹配表,在网络设备的流量调度器中下发对应的QoS的资源,获取对应的资源索引。若任何一跳网络设备预留资源失败,则该网络设备沿着resv消息发送过来的路径向接收设备发送resverr消息(即err消息),收到resverr消息的每跳网络设备释放所预留QoS的资源。在预留资源成功后,发送设备在发送该数据时,可以在每跳网络设备上通过流量分类器获取资源索引,并由网络设备的流量调度器根据资源索引获取预留的资源进行有QoS保证的调度,逐跳转发。
虽然IntServ能很好地满足QoS的要求,但是RSVP的预留资源申请是串行进行的,先 是通过path消息建立路径状态,再回送resv消息时才预留资源,失败时需要通过resverr消息回退释放所预留QoS的资源,且通过RSVP的资源预留中所有的网络设备必须支持RSVP,在path消息传输路径上的每台网络设备中需消耗资源维护了控制面的上下文,用于resv消息的逆向转发,即RSVP需要在path消息传输路径上的每个网络设备建立业务流匹配表,把业务流和资源映射起来,因此需要消耗网络设备的大量资源,例如上下文所占用的资源。
发明内容
为了解决现有技术中网络设备的资源消耗大的技术问题,本申请实施例提供了一种资源预留方法,控制器可以获取到从发送设备至接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息和资源索引,以及根据该标识信息向网络设备发送资源索引及资源需求信息,以使得网络设备根据资源索引及资源需求信息配置资源,以及向发送设备发送标识信息和资源索引,以使得发送设备将该标识信息和资源索引添加至该通信会话的数据,并通过网络设备将该数据发送给接收设备。从而实现了由控制器管理整个网络的资源,在控制器上集中申请资源,而不需要消耗网络设备的建立业务流和资源之间的映射关系的资源。本申请实施例还提供了资源预留装置、控制器、发送设备、网络设备、计算机程序产品及计算机存储介质等相关设备。
本申请实施例第一方面提供了一种资源预留方法,可包括:控制器接收发送设备发送的通信会话的资源预留请求,该资源预留请求可以是发送设备在通信会话有QoS保证的通信需求时向控制器发送的。该资源预留请求中可以携带有资源需求信息及五元组等信息。控制器在接收到资源预留请求后,可以根据资源预留请求中携带的信息,获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息,以及获取该网络设备的资源索引。该标识信息可以是网络设备的地址,或者是用于标识网络设备的相关信息。控制器根据标识信息向网络设备发送资源需求信息及资源索引,资源需求信息及资源索引用于指示网络设备为通信会话配置资源,以使得网络设备根据接收到的资源需求信息及资源索引为该通信会话配置相应的资源。可以理解的是,当仅存在一个网络设备时,控制器只需将该网络设备对应的资源需求信息及资源索引发送给该网络设备;当存在多个网络设备时,控制器需要将每个网络设备对应的资源需求信息及资源索引分别发送给对应的网络设备。控制器在将资源需求信息及资源索引发送给网络设备后,向发送设备发送网络设备的标识信息和网络设备的资源索引。例如,控制器可以是在接收到网络设备完成资源配置后反馈的应答消息时,向发送设备发送网络设备的标识信息和网络设备的资源索引,也可以是在将资源需求信息及资源索引发送给网络设备后,经过预设时间向发送设备发送网络设备的标识信息和网络设备的资源索引,该预设时间可以保证网络设备已经完成资源配置,其可根据实际情况进行灵活设置,具体此处不作限定。从而使得发送设备在发送通信会话的数据时,可以将网络设备的标识信息和网络设备的资源索引随数据通过网络设备发送给接收设备,网络设备可以根据标识信息和资源索引调度对应的资源对数据进行转发。实现了由控制器管理整个网络的资源,不再在整个网络上由网络设备通过RSVP维护业务流状态、进行path消息及resv消息的转发等操作来串行申请资源,而是在控制器上集中并行 申请资源,而不需要消耗网络设备建立业务流和资源之间的映射关系的资源,节省了网络设备的资源开销。
结合本申请实施例第一方面,在本申请实施例第一方面的第一种实施方式中,控制器向发送设备发送网络设备的标识信息和网络设备的资源索引的时机,可以是在控制器接收到网络设备反馈的应答消息后,控制器根据应答消息确定网络设备已经完成资源的配置,此时向发送设备发送网络设备的标识信息和网络设备的资源索引。该应答消息为网络设备在根据资源需求信息及资源索引完成资源预留后向控制器反馈的。该应答消息用于指示网络设备已经完成资源的配置,该应答消息的类型可根据实际需进行灵活设置,具体此处不作限定。本实施例中控制器可以在接收到应答消息后再向发送设备发送网络设备的标识信息和网络设备的资源索引,保证了在资源配置完成的情况下向发送设备发送该标识信息和资源索引,提高了控制器向发送设备发送该标识信息和资源索引可靠性。
结合本申请实施例第一方面或本申请实施例第一方面的第一种实施方式,在本申请实施例第一方面的第二种实施方式中,控制器接收到的资源预留请求中不仅携带有带宽资源、最大时延及丢包率等中的至少一个资源需求信息,还携带有接收设备对应的目的地址、发送设备对应的源地址、源端口号、目的端口及协议号等五元组,控制器在获取网络设备的标识信息及资源索引,可以根据资源预留请求携带的资源需求信息及目的地址,获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息和网络设备的资源索引,提高了对网络设备的标识信息和资源索引获取的便捷性及可靠性。
结合本申请实施例第一方面的第二种实施方式,在本申请实施例第一方面的第三种实施方式中,控制器维护整个网络中所有网络设备的资源,控制器在获取网络设备的标识信息及资源索引时,可以通过访问自身维护的所有网络设备的资源获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的空闲资源,该空闲资源可包括空闲的资源索引和空闲的带宽资源等,该空闲资源可以满足资源索引及资源需求信息对应资源的需求。然后,控制器根据资源需求信息、目的地址及空闲资源,获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息,以及控制器为通信会话分配资源索引。本实施例中控制器管理整个网络的资源,实现了在控制器上集中并行申请资源,提高了资源申请的灵活性及效率。
结合本申请实施例第一方面的第三种实施方式,在本申请实施例第一方面的第四种实施方式中,控制器在获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息时,可以先从控制器维护的整个网络中获取满足资源需求信息、目的地址及空闲资源的路径,再从该路径中获取发送设备与接收设备之间进行数据传输所经过的最短路径。例如,当满足资源需求信息、目的地址及空闲资源的路径仅有一条时,该条路径即为最短路径;当满足资源需求信息、目的地址及空闲资源的路径有多条时,将选择其中的一条最短路径。控制器可以运行最短路径优先算法(英文全称:constrained shortest path first,英文缩写:CSPF)来计算最短路径,也可以运行其他算法来获取,具体此处不作限定。控制器得到最短路径后,确定这条最短路径上对应的网络设备,获取该网络设备的标识信息。本实施例中控制器可以获取发送设备与接收设备之间进行通信会话的数据 传输所经过最短路径上的网络设备的标识信息,使得通信会话的数据传输所经过网络设备较少,提高通信会话的数据进行传输的效率。
结合本申请实施例第一方面、第一方面的第一种实施方式至第四种实施方式中任意一种,在本申请实施例第一方面的第五种实施方式中,为了方便标识信息和资源索引的发送,控制器向发送设备发送网络设备的标识信息和资源索引的过程中,控制器可以将网络设备的标识信息和资源索引添加至信令报文中,再向发送设备发送携带标识信息和资源索引的信令报文,该信令报文的类型具体此处不作限定。实现起来非常方便,提高了标识信息和资源索引发送的便捷性。
结合本申请实施例第一方面、第一方面的第一种实施方式至第五种实施方式中任意一种,在本申请实施例第一方面的第六种实施方式中,资源索引包括漏桶索引或队列索引,即当在进行资源调度时,若通过流量监管来控制流量流速,例如,利用漏桶算法实现流量监管,此时QoS的资源对应的就是漏桶资源,QoS的资源索引对应的就是漏桶索引。当在进行资源调度时,若通过流量整形来控制流量流速,例如,利用队列算法实现流量监管,此时QoS的资源对应的就是队列资源,QoS的资源索引对应的就是队列索引。本实施例中资源索引的类型可以根据资源的类型来设置,丰富了资源索引的类型,实现了资源索引的多样性。
结合本申请实施例第一方面、第一方面的第一种实施方式至第六种实施方式中任意一种,在本申请实施例第一方面的第七种实施方式中,资源需求信息包括带宽资源、突发尺寸、最大时延、最大时延抖动和丢包率等中的至少一个,根据实际需要资源需求信息还可以包括其他的信息,具体此处不作限定。本实施例中资源需求信息可以包括的信息多种多样,避免了资源需要信息的单一性,实现了资源需求信息的多样性。
本申请实施例第二方面提供了一种资源预留方法,可包括:发送设备向控制器发送通信会话的资源预留请求,以使得控制器根据资源预留请求获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息及该网络设备的资源索引,以及根据标识信息向网络设备发送资源需求信息及资源索引,以使得网络设备根据接收到的资源需求信息及资源索引为该通信会话配置相应的资源。该资源预留请求可以是发送设备在通信会话有QoS保证的通信需求时发送给控制器的。该资源预留请求中可以携带有资源需求信息及五元组等信息,该资源需求信息可包括带宽资源、最大时延及丢包率等,该五元组可包括目的地址、源地址、源端口号、目的端口及协议号等。发送设备接收控制器根据资源预留请求反馈的反馈信息,该反馈信息中携带有通信会话的数据传输所经过的网络设备的标识信息和网络设备的资源索引,该标识信息可以是网络设备的地址,或者是用于标识网络设备的相关信息,该资源索引可以是漏桶索引或队列索引。当需要发送通信会话的数据时,发送设备将网络设备的标识信息和资源索引添加至通信会话的数据,通过网络设备向接收设备发送携带有标识信息和资源索引的该数据,以使得网络设备可以根据标识信息和资源索引调度对应的资源对数据进行转发。实现了由控制器管理整个网络的资源,不再在整个网络上由网络设备通过RSVP维护业务流状态、进行path消息及resv消息的转发等操作来串行申请资源,而是在控制器上集中并行申请资源,而不需要消耗网络设备建立业务 流和资源之间的映射关系的资源,节省了网络设备的资源开销。并且在发送设备在发送通信会话的数据时,将网络设备的标识信息和资源索引添加至通信会话的数据,通过网络设备向接收设备发送该数据,以使得网络设备可以根据标识信息和资源索引调度对应的资源对数据进行转发,实现起来非常方便。
结合本申请实施例第二方面,在本申请实施例第二方面的第一种实施方式中,为了方便发送设备在发送通信会话的数据时,将标识信息和资源索引添加至通信会话的数据一起发送,发送设备在接收到控制器发送的网络设备的标识信息和资源索引时,首先获取通信会话的会话标识,然后将标识信息、资源索引与会话标识进行关联存储,可以是存储在发送设备的本地,也可以是存储在服务器,具体此处不作限定。发送设备在发送通信会话的数据时,可以从本地或服务器等获取与该会话标识对应的已存储的标识信息和资源索引,发送设备再将获取到的已存储的标识信息和资源索引添加至数据,将该数据通过网络设备发送给接收设备。本实施例中发送设备可以将标识信息、资源索引与会话标识进行关联存储,方便后续使用该标识信息和资源索引,提高了发送设备发送数据的便捷性。
结合本申请实施例第二方面或本申请实施例第二方面的第一种实施方式,在本申请实施例第二方面的第二种实施方式中,发送设备通过网络设备向接收设备发送的数据可以是一种数据报文,也可以是其他种类型的数据,该数据的类型可包括互联网通讯协定第六版(英文全称:internet protocol version 6,英文缩写:IPv6)、互联网通讯协定第四版(英文全称:internet protocol version 4,英文缩写:IPv4)、或多协议标签交换(英文全称:multi-protocol label switching,英文缩写:MPLS)等。可以理解的是,该数据的类型还可以包括其他类型,具体此处不作限定。本实施例中实现了数据类型的多样性。
结合本申请实施例第二方面的第二种实施方式,在本申请实施例第二方面的第三种实施方式中,当通信会话的数据的类型为IPv6时,发送设备在发送通信会话的数据时,可以将标识信息和资源索引添加至IPv6的头部,并通过网络设备向接收设备发送该IPv6。例如,可以是扩展IPv6的头部的字段,将标识信息和资源索引添加至IPv6的扩展字段中。当通信会话的数据的类型为IPv4时,发送设备在发送通信会话的数据时,可以将标识信息和资源索引添加至IPv4的头部,并通过网络设备向接收设备发送该IPv4。当通信会话的数据的类型为MPLS时,发送设备在发送通信会话的数据时,可以将标识信息和资源索引添加至MPLS的头部,并通过网络设备向接收设备发送该MPLS。本实施例中不仅实现起来非常方便,而且提高了发送设备发送数据的灵活性。
本申请实施例第三方面提供了一种资源预留方法,可包括:网络设备接收控制器发送的通信会话的资源需求信息及资源索引,该资源需求信息及资源索引可以是控制器根据接收到的发送设备发送的通信会话的资源预留请求,获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息及该网络设备的资源索引后发送的。该资源预留请求可以是发送设备在通信会话有QoS保证的通信需求时发送给控制器的,该资源预留请求中可以携带有带宽资源、突发尺寸、最大时延、最大时延抖动和丢包率等资源需求信息,以及接收设备对应的目的地址、发送设备对应的源地址、源端口号、目的端口及协议号等信息。网络设备根据资源需求信息及资源索引为通信会话配置资源,该资源与资源 索引对应,该资源索引可以是漏桶索引或队列索引等。当发送设备发送通信会话的数据时,网络设备接收发送设备发送的通信会话的数据,该数据中携带有该网络设备对应的目标资源索引及相对于该网络设备的下一跳对应的目标标识信息,该目标资源索引包含于资源索引,该目标标识信息包含于数据传输经过网络设备的标识信息。网络设备根据目标资源索引及目标标识信息对数据进行转发。例如,网络设备可以确定与该目标标识信息对应的输出接口,以及获取该目标资源索引对应的资源,然后将数据通过该输出接口及该资源向相对于该网络设备的下一跳进行发送,直至下一跳为接收设备。本申请实施例中实现了由控制器管理整个网络的资源,不再在整个网络上由网络设备通过RSVP维护业务流状态、进行path消息及resv消息的转发等操作来串行申请资源,而是在控制器上集中并行申请资源,而不需要消耗网络设备建立业务流和资源之间的映射关系的资源,节省了网络设备的资源开销。
结合本申请实施例第三方面,在本申请实施例第三方面的第一种实施方式中,为了保证了控制器可以在资源配置完成的情况下向发送设备发送网络设备的标识信息和网络设备的资源索引,网络设备根据接收到控制器发送的资源需求信息及资源索引为通信会话配置资源,在完成资源的配置后,网络设备向控制器反馈应答消息。以使得控制器根据应答消息确定网络设备已经完成资源的配置,以便向发送设备发送网络设备的标识信息和网络设备的资源索引。该应答消息的类型可根据实际需进行灵活设置,具体此处不作限定。本实施例中网络设备在完成资源的配置后向控制器反馈应答消息,保证了控制器可以在资源配置完成的情况下向发送设备发送网络设备的标识信息和网络设备的资源索引,提高了控制器向发送设备发送该标识信息和资源索引可靠性。
结合本申请实施例第三方面或本申请实施例第三方面的第一种实施方式,在本申请实施例第三方面的第二种实施方式中,网络设备根据目标资源索引及目标标识信息对通信会话的数据进行转发的过程中,网络设备先从数据的第一个指令节中获取与网络设备对应的目标资源索引,以及相对于网络设备的下一跳对应的目标标识信息。然后网络设备获取与目标标识信息对应的输出接口,以及在获取到输出接口后删除该目标标识信息。网络设备在自身预置的流量调度器中获取与目标资源索引对应的资源,以及调度该资源,并在获取到该资源后删除该目标资源索引。网络设备将通信会话的数据通过该输出接口及该资源向相对于网络设备的下一跳发送,直至下一跳为接收设备。本实施例中网络设备可以根据数据中,按顺序依次存储发送设备与接收设备之间进行通信会话的数据传输所经过的所有网络设备对应的标识信息和资源索引,对数据进行转发。在网络设备转发数据时,将获取首个指令节中存储的目标标识信息及目标资源索引,并在使用目标标识信息及目标资源索引后将其删除,传到下一跳网络设备时,该下一跳网络设备也是获取首个指令节中存储的目标标识信息及目标资源索引,并在使用目标标识信息及目标资源索引后将其删除,直至下一跳为接收设备。从而提高了数据传输的效率及便捷性。
结合本申请实施例第三方面或本申请实施例第三方面的第一种实施方式,在本申请实施例第三方面的第三种实施方式中,网络设备根据目标资源索引及目标标识信息对通信会话的数据进行转发的过程中,网络设备先根据其在发送设备与接收设备之间进行通信会话 的数据传输所经过的所有网络设备中对应的偏移量,从通信会话的数据中获取与该网络设备对应的目标资源索引,以及相对于该网络设备的下一跳对应的目标标识信息。然后,网络设备获取与目标标识信息对应的输出接口,以及在网络设备预置的流量调度器中获取与目标资源索引对应的资源,并调度该资源。网络设备将通信会话的数据通过该输出接口及资源向下一跳发送,直至下一跳为接收设备。本实施例中网络设备可以根据数据中,按顺序依次存储发送设备与接收设备之间进行通信会话的数据传输所经过的所有网络设备对应的标识信息和资源索引,对数据进行转发。在网络设备转发数据时,可以根据该网络设备对应的偏移量从数据中获取对应的目标资源索引及目标标识信息对数据进行转发,提高了对数据进行转发的灵活性即可靠性。
结合本申请实施例第三方面、本申请实施例第三方面的第一种实施方式至第三种实施例中任意一种,在本申请实施例第三方面的第四种实施方式中,资源索引包括漏桶索引或队列索引。即当在进行资源调度时,若通过流量监管来控制流量流速,例如,利用漏桶算法实现流量监管,此时QoS的资源对应的就是漏桶资源,QoS的资源索引对应的就是漏桶索引。当在进行资源调度时,若通过流量整形来控制流量流速,例如,利用队列算法实现流量监管,此时QoS的资源对应的就是队列资源,QoS的资源索引对应的就是队列索引。本实施例中资源索引的类型可以根据资源的类型来设置,丰富了资源索引的类型,实现了资源索引的多样性。
结合本申请实施例第三方面、本申请实施例第三方面的第一种实施方式至第四种实施例中任意一种,在本申请实施例第三方面的第五种实施方式中,资源需求信息包括带宽资源、突发尺寸、最大时延、最大时延抖动和丢包率中的至少一个。根据实际需要资源需求信息还可以包括其他的信息,具体此处不作限定。本实施例中资源需求信息可以包括的信息多种多样,避免了资源需要信息的单一性,实现了资源需求信息的多样性。
本申请实施例第四方面提供了一种资源预留装置,可包括:接收单元,用于接收发送设备发送的通信会话的资源预留请求,该资源预留请求可以是发送设备在通信会话有QoS保证的通信需求时发送的,该资源预留请求中携带有资源需求信息及五元组等信息。获取单元,用于根据接收单元接收到的资源预留请求,获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息及网络设备的资源索引,该标识信息可以是网络设备的地址,或者是用于标识网络设备的相关信息。第一发送单元,用于根据获取单元获取到的标识信息向网络设备发送接收单元接收到的资源需求信息及获取单元获取到的资源索引,资源需求信息及资源索引用于指示网络设备为通信会话配置资源,以使得网络设备根据接收到的资源需求信息及资源索引为该通信会话配置相应的资源。可以理解的是,当仅存在一个网络设备时,第一发送单元只需将该网络设备对应的资源需求信息及资源索引发送给该网络设备;当存在多个网络设备时,第一发送单元需要将每个网络设备对应的资源需求信息及资源索引分别发送给对应的网络设备。第二发送单元,用于向发送设备发送获取单元获取到的标识信息和资源索引。例如,第二发送单元可以是在接收到网络设备完成资源配置后反馈的应答消息时,向发送设备发送网络设备的标识信息和网络设备的资源索引,也可以是在将资源需求信息及资源索引发送给网络设备后,经过预设时间向发送 设备发送网络设备的标识信息和网络设备的资源索引,该预设时间可以保证网络设备已经完成资源配置,其可根据实际情况进行灵活设置,具体此处不作限定。从而使得发送设备在发送通信会话的数据时,可以将网络设备的标识信息和网络设备的资源索引随数据通过网络设备发送给接收设备,网络设备可以根据标识信息和资源索引调度对应的资源对数据进行转发。实现了由控制器通过接收单元、获取单元、第一发送单元及第二发送单元等管理整个网络的资源,不再在整个网络上由网络设备通过RSVP维护业务流状态、进行path消息及resv消息的转发等操作来串行申请资源,而是在控制器上集中并行申请资源,而不需要消耗网络设备建立业务流和资源之间的映射关系的资源,节省了网络设备的资源开销。
结合本申请实施例第四方面,在本申请实施例第四方面的第一种实施方式中,第二发送单元具体用于,接收网络设备根据资源需求信息及资源索引完成资源预留后反馈的应答消息,根据应答消息向发送设备发送获取单元获取到的标识信息和资源索引。本实施例中第二发送单元向发送设备发送网络设备的标识信息和网络设备的资源索引的时机,可以在接收到应答消息后再向发送设备发送网络设备的标识信息和网络设备的资源索引,保证了在资源配置完成的情况下向发送设备发送该标识信息和资源索引,提高了第二发送单元向发送设备发送该标识信息和资源索引可靠性。
结合本申请实施例第四方面或本申请实施例第四方面的第一种实施方式,在本申请实施例第四方面的第二种实施方式中,接收单元接收到的资源预留请求中不仅携带有带宽资源、最大时延及丢包率等中的至少一个资源需求信息,还携带有接收设备对应的目的地址、发送设备对应的源地址、源端口号、目的端口及协议号等五元组,获取单元具体用于,根据接收单元接收到的资源预留请求携带的资源需求信息及目的地址,获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息及资源索引。提高了对网络设备的标识信息和资源索引获取的便捷性及可靠性。
结合本申请实施例第四方面的第二种实施方式,在本申请实施例第四方面的第三种实施方式中,获取单元包括:第一获取子单元,用于通过访问控制器自身维护的所有网络设备的资源获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的空闲资源,该空闲资源可包括空闲的资源索引和空闲的带宽资源等,该空闲资源可以满足资源索引及资源需求信息对应资源的需求。第二获取子单元,用于根据接收单元接收到的资源需求信息、接收单元接收到的目的地址及第一获取子单元获取到的空闲资源,获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息;分配子单元,用于为通信会话分配资源索引。本实施例中实现了集中并行申请资源,提高了资源申请的灵活性及效率。
结合本申请实施例第四方面的第三种实施方式,在本申请实施例第四方面的第四种实施方式中,第二获取子单元具体用于,从网络中获取满足资源需求信息、目的地址及空闲资源的路径;从路径中获取发送设备与接收设备之间进行数据传输所经过的最短路径;根据最短路径确定标识信息。例如,当满足资源需求信息、目的地址及空闲资源的路径仅有一条时,该条路径即为最短路径;当满足资源需求信息、目的地址及空闲资源的路径有多条时,将选择其中的一条最短路径。第二获取子单元可以运行CSPF算法来计算最短路径, 也可以运行其他算法来获取,具体此处不作限定。第二获取子单元得到最短路径后,确定这条最短路径上对应的网络设备,获取该网络设备的标识信息。本实施例中第二获取子单元可以获取发送设备与接收设备之间进行通信会话的数据传输所经过最短路径上的网络设备的标识信息,使得通信会话的数据传输所经过网络设备较少,提高通信会话的数据进行传输的效率。
结合本申请实施例第四方面、本申请实施例第四方面的第一种实施方式至第四种实施方式中任意一种,在本申请实施例第四方面的第五种实施方式中,为了方便标识信息和资源索引的发送,第二发送单元向发送设备发送网络设备的标识信息和资源索引的过程中,第二发送单元具体用于,将获取单元获取到的标识信息和资源索引添加至信令报文中,向发送设备发送携带标识信息和资源索引的信令报文,该信令报文的类型具体此处不作限定。实现起来非常方便,提高了标识信息和资源索引发送的便捷性。
结合本申请实施例第四方面、本申请实施例第四方面的第一种实施方式至第五种实施方式中任意一种,在本申请实施例第四方面的第六种实施方式中,资源索引包括漏桶索引或队列索引,即当在进行资源调度时,若通过流量监管来控制流量流速,例如,利用漏桶算法实现流量监管,此时QoS的资源对应的就是漏桶资源,QoS的资源索引对应的就是漏桶索引。当在进行资源调度时,若通过流量整形来控制流量流速,例如,利用队列算法实现流量监管,此时QoS的资源对应的就是队列资源,QoS的资源索引对应的就是队列索引。本实施例中资源索引的类型可以根据资源的类型来设置,丰富了资源索引的类型,实现了资源索引的多样性。
结合本申请实施例第四方面、本申请实施例第四方面的第一种实施方式至第六种实施方式中任意一种,在本申请实施例第四方面的第七种实施方式中,资源需求信息包括带宽资源、突发尺寸、最大时延、最大时延抖动和丢包率等中的至少一个,根据实际需要资源需求信息还可以包括其他的信息,具体此处不作限定。本实施例中资源需求信息可以包括的信息多种多样,避免了资源需要信息的单一性,实现了资源需求信息的多样性。
本申请实施例第五方面提供了一种资源预留装置,可包括:第一发送单元,用于向控制器发送通信会话的资源预留请求;以使得控制器根据资源预留请求获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息及该网络设备的资源索引,以及根据标识信息向网络设备发送资源需求信息及资源索引,以使得网络设备根据接收到的资源需求信息及资源索引为该通信会话配置相应的资源。该资源预留请求可以是发送设备在通信会话有QoS保证的通信需求时发送给控制器的。该资源预留请求中可以携带有资源需求信息及五元组等信息,该资源需求信息可包括带宽资源、最大时延及丢包率等,该五元组可包括目的地址、源地址、源端口号、目的端口及协议号等。接收单元,用于接收控制器根据第一发送单元发送的资源预留请求反馈的反馈信息,该反馈信息中携带有通信会话的数据传输所经过的网络设备的标识信息和网络设备的资源索引。该标识信息可以是网络设备的地址,或者是用于标识网络设备的相关信息,该资源索引可以是漏桶索引或队列索引。第二发送单元,用于将接收单元接收到的标识信息和资源索引添加至通信会话的数据,通过网络设备向接收设备发送携带有标识信息和资源索引的该数据,以使得网络 设备可以根据标识信息和资源索引调度对应的资源对数据进行转发。实现了由控制器管理整个网络的资源,不再在整个网络上由网络设备通过RSVP维护业务流状态、进行path消息及resv消息的转发等操作来串行申请资源,而是在控制器上集中并行申请资源,而不需要消耗网络设备建立业务流和资源之间的映射关系的资源,节省了网络设备的资源开销。并且在第二发送单元在发送通信会话的数据时,将网络设备的标识信息和资源索引添加至通信会话的数据,通过网络设备向接收设备发送该数据,以使得网络设备可以根据标识信息和资源索引调度对应的资源对数据进行转发,实现起来非常方便。
结合本申请实施例第五方面,在本申请实施例第五方面的第一种实施方式中,为了方便第二发送单元在发送通信会话的数据时,将标识信息和资源索引添加至通信会话的数据一起发送,资源预留装置还包括:获取单元,用于获取通信会话的会话标识;存储单元,用于接收单元接收到的将标识信息、接收单元接收到的资源索引与获取单元获取到的会话标识进行关联存储,可以是存储在发送设备的本地,也可以是存储在服务器,具体此处不作限定。第二发送单元具体用于,根据获取单元获取到的会话标识获取已存储的标识信息和资源索引,将标识信息和资源索引添加至数据,通过网络设备向接收设备发送该数据。本实施例中存储单元可以将标识信息、资源索引与会话标识进行关联存储,方便后续使用该标识信息和资源索引,提高了发送数据的便捷性。
结合本申请实施例第五方面或本申请实施例第五方面的第一种实施方式,在本申请实施例第五方面的第二种实施方式中,第二发送单元通过网络设备向接收设备发送的数据可以是一种数据报文,也可以是其他种类型的数据,该数据的类型包括互联网通讯协定第六版IPv6、互联网通讯协定第四版IPv4、或多协议标签交换MPLS等。可以理解的是,该数据的类型还可以包括其他类型,具体此处不作限定。本实施例中实现了数据类型的多样性。
结合本申请实施例第五方面的第二种实施方式,在本申请实施例第五方面的第三种实施方式中,当通信会话的数据的类型为IPv6时,第二发送单元在发送通信会话的数据时,可以将标识信息和资源索引添加至IPv6的头部,并通过网络设备向接收设备发送该IPv6。例如,可以是扩展IPv6的头部的字段,将标识信息和资源索引添加至IPv6的扩展字段中。当通信会话的数据的类型为IPv4时,第二发送单元在发送通信会话的数据时,可以将标识信息和资源索引添加至IPv4的头部,并通过网络设备向接收设备发送该IPv4。当通信会话的数据的类型为MPLS时,第二发送单元在发送通信会话的数据时,可以将标识信息和资源索引添加至MPLS的头部,并通过网络设备向接收设备发送该MPLS。本实施例中不仅实现起来非常方便,而且提高了发送设备发送数据的灵活性。
本申请实施例第六方面提供了一种资源预留装置,可包括:第一接收单元,用于接收控制器发送的通信会话的资源需求信息及资源索引,该资源需求信息及资源索引可以是控制器根据接收到的发送设备发送的通信会话的资源预留请求,获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息及该网络设备的资源索引后发送的。该资源预留请求可以是发送设备在通信会话有QoS保证的通信需求时发送给控制器的,该资源预留请求中可以携带有带宽资源、突发尺寸、最大时延、最大时延抖动和丢包率等资源需求信息,以及接收设备对应的目的地址、发送设备对应的源地址、源端口号、目的 端口及协议号等信息。配置单元,用于根据第一接收单元接收到的资源需求信息及资源索引为通信会话配置资源,该资源与资源索引对应,该资源索引可以是漏桶索引或队列索引等。第二接收单元,用于接收发送设备发送的通信会话的数据,数据中携带有网络设备对应的目标资源索引及相对于网络设备的下一跳对应的目标标识信息,该网络设备为资源预留装置所在的网络设备,该目标资源索引包含于资源索引,该目标标识信息包含于数据传输经过网络设备的标识信息。转发单元,用于根据第二接收单元接收到的目标资源索引及目标标识信息,对第二接收单元接收到的数据进行转发。例如,转发单元可以确定与该目标标识信息对应的输出接口,以及获取该目标资源索引对应的资源,然后将数据通过该输出接口及该资源向相对于该网络设备的下一跳进行发送,直至下一跳为接收设备。本申请实施例中实现了由控制器管理整个网络的资源,不再在整个网络上由网络设备通过RSVP维护业务流状态、进行path消息及resv消息的转发等操作来串行申请资源,而是在控制器上集中并行申请资源,而不需要消耗网络设备建立业务流和资源之间的映射关系的资源,节省了网络设备的资源开销。
结合本申请实施例第六方面,在本申请实施例第六方面的第一种实施方式中,为了保证了控制器可以在资源配置完成的情况下向发送设备发送网络设备的标识信息和网络设备的资源索引,资源预留装置还包括:反馈单元,用于在配置单元完成资源的配置后,向控制器反馈应答消息。以使得控制器根据应答消息确定配置单元已经完成资源的配置,以便向发送设备发送网络设备的标识信息和网络设备的资源索引。该应答消息的类型可根据实际需进行灵活设置,具体此处不作限定。本实施例中配置单元在完成资源的配置后,由反馈单元向控制器反馈应答消息,保证了控制器可以在资源配置完成的情况下向发送设备发送网络设备的标识信息和网络设备的资源索引,提高了控制器向发送设备发送该标识信息和资源索引可靠性。
结合本申请实施例第六方面或本申请实施例第六方面的第一种实施方式,在本申请实施例第六方面的第二种实施方式中,转发单元根据目标资源索引及目标标识信息对通信会话的数据进行转发的过程中,转发单元具体用于,从第二接收单元接收到的数据的第一个指令节中获取与网络设备对应的目标资源索引,以及相对于网络设备的下一跳对应的目标标识信息;获取与目标标识信息对应的输出接口;以及在获取到输出接口后删除该目标标识信息;在网络设备预置的流量调度器中获取与目标资源索引对应的资源,以及调度该资源,并在获取到该资源后删除该目标资源索引;将通信会话的数据通过该输出接口及该资源向相对于网络设备的下一跳发送,直至下一跳为接收设备。本实施例中转发单元可以根据数据中,按顺序依次存储发送设备与接收设备之间进行通信会话的数据传输所经过的所有网络设备对应的标识信息和资源索引,对数据进行转发。在转发单元转发数据时,将获取首个指令节中存储的目标标识信息及目标资源索引,并在使用目标标识信息及目标资源索引后将其删除,传到下一跳网络设备时,该下一跳网络设备也是获取首个指令节中存储的目标标识信息及目标资源索引,并在使用目标标识信息及目标资源索引后将其删除,直至下一跳为接收设备。从而提高了数据传输的效率及便捷性。
结合本申请实施例第六方面或本申请实施例第六方面的第一种实施方式,在本申请实 施例第六方面的第三种实施方式中,转发单元根据目标资源索引及目标标识信息对通信会话的数据进行转发的过程中,转发单元具体用于,根据转发单元所在网络设备在发送设备与接收设备之间进行通信会话的数据传输所经过的所有网络设备中对应的偏移量,从第二接收单元接收到的数据中获取与网络设备对应的目标资源索引,以及相对于网络设备的下一跳对应的目标标识信息。然后,获取与目标标识信息对应的输出接口;在网络设备预置的流量调度器中获取与目标资源索引对应的资源,并调度该资源;将通信会话的数据通过输出接口及资源向相对于网络设备的下一跳发送,直至下一跳为接收设备。本实施例中转发单元可以根据数据中按顺序依次存储发送设备与接收设备之间进行通信会话的数据传输所经过的所有网络设备对应的标识信息和资源索引,对数据进行转发。在转发单元转发数据时,可以根据该转发单元所在网络设备对应的偏移量从数据中获取对应的目标资源索引及目标标识信息对数据进行转发,提高了对数据进行转发的灵活性即可靠性。
结合本申请实施例第六方面、本申请实施例第六方面的第一种实施方式至第三种实施方式中任意一种,在本申请实施例第六方面的第四种实施方式中,资源索引包括漏桶索引或队列索引。即当在进行资源调度时,若通过流量监管来控制流量流速,例如,利用漏桶算法实现流量监管,此时QoS的资源对应的就是漏桶资源,QoS的资源索引对应的就是漏桶索引。当在进行资源调度时,若通过流量整形来控制流量流速,例如,利用队列算法实现流量监管,此时QoS的资源对应的就是队列资源,QoS的资源索引对应的就是队列索引。本实施例中资源索引的类型可以根据资源的类型来设置,丰富了资源索引的类型,实现了资源索引的多样性。
结合本申请实施例第六方面、本申请实施例第六方面的第一种实施方式至第四种实施方式中任意一种,在本申请实施例第六方面的第五种实施方式中,资源需求信息包括带宽资源、突发尺寸、最大时延、最大时延抖动和丢包率中的至少一个。根据实际需要资源需求信息还可以包括其他的信息,具体此处不作限定。本实施例中资源需求信息可以包括的信息多种多样,避免了资源需要信息的单一性,实现了资源需求信息的多样性。
本申请实施例第七方面提供了一种控制器,包括:处理器、存储器、总线、输入装置以及输出装置;该存储器中存储有程序代码;该处理器调用存储器中的程序代码时执行如前述本申请实施例第一方面、本申请实施例第一方面的第一种实施方式至第七种实施方式中任意一种所述的资源预留方法。
本申请实施例第八方面提供了一种发送设备,包括:处理器、存储器、总线、输入装置以及输出装置;该存储器中存储有程序代码;该处理器调用存储器中的程序代码时执行如前述本申请实施例第二方面、本申请实施例第二方面的第一种实施方式至第三种实施方式中任意一种所述的资源预留方法。
本申请实施例第九方面提供了一种网络设备,包括:处理器、存储器、总线、输入装置以及输出装置;该存储器中存储有程序代码;该处理器调用存储器中的程序代码时执行如前述本申请实施例第三方面、本申请实施例第三方面的第一种实施方式至第五种实施方式中任意一种所述的资源预留方法。
本申请实施例第十方面提供了一种包含指令的计算机程序产品,当其在计算机上运行 时,使得计算机执行如前述本申请实施例第一方面、本申请实施例第一方面的第一种实施方式至第七种实施方式中的任意一种所述的资源预留方法。
本申请实施例第十一方面提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如前述本申请实施例第二方面、本申请实施例第二方面的第一种实施方式至第三种实施方式中的任意一种所述的资源预留方法。
本申请实施例第十二方面提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如前述本申请实施例第三方面、本申请实施例第三方面的第一种实施方式至第五种实施方式中的任意一种所述的资源预留方法。
本申请实施例第十三方面提供了一种计算机可读存储介质,该计算机存储介质中存储有指令,当其在计算机上运行时,使得计算机执行时执行如前述本申请实施例第一方面、本申请实施例第一方面的第一种实施方式至第七种实施方式中的任一种所述的资源预留方法。
本申请实施例第十四方面提供了一种计算机可读存储介质,该计算机存储介质中存储有指令,当其在计算机上运行时,使得计算机执行时执行如前述本申请实施例第二方面、本申请实施例第二方面的第一种实施方式至第三种实施方式中的任一种所述的资源预留方法。
本申请实施例第十五方面提供了一种计算机可读存储介质,该计算机存储介质中存储有指令,当其在计算机上运行时,使得计算机执行时执行如前述本申请实施例第三方面、本申请实施例第三方面的第一种实施方式至第五种实施方式中的任一种所述的资源预留方法。
从以上技术方案可以看出,本申请实施例具有以下优点:
控制器根据接收到发送设备发送的通信会话的资源预留请求,获取发送设备与接收设备之间进行该通信会话的数据传输所经过的网络设备的标识信息和该网络设备的资源索引。然后,控制器根据该标识信息向网络设备发送资源索引及资源需求信息,以使得网络设备根据资源索引及资源需求信息为该通信会话配置资源。以及控制器向发送设备发送标识信息和资源索引,以使得发送设备在发送该通信会话的数据时,可将该通信会话对应的标识信息和资源索引添加至数据,并通过网络设备将该数据发送给接收设备,以供网络设备在接收到数据时,根据从数据中获取到的标识信息和资源索引对数据进行转发。从而实现了由控制器管理整个网络的资源,不再在整个网络上由网络设备通过RSVP维护业务流状态、进行path消息及resv消息的转发等操作来串行申请资源,而是在控制器上集中并行申请资源,而不需要消耗网络设备建立业务流和资源之间的映射关系的资源,节省了网络设备的资源开销。
附图说明
图1为现有技术中通信网络架构拓扑图;
图2为现有技术中资源预留方法一个实施例示意图;
图3为本申请实施例中通信网络架构拓扑图;
图4为本申请实施例中资源预留方法一个实施例示意图;
图5为本申请实施例中资源预留方法另一实施例示意图;
图6为本申请实施例中资源预留方法另一实施例示意图;
图7为本申请实施例中资源预留方法另一实施例示意图;
图8为本申请实施例中资源预留装置一个实施例示意图;
图9为本申请实施例中资源预留装置另一实施例示意图;
图10为本申请实施例中资源预留装置另一实施例示意图;
图11为本申请实施例中控制器一个实施例示意图。
具体实施方式
为了解决现有技术中网络设备的资源消耗大的技术问题,本申请实施例提供了一种资源预留方法,控制器可以获取到从发送设备至接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息和资源索引,以及根据该标识信息向网络设备发送资源索引及资源需求信息,以使得网络设备根据资源索引及资源需求信息配置资源,以及向发送设备发送标识信息和资源索引,以使得发送设备将该标识信息和资源索引添加至该通信会话的数据,并通过网络设备将该数据发送给接收设备。从而实现了由控制器管理整个网络的资源,在控制器上集中申请资源,而不需要消耗网络设备的建立业务流和资源之间的映射关系的资源。本申请实施例还提供了资源预留装置、控制器、发送设备、网络设备、计算机程序产品及计算机存储介质等相关设备。
如图3所示,在通信网络中,包括控制器C、网络设备R1~R9、发送设备S、接收设备Rc1、以及接收设备Rc2等。其中,0~3表示网络设备的接口编号,N1~N15表示链路带宽,控制器管理整个网络QoS的资源和网络拓扑,网络设备不再负责资源管理,该控制器在通用的计算系统上部署控制器软件实现。该网络设备可包括路由器、计算机或交换机等,发送设备可包括手机或电脑等终端,接收设备可包括手机或电脑等终端。由于控制器管理整个网络的资源,因此不需要在整个网络上通过网络设备串行申请资源,而是在控制器上集中并行申请资源。
以下对控制器管理整个网络的工作原理进行说明,如图4所示,该控制器可包括多个资源管理器及协议进程组件等,其中,协议进程组件用于执行RSVP操作以及管理整个网络的所有资源,每个资源管理器分别与网络设备一一对应,用于负责管理对应网络设备的资源,即一个网络设备对应一个资源管理器,一个资源管理器可以管理一个网络设备对应的所有资源索引。例如,资源管理器1与网络设备1对应,资源管理器2与网络设备2对应,资源管理器n与网络设备n对应。发送设备包括应用程序及协议进程组件等,其中,发送设备中的协议进程组件用于执行RSVP操作,发送设备中应用程序为业务流的发送者。接收设备包括应用程序及协议进程组件等,其中,接收设备中的协议进程组件用于执行RSVP操作,接收设备中的应用程序为业务流的接收者。网络设备包括流量调度器等,网络设备中的流量调度器用于配置资源,并使用资源索引获取该资源索引对应的资源进行流量调度。与现有技术相比,本申请中的网络设备可以取消流量分类器、申请资源控制组件、控制面 组件等,节省了网络设备硬件资源的开销。
当发送设备上的某个业务(即通信会话)在有需要QoS保证的通信需求时,该业务对应的应用程序向发送设备自身的协议进程组件发送资源需求申请,该资源需求申请包含带宽资源、突发、最大时延、最大时延抖动或丢包率等资源需求信息。发送设备自身的协议进程组件在接收到资源需求申请后,构造资源预留请求,并将该资源预留请求发送给控制器。控制器由自身的协议进程组件接收该资源预留请求,控制器上的协议进程组件根据各个网络设备的资源,以及资源预留请求中携带的资源需求信息,获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备,并确定该网络设备的标识信息,该网络设备可以是一台或多台。控制器上的协议进程组件向该网络设备对应的资源管理器发送资源索引申请,资源管理器将确定的资源索引反馈给协议进程组件。然后,控制器上的协议进程组件向对应的网络设备上的流量调度器下发资源配置消息,该资源配置消息中携带有资源索引及资源需求信息,网络设备上的流量调度器在接收到资源配置消息后,根据资源索引及资源需求信息为该业务配置资源。在资源配置完成后,流量调度器反馈应答消息给控制器上的协议进程组件,控制器上的协议进程组件在接收到应答消息后,获知资源配置完成,此时将对应网络设备的标识信息及资源索引发送给发送设备上的协议进程组件,发送设备上的协议进程组件存储该标识信息及该资源索引,资源预留完成。或者是,控制器上的协议进程组件向对应的网络设备上的流量调度器下发请求消息后,经过预设时间判定资源配置完成,此时将对应网络设备的标识信息及资源索引发送给发送设备上的协议进程组件。在该应用程序的资源预留成功后,当发送设备上该应用程序发送数据时,发送设备将存储的标识信息及资源索引随该数据一起通过网络设备发送给接收设备,如图5所示,网络设备可以根据该数据中携带的标识信息及资源索引对该数据进行转发。
需要说明的是,图3所示的通信网络的架构图,以及图4和图5资源预留方法实施例仅仅是一个示例,本申请实施例描述的网络架构以及业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
为便于理解,下面对本申请实施例中的具体流程进行描述,请参阅图6,本申请实施例中资源预留方法的一个实施例包括:
601、发送设备向控制器发送通信会话的资源预留请求;
该资源预留请求可以是发送设备在通信会话有QoS保证的通信需求时向控制器发送的,也可以是发送设备在通信会话需要发送数据时向控制器发送的,还可以是发送设备在移动位置后,重新与新的网络设备建立连接后向控制器发送的,还可以是发送设备每隔预设时间向控制器发送的,还可以是其他的发送方式,具体此处不作限定。
该资源预留请求中可以携带有带宽资源、最大时延及丢包率等中的至少一个资源需求信息,还可以携带有接收设备对应的目的地址、发送设备对应的源地址、源端口号、目的端口及协议号等五元组,该资源预留请求中还可以携带其他的信息,具体此处不作限定。
该通信会话可以是一种业务,例如,通话业务、短信业务、语音业务、视频业务、或 支付业务等,具体此处不作限定。
602、控制器根据接收到的资源预留请求,获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息及该网络设备的资源索引;
控制器在接收到发送设备发送的资源预留请求后,可以根据资源预留请求中携带的信息,获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息,以及获取该网络设备的资源索引。该标识信息可以是网络设备的地址,或者是用于标识网络设备的相关信息。该资源索引用于标识对应的资源,与资源建立映射关系,例如,该资源索引可以是漏桶索引或队列索引等。
603、控制器根据标识信息向网络设备发送资源索引和资源需求信息;
控制器在获取到网络设备的标识信息后,可以根据网络设备的标识信息向对应的网络设备,发送该网络设备的资源索引和网络设备的资源需求信息,以使得网络设备根据接收到的资源需求信息及资源索引为该通信会话配置相应的资源。该资源需求信息是资源预留请求携带的,例如,该资源需求信息可以是带宽资源、最大时延、突发尺寸、最大时延抖动及丢包率等中的至少一种。
可以理解的是,当仅存在一个网络设备时,控制器只需将该网络设备对应的资源需求信息及资源索引发送给该网络设备;当存在多个网络设备时,控制器需要将每个网络设备对应的资源需求信息及资源索引分别发送给对应的网络设备。
604、网络设备根据接收到的资源索引和资源需求信息为该通信会话配置资源;
网络设备在接收到控制器发送的资源索引和资源需求信息后,将为通信会话配置与该资源索引和资源需求信息对应的资源,该资源与资源索引对应,该资源能够满足资源需求信息对应的需求。
605、控制器向发送设备发送标识信息和资源索引;
控制器在将资源需求信息及资源索引发送给网络设备后,向发送设备发送网络设备的标识信息和网络设备的资源索引。例如,控制器可以是在接收到网络设备完成资源配置后反馈的应答消息时,向发送设备发送网络设备的标识信息和网络设备的资源索引,也可以是在将资源需求信息及资源索引发送给网络设备后,经过预设时间向发送设备发送网络设备的标识信息和网络设备的资源索引,该预设时间可以保证网络设备已经完成资源配置,其可根据实际情况进行灵活设置,具体此处不作限定。控制器向发送设备发送网络设备的标识信息和网络设备的资源索引的时机可根据实际情况进行灵活设置,具体此处不作限定。
606、当发送设备需要发送通信会话的数据时,发送设备将标识信息和资源索引添加至该数据,向网络设备发送携带有标识信息和资源索引的该数据;
发送设备在发送通信会话的数据时,可以将网络设备的标识信息和网络设备的资源索引添加至数据,然后将携带有标识信息和资源索引的该数据发送给网络设备,再由网络设备将该数据发送给接收设备。
可以理解的是,为了方便后续发送设备在发送通信会话的数据时,将标识信息和资源索引添加至通信会话的数据一起发送,发送设备在接收到控制器发送的标识信息和资源索引后,可以获取通信会话的会话标识,然后将标识信息、资源索引与会话标识进行关联存 储,可以是存储在发送设备的本地,也可以是存储在服务器,具体此处不作限定。发送设备在发送通信会话的数据时,先获取与该会话标识对应的已存储的标识信息和资源索引,再将获取到的已存储的标识信息和资源索引添加至数据,将该数据通过网络设备发送给接收设备。
607、网络设备从数据中获取标识信息和资源索引;
网络设备接收到发送设备发送的通信会话的数据后,由于该数据中携带有标识信息和资源索引,因此网络设备可以从数据中获取标识信息和资源索引,根据标识信息和资源索引调度对应的资源,将该数据进行转发给接收设备。
608、网络设备根据标识信息和资源索引转发通信会话的数据给接收设备。
网络设备接收发送设备发送的通信会话的数据,该数据中携带有该网络设备对应的目标资源索引及相对于该网络设备的下一跳对应的目标标识信息,该目标资源索引包含于资源索引,该目标标识信息包含于数据传输经过网络设备的标识信息。网络设备根据目标资源索引及目标标识信息对数据进行转发。例如,网络设备可以确定与该目标标识信息对应的输出接口,以及获取该目标资源索引对应的资源,然后将数据通过该输出接口及该资源向相对于该网络设备的下一跳进行发送,直至下一跳为接收设备。
本申请实施例控制器根据接收到发送设备发送的通信会话的资源预留请求,获取发送设备与接收设备之间进行该通信会话的数据传输所经过的网络设备的标识信息和该网络设备的资源索引。然后,控制器根据该标识信息向网络设备发送资源索引及资源需求信息,以使得网络设备根据资源索引及资源需求信息为该通信会话配置资源。以及控制器向发送设备发送标识信息和资源索引,以使得发送设备在发送该通信会话的数据时,可将该通信会话对应的标识信息和资源索引添加至数据,并通过网络设备将该数据发送给接收设备,以供网络设备在接收到数据时,根据从数据中获取到的标识信息和资源索引对数据进行转发。从而实现了由控制器管理整个网络的资源,不再在整个网络上由网络设备通过RSVP维护业务流状态、进行path消息及resv消息的转发等操作来串行申请资源,而是在控制器上集中并行申请资源,而不需要消耗网络设备建立业务流和资源之间的映射关系的资源,节省了网络设备的资源开销。
为便于理解,下面对本申请实施例中网络设备在完成资源配置后可以向控制器反馈应答消息,以及发送设备可以将标识信息及资源索引与通信会话的会话标识进行关联存储等的具体流程做进一步地详细描述。请参阅图7,本申请实施例中资源预留方法的另一实施例包括:
701、发送设备向控制器发送通信会话的资源预留请求;
发送设备可以是在通信会话有QoS保证的通信需求时向控制器发送资源预留请求,也可以是发送设备在通信会话需要发送数据时向控制器发送资源预留请求,还可以是发送设备在移动位置后,重新与新的网络设备建立连接后向控制器发送资源预留请求,还可以是发送设备每隔预设时间向控制器发送资源预留请求,还可以是其他的发送方式,具体此处不作限定。
例如,结合图4进行说明,当发送设备上层应用程序(即通信会话对应的应用程序) 在有需要QoS保证的通信需求时,该应用程序向发送设备自身底层软件的协议进程组件发送资源需求申请,该资源需求申请包含带宽资源、突发、最大时延、最大时延抖动及丢包率等资源需求信息,还可以包括源目的地址、源目的传输层端口号及传输层协议号等。发送设备底层软件的协议进程组件在接收到资源需求申请后,根据资源需求申请构造资源预留请求,并将该资源预留请求发送给控制器。
该资源预留请求中可以携带有带宽资源、突发尺寸、最大时延、最大时延抖动及丢包率等中的至少一个资源需求信息,还可以携带有接收设备对应的目的地址、发送设备对应的源地址、源端口号、目的端口及协议号等五元组,该资源预留请求中还可以携带其他的信息,该资源预留请求的格式及内容顺序等具体此处不作限定。
702、控制器根据接收到的资源预留请求,获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息及该网络设备的资源索引;
控制器在接收到发送设备发送的资源预留请求后,可以根据资源预留请求中携带的信息,获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息,以及获取该网络设备的资源索引。该标识信息可以是网络设备的地址,或者是用于标识网络设备的相关信息。
需要说明的是,该资源索引用于标识一定的资源,与资源建立映射关系,例如,该资源索引包括漏桶索引或队列索引,即当在进行资源调度时,若通过流量监管来控制流量流速,例如,利用漏桶算法实现流量监管,此时QoS的资源对应的就是漏桶资源,QoS的资源索引对应的就是漏桶索引。当在进行资源调度时,若通过流量整形来控制流量流速,例如,利用队列算法实现流量监管,此时QoS的资源对应的就是队列资源,QoS的资源索引对应的就是队列索引。
本实施例中每个网络设备都有其对应的资源索引,每个网络设备的资源索引范围可以一致,也可以不一致,因此每个网络设备剩余的资源索引可能会不一样,得到的发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的资源索引可能是不一样的,每个资源索引与网络设备对应。可以理解的是,在实际应用中,控制器获取到的发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的资源索引,也可以设备为每个网络设备对应的资源索引是一致的,还可以将该一致的资源索引与每个网络设备对应的目标资源索引建立映射关系。在确定网络设备的资源索引后,即可确定每个网络设备对应的目标资源索引,具体此处不作限定。
例如,结合图4进行说明,控制器由自身的协议进程组件接收该资源预留请求,控制器上的协议进程组件根据各个网络设备的资源,以及资源预留请求中携带的资源需求信息,获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备,并确定该网络设备的标识信息,该网络设备可以是一台或多台。控制器上的协议进程组件向该网络设备对应的资源管理器发送资源索引申请,资源管理器将确定的资源索引反馈给协议进程组件。
控制器在获取网络设备的标识信息及网络设备的资源索引,可以根据资源预留请求携带的资源需求信息及目的地址来获取。具体地,控制器维护整个网络中所有网络设备的资源,控制器在获取网络设备的标识信息及资源索引时,可以通过访问自身维护的所有网络 设备的资源获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的空闲资源,该空闲资源可包括空闲的资源索引和空闲的带宽资源等,该空闲资源可以满足资源索引及资源需求信息对应资源的需求。然后,控制器根据资源需求信息、目的地址及空闲资源,获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息,以及控制器为通信会话分配资源索引。
控制器在获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息时,可以先从控制器维护的整个网络中获取满足资源需求信息、目的地址及空闲资源的路径,再从该路径中获取发送设备与接收设备之间进行数据传输所经过的最短路径。例如,当满足资源需求信息、目的地址及空闲资源的路径仅有一条时,该条路径即为最短路径;当满足资源需求信息、目的地址及空闲资源的路径有多条时,将选择其中的一条最短路径。控制器可以运行CSPF算法来计算最短路径,也可以运行其他算法来获取,具体此处不作限定。控制器得到最短路径后,确定这条最短路径上对应的网络设备,获取该网络设备的标识信息。
结合图4进行说明,控制器通过协议进程组件运行CSPF算法,根据资源预留请求中携带的信息进行计算,得到路径序列,然后该协议进程组件向路径序列上各网络设备对应的资源管理器发送资源索引申请,资源管理器返回根据申请确定得到的资源索引给协议进程组件。
需要说明的是,由于一台网络设备的资源索引的数量及带宽资源等是有限的,因此,可能出现控制器获取资源索引和标识信息失败的情况。控制器通过协议进程组件根据资源预留请求运行CSPF算法计算的过程中,若计算失败,则返请求失败消息给发送设备;若计算成功,则遍历路径上的网络设备申请资源索引,得到资源索引后即可确定与该资源索引对应的资源。
控制器获取资源索引和标识信息失败的情况包括:一种可能是,假设网络设备总共有10条资源索引,网络设备已经使用了大量的资源索引,有可能出现带宽资源仍有剩余,但是资源索引却已经耗尽的情况,如表1所示,资源索引耗尽的情况下带宽资源仍有剩余。
表1.资源索引耗尽的情况下带宽资源仍有剩余
Figure PCTCN2018092826-appb-000001
还有另一种可能是,假设网络设备总共有10条资源索引,网络设备已经使用了大量的带宽资源,有可能出现资源索引仍有剩余,但是带宽资源却已经耗尽的情况,如表2所示,带宽资源耗尽的情况下资源索引仍有剩余。
表2.带宽资源耗尽的情况下资源索引仍有剩余
Figure PCTCN2018092826-appb-000002
由此可见,网络设备需要同时有充足的带宽资源和至少一个空闲的资源索引,CSPF运算才能成功返回路径序列,CSPF运算成功时,可以申请到一个资源索引。当控制器获取网 络设备的标识信息及资源索引失败时,可以将请求失败消息发送给发送设备,以使得发送设备获知通信会话的资源预留失败;或者是,当控制器获取网络设备的标识信息及资源索引失败时,不向发送设备发送请求失败消息,发送设备在预设时间段内没收到控制器发送的网络设备的标识信息及资源索引时,确定通信会话的资源预留失败。
703、控制器根据标识信息向网络设备发送资源索引和资源需求信息;
控制器在获取到网络设备的标识信息后,可以根据网络设备的标识信息向对应的网络设备,发送该网络设备的资源索引和网络设备的资源需求信息,以使得网络设备根据接收到的资源需求信息及资源索引为该通信会话配置相应的资源。该资源需求信息是资源预留请求携带的,例如,该资源需求信息可以是带宽资源、最大时延、突发尺寸、最大时延抖动及丢包率等中的至少一种。
可以理解的是,当路径序列上仅存在一个网络设备时,控制器只需将该网络设备对应的资源需求信息及资源索引发送给该网络设备;当路径序列上存在多个网络设备时,控制器需要将每个网络设备对应的资源需求信息及资源索引分别发送给对应的网络设备。
结合图4进行说明,控制器通过协议进程组件向路径序列上的对应的所有网络设备上的流量调度器下发请求消息,该请求消息中携带有资源索引及资源需求信息。
需要说明的是,控制器向网络设备发送资源索引和资源需求信息时,可以根据资源索引和资源需求信息构造资源配置消息,然后将携带有资源索引和资源需求信息的资源配置消息发送给网络设备,以使得网络设备根据资源配置消息为通信会话配置资源。该资源配置消息的类型可根据实际需要进行灵活设备,具体此处不作限定。
704、网络设备根据接收到的资源索引和资源需求信息为该通信会话配置资源;
网络设备在接收到控制器发送的资源索引和资源需求信息后,将为通信会话配置与该资源索引和资源需求信息对应的资源,该资源与资源索引对应,该资源能够满足资源需求信息对应的需求。结合图4进行说明,网络设备上的流量调度器在接收到请求消息后,根据资源索引及资源需求信息为该通信会话配置资源。
705、网络设备在完成资源的配置后,向控制器反馈应答消息;
控制器在将资源需求信息及资源索引发送给网络设备后,向发送设备发送网络设备的标识信息和网络设备的资源索引。为了保证了控制器可以在资源配置完成的情况下向发送设备发送网络设备的标识信息和网络设备的资源索引,网络设备根据接收到控制器发送的资源需求信息及资源索引为通信会话配置资源,在完成资源的配置后,网络设备向控制器反馈应答消息。以使得控制器根据应答消息确定网络设备已经完成资源的配置,以便向发送设备发送网络设备的标识信息和网络设备的资源索引。例如,网络设备上的流量调度器在资源配置完成后,该流量调度器反馈应答消息给控制器上的协议进程组件。该应答消息的类型可根据实际需进行灵活设置,具体此处不作限定。
706、控制器将标识信息和资源索引添加至信令报文中;
707、控制器将携带有标识信息和资源索引的信令报文发送给发送设备;
控制器在接收到网络设备发送的应答消息后,将网络设备的标识信息和网络设备的资源索引发送给发送设备,例如,控制器可以将携带有网络设备的标识信息和网络设备的资 源索引的信令报文发送给发送设备,该信令报文的类型具体此处不作限定。
具体地,结合图4进行说明,控制器上的协议进程组件在接收到应答消息后,获知资源配置完成,此时将对应网络设备的标识信息及资源索引发送给发送设备上的协议进程组件,发送设备上的协议进程组件存储该标识信息及该资源索引,资源预留完成。可以理解的是,控制器上的协议进程组件向对应的网络设备上的流量调度器下发请求消息后,经过预设时间判定资源配置完成,此时将对应网络设备的标识信息及资源索引发送给发送设备上的协议进程组件。
708、发送设备将标识信息和资源索引与通信会话的会话标识进行关联存储;
为了方便后续发送设备在发送通信会话的数据时,将标识信息和资源索引添加至通信会话的数据一起发送,发送设备在接收到控制器发送的标识信息和资源索引后,可以获取通信会话的会话标识,然后将标识信息、资源索引与会话标识进行关联存储,可以是存储在发送设备的本地,也可以是存储在服务器,具体此处不作限定。发送设备在发送通信会话的数据时,先获取与该会话标识对应的已存储的标识信息和资源索引,再将获取到的已存储的标识信息和资源索引添加至数据,将该数据通过网络设备发送给接收设备。
709、当发送设备需要发送通信会话的数据时,发送设备将标识信息和资源索引添加至该数据,向网络设备发送携带有标识信息和资源索引的该数据;
发送设备在发送通信会话的数据时,可以先检测该通信会话是否存储有对应的网络设备的标识信息和网络设备的资源索引。若存储有,则将已存储的网络设备的标识信息和网络设备的资源索引添加至数据,然后将携带有标识信息和资源索引的该数据发送给网络设备,再由网络设备将该数据发送给接收设备,如图5所示。发送设备可以按顺序依次将发送设备与接收设备之间进行通信会话的数据传输所经过的所有网络设备对应的标识信息和资源索引添加至通信会话的数据中。若没有存储,则发送设备直接将通信会话的数据通过网络设备发送给接收设备。
发送设备通过网络设备向接收设备发送的通信会话的数据可以是一种数据报文,也可以是其他种类型的数据,该数据的类型可包括IPv6、IPv4或MPLS等。可以理解的是,该数据的类型还可以包括其他类型,具体此处不作限定。当通信会话的数据的类型为IPv6时,发送设备在发送通信会话的数据时,可以将标识信息和资源索引添加至IPv6的头部,并通过网络设备向接收设备发送该IPv6。例如,可以是扩展IPv6的头部的字段,将标识信息和资源索引添加至IPv6的扩展字段中。当通信会话的数据的类型为IPv4时,发送设备在发送通信会话的数据时,可以将标识信息和资源索引添加至IPv4的头部,并通过网络设备向接收设备发送该IPv4。例如,可以是扩展IPv4的头部的字段,将标识信息和资源索引添加至IPv4的扩展字段中。当通信会话的数据的类型为MPLS时,发送设备在发送通信会话的数据时,可以将标识信息和资源索引添加至MPLS的头部,并通过网络设备向接收设备发送该MPLS。例如,可以是扩展MPLS的头部的字段,将标识信息和资源索引添加至MPLS的扩展字段中。
以下将以IPv6为例进行举例说明,发送设备在发送通信会话的数据时,构造type4的IPv6 routing header,每个环段segment中分别填入各网络设备的标识信息及资源索引, 如表3所示,然后发送设备将routing header通过网络设备发送给接收设备。IPv6 routing header是一种新增类型的routing header(type=4),基于type0的routing header扩展,每个segment中扩展QoS header字段,用于携带QoS资源索引。其中,表3中Address[1]至Address[n]为个网络设备的标识信息,QoS header[1]至QoS header[n]为各网络设备的资源索引。
表3.将网络设备的标识信息及资源索引添加至通信会话的数据中
Figure PCTCN2018092826-appb-000003
710、网络设备从数据中获取标识信息和资源索引;
网络设备接收到发送设备发送的通信会话的数据后,由于该数据中携带有标识信息和资源索引,因此网络设备可以从数据中获取标识信息和资源索引,根据标识信息和资源索引调度对应的资源,将该数据进行转发给接收设备。此时,网络设备不再需要通过流量分类器来获取标识信息和资源索引。
711、网络设备根据标识信息和资源索引转发通信会话的数据给接收设备。
由于发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备可以是一台或多台,因此网络设备接收发送设备发送的通信会话的数据,该数据中携带有该网络设备对应的目标资源索引及相对于该网络设备的下一跳对应的目标标识信息,该目标资源索引包含于发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的资源索引,该目标标识信息包含于数据传输经过网络设备的标识信息。网络设备根据目标资源索引及目标标识信息对数据进行转发。
网络设备根据目标资源索引及目标标识信息对通信会话的数据进行转发的过程中,网络设备先从数据的第一个指令节中获取与网络设备对应的目标资源索引,以及相对于网络设备的下一跳对应的目标标识信息。然后网络设备获取与目标标识信息对应的输出接口,以及在获取到输出接口后删除该目标标识信息。网络设备在自身预置的流量调度器中获取与目标资源索引对应的资源,以及调度该资源,并在获取到该资源后删除该目标资源索引。网络设备将通信会话的数据通过该输出接口及该资源向相对于网络设备的下一跳发送,直至下一跳为接收设备。本实施例中网络设备可以根据数据中按顺序依次存储的发送设备与接收设备之间进行通信会话的数据传输所经过的所有网络设备对应的标识信息和资源索引,对数据进行转发。在网络设备转发数据时,将获取首个指令节中存储的目标标识信息及目标资源索引,例如,以IPv6为例,网络设备弹出routing header中最外层的segment并提取其QoS header中的目标标识信息及目标资源索引,网络设备的流量调度器根据该目的资源索引寻址对应的资源,进行调度。网络设备在使用目标标识信息及目标资源索引后 将其删除,传到下一跳网络设备时,该下一跳网络设备也是获取首个指令节中存储的目标标识信息及目标资源索引,并在使用目标标识信息及目标资源索引后将其删除,直至下一跳为接收设备。
或者是,网络设备根据目标资源索引及目标标识信息对通信会话的数据进行转发的过程中,网络设备先根据其在发送设备与接收设备之间进行通信会话的数据传输所经过的所有网络设备中对应的偏移量,从通信会话的数据中获取与该网络设备对应的目标资源索引,以及相对于该网络设备的下一跳对应的目标标识信息。该偏移量可以表示发送设备与接收设备之间进行通信会话的数据传输所经过的各个网络设备的顺序。然后,网络设备获取与目标标识信息对应的输出接口,以及在网络设备预置的流量调度器中获取与目标资源索引对应的资源,并调度该资源。网络设备将通信会话的数据通过该输出接口及资源向下一跳发送,直至下一跳为接收设备,即发送设备与接收设备之间进行通信会话的数据传输所经过的所有网络设备中的最后一台网络设备时,该最后一台网络设备获取到的目的标识信息为接收设备对应的目的地址。
网络设备在转发通信会话的数据时,当在进行资源调度时,可以通过流量监管来控制流量流速,该流量监管是一种控制流量速率的QoS技术:先设置一个目标流量速率,当网络设备转发数据的流量速率小于或等于该目标流量速率时,流量全部通过;当网络设备转发数据的流量速率大于该目标流量速率时,丢弃超过目标流量速率部分的流量。例如,该流量监管可以是利用漏桶算法来实现,此时QoS的资源对应的就是漏桶资源,QoS的资源索引对应的就是漏桶索引。
利用漏桶算法来实现流量监管具体为:先设置一个漏桶计数器bucket(单位字节),配置上限阈值threshold(单位字节),配置累加速率rate(单位字节/秒)。
假定定时器周期为秒,按照以下逻辑累加漏桶计数器:
bucket=(bucket+rate>threshold)?threshold:bucket+rate;
当存在通信会话的数据packet需要发送时,按照以下逻辑处理:
Figure PCTCN2018092826-appb-000004
通过该漏桶算法实现流量监管,不会导致时延增加,提高了数据发送的效率。
网络设备在转发通信会话的数据时,当在进行资源调度时,还可以通过流量整形来控制流量流速,该流量整形也是一种控制流量速率的QoS技术:先用一个缓冲区接收流量,并以恒定的速率输出流量。一般使用队列实现流量整形:输入数据先进入队列排队,队列中排队的数据按照固定配置的流量速率出队,队列中的数据满之后不允许数据入队,丢弃队列满后进入的该数据对应的流量;队列的数据未满时,为了控制队列长度可以使用某种 策略(例如,RED、CoDel等)主动丢弃队列满后进入的数据对应的流量。若通过队列实现流量整形,则此时QoS的资源对应的就是队列资源,QoS的资源索引对应的就是队列索引。通过队列实现流量整形可以承受突发的能力强。
本实施例中,实现了集中式的资源预留机制和无上下文的转发机制,资源预留申请全部在控制器上完成,通过CSPF算法一次性可判断是否可以成功申请到资源,避免了现有技术中RSVP先申请再回滚的问题。以及网络设备直接在数据的头部获取目标资源索引及目标标识信息,避免了流量分类器的使用,使得网络设备上没有任何的控制面上下文,不需要消耗网络设备的上下文所占用的资源。
下面结合一个具体的应用场景对本申请中的资源预留方法进行详细描述:如图3所示,图3中由网络设备R1~R9、发送设备S、接收设备Rc1、接收设备Rc2以及控制器C组成一个网络,图3中链路两端的数字0~3代表网络设备的接口编号,链路上的数字N1~N15代表链路的带宽资源(其单位是Mbps)。网络设备R1~R9接口的IP地址、发送设备及接收设备的IP地址如表4所示,这里所提到的IP地址与前述提到的标识信息对应,即前述提到的标识信息可以是IP地址。
表4.各个设备接口与IP地址之间的映射关系
Figure PCTCN2018092826-appb-000005
假设发送设备S要通过网络设备向接收设备Rc1发送一条通信会话的保证带宽资源为30Mbps、最大时延为100ms的资源,其五元组为(源IP地址为FFF0::2,目的IP地址为FFF9::2,源端口号为80,目的端口为80,协议号为6),图3中每条链路N1~N15的带宽资源均为50Mbps,每个网络设备存在的资源索引为0~100。
首先,发送设备S向控制器C发送资源预留请求,该资源预留请求中携带有接收设备Rc1对应的目的地址为FFF9::2、QoS的资源需求包括带宽资源为30Mbps及时延要求为100ms等,该资源预留请求中还可以携带五元组(FFF0::2,FFF9::2,80,80,6)。
其次,控制器C接收到资源预留请求后,进行CSPF运算,此时由于每条链路的带宽资源均为50Mbps,都大于资源需求中的30Mbps,因此没有要排除的链路,从而得到最短路径为R1(2)→R5(2)→R6(2)→R4(2),即发送设备S与接收设备Rc1之间进行该通信会话的数 据传输所经过的网络设备依次为网络设备R1→网络设备R5→网络设备R6→网络设备R4,每个网络设备的输出接口的编号均为2,根据表1得到网络设备R1、R5、R6、R4对应的IP地址分别为FFF2::1、FFFB::1、FFF8::2、FFF9::1。在确定数据传输所经过网络设备的IP地址后,控制器C遍历该网络设备的资源获取对应的资源索引,此时每个网络设备的资源索引均没有耗尽,得到资源索引列表为(10,100,20,100),即得到网络设备R1对应的资源索引为10,得到网络设备R5对应的资源索引为100,得到网络设备R6对应的资源索引为20,得到网络设备R4对应的资源索引为100。
控制器C在得到网络设备的IP地址与对应的资源索引后,分别向网络设备R1、R5、R6、R4发送携带有资源索引、带宽资源为30Mbps及时延要求为100ms等资源需求的资源配置消息。网络设备R1、R5、R6、R4根据接收到的资源配置消息分别为该通信会话配置对应的资源,即网络设备R1为该通信会话预留资源索引为10、带宽资源为30Mbps及时延为100ms的资源,网络设备R5为该通信会话预留资源索引为100、带宽资源为30Mbps及时延为100ms的资源,网络设备R6为该通信会话预留资源索引为20、带宽资源为30Mbps及时延为100ms的资源,网络设备R4为该通信会话预留资源索引为100、带宽资源为30Mbps及时延为100ms的资源。网络设备R1、R5、R6、R4在完成资源的配置后,向控制器C反馈应答消息,以通知控制器C资源配置完成。
控制器C在接收到网络设备R1、R5、R6、R4的应答消息后,将得到的网络设备的IP地址与资源索引发送给发送设备S,由于发送设备S是通过网络设备R1接入网络的,因此,控制器C不需要将网络设备R1的IP地址发送给发送设备S,而需将网络设备R5、R6、R4、接收设备的Rc1的IP地址、以及得到的资源索引发送给发送设备S。
再次,发送设备S将接收到的网络设备的IP地址与资源索引,与该通信会话的会话标识进行关联存储,例如,发送设备S将网络设备的IP地址、网络设备的资源索引、及(FFF0::2,FFF9::2,80,80,6)形成映射关系的指令串存储在本地,该指令串可以是按顺序依次由发送设备S与接收设备Rc1之间进行通信会话的数据传输所经过的网络设备的IP地址和资源索引形成的串。当发送设备S需要发送该通信会话的数据时,根据会话标识侦测到存储有该通信会话的指令串,此时发送设备S获取该指令串插入数据的头部,随数据一起发送给网络设备。具体地,发送设备S可以构造IPv6 routing header形式的指令串,在IPv6 routing header中新增routing header(type=4),基于type0的routing header扩展,在每个环段segment中扩展字段,填入得到的各网络设备的IP地址以及资源索引,如下表5所示:
表5.各网络设备的IP地址以及资源索引添加至IPv6
Figure PCTCN2018092826-appb-000006
最后,发送设备S先通过网络设备R1将携带有IP地址及资源索引组成的指令串的数据发送给网络设备R5,
具体地,网络设备R1在接收到发送设备的通信会话的数据后,检查到该数据中携带有指令串,此时网络设备R1弹出第一个指令节,得到下一跳地址为FFFB::1,查找路由表得到输出接口为2,该第一个指令节被弹出后在数据的头部中将不存在(例如,被删除),得到的该下一跳地址为网络设备R5对应的IP地址。网络设备R1把数据通过网络设备R1内部的交换网送到接口2所在下行线卡,数据在下行线卡的调度器中用索引10获取带宽资源进行调度发送到下一跳,即发送给网络设备R5。
网络设备R5在接收到数据后,弹出第一个指令节,得到下一跳地址为FFF8::1,查找路由表得到输出接口为2,把数据通过交换网送到接口2所在下行线卡,数据在下行线卡的调度器中用索引100获取带宽资源进行调度发送到下一跳,即发送给网络设备R6。
网络设备R6在接收到数据后,弹出第一个指令节,得到下一跳地址为FFF9::1,查找路由表得到输出接口为2,把数据通过交换网送到接口2所在下行线卡,数据在下行线卡的调度器中用索引20获取带宽资源进行调度发送到下一跳,即发送给网络设备R4。
网络设备R4在接收到数据后,弹出第一个指令节,得到下一跳地址为FFF9::2,查找路由表得到输出接口为2,把数据通过交换网送到接口2所在下行线卡,数据在下行线卡的调度器中用索引100获取带宽资源进行调度发送到下一跳,即发送给接收设备Rc1。最终接收设备Rc1接收到该通信会话的数据,完成了通过预留的资源执行数据转发的过程。
上面对本申请实施例中资源预留方法进行了描述,下面对本申请实施例中资源预留装置进行描述,请参阅图8,本申请实施例中资源预留装置一个实施例包括:
接收单元801,用于接收发送设备发送的通信会话的资源预留请求,资源预留请求中携带有资源需求信息;
获取单元802,用于根据接收单元801接收到的资源预留请求,获取发送设备与接收设备之间进行通信会话的数据传输所经过的网络设备的标识信息及网络设备的资源索引;
第一发送单元803,用于根据获取单元802获取到的标识信息向网络设备发送接收单元801接收到的资源需求信息及获取单元802获取到的资源索引,资源需求信息及资源索引用于指示网络设备为通信会话配置资源;
第二发送单元804,用于向发送设备发送获取单元802获取到的标识信息和资源索引。
需要说明的是,本申请实施例中,资源预留装置中各个单元所执行的流程与前述图3至图6所示的实施例中描述的方法流程类似,此处不再赘述。
本申请实施例的一些实施例中,第二发送单元804具体用于,接收网络设备根据资源需求信息及资源索引完成资源预留后反馈的应答消息,根据应答消息向发送设备发送获取单元802获取到的标识信息和资源索引。
本申请实施例的一些实施例中,资源预留请求还携带有接收设备对应的目的地址,获取单元802具体用于,根据接收单元801接收到的资源需求信息及目的地址,获取标识信息及资源索引。
本申请实施例的一些实施例中,获取单元802包括:第一获取子单元,用于通过访问控制器自身维护的所有网络设备的资源获取网络设备的空闲资源;第二获取子单元,用于根据接收单元801接收到的资源需求信息、接收单元801接收到的目的地址及第一获取子单元获取到的空闲资源,获取标识信息;分配子单元,用于为通信会话分配资源索引。
本申请实施例的一些实施例中,第二获取子单元具体用于,从网络中获取满足资源需求信息、目的地址及空闲资源的路径;从路径中获取发送设备与接收设备之间进行数据传输所经过的最短路径;根据最短路径确定标识信息。
本申请实施例的一些实施例中,第二发送单元804具体用于,将获取单元802获取到的标识信息和资源索引添加至信令报文中,向发送设备发送携带标识信息和资源索引的信令报文。
本申请实施例的一些实施例中,资源索引包括漏桶索引或队列索引。
本申请实施例的一些实施例中,资源需求信息包括带宽资源、突发尺寸、最大时延、最大时延抖动和丢包率中的至少一个。
需要说明的是,本申请实施例的一些实施例中,资源预留装置中各个单元所执行的流程与前述图3至图7所示的实施例中描述的方法流程类似,此处不再赘述。
请参阅图9,本申请实施例中资源预留装置另一实施例包括:
第一发送单元901,用于向控制器发送通信会话的资源预留请求;
接收单元902,用于接收控制器根据第一发送单元901发送的资源预留请求反馈的反馈信息,反馈信息中携带有通信会话的数据传输所经过的网络设备的标识信息和网络设备的资源索引;
第二发送单元903,用于将接收单元902接收到的标识信息和资源索引添加至通信会话的数据,通过网络设备向接收设备发送数据。
本申请实施例的一些实施例中,资源预留装置还包括:获取单元,用于获取通信会话的会话标识;存储单元,用于接收单元902接收到的将标识信息、接收单元902接收到的资源索引与获取单元获取到的会话标识进行关联存储;第二发送单元903具体用于,根据获取单元获取到的会话标识获取已存储的标识信息和资源索引,将标识信息和资源索引添加至数据,通过网络设备向接收设备发送数据。
本申请实施例的一些实施例中,数据的类型包括互联网通讯协定第六版IPv6、互联网通讯协定第四版IPv4、或多协议标签交换MPLS。
本申请实施例的一些实施例中,第二发送单元903具体用于,将标识信息和资源索引添加至IPv6、IPv4或MPLS的头部,通过网络设备向接收设备发送IPv6、IPv4或MPLS。
需要说明的是,本申请实施例中资源预留装置中各个单元所执行的流程与前述图3至图7所示的实施例中描述的方法流程类似,此处不再赘述。
请参阅图10,本申请实施例中资源预留装置另一实施例包括:
第一接收单元1001,用于接收控制器发送的通信会话的资源需求信息及资源索引;
配置单元1002,用于根据第一接收单元1001接收到的资源需求信息及资源索引为通信会话配置资源,资源与资源索引对应;
第二接收单元1003,用于接收发送设备发送的通信会话的数据,数据中携带有网络设备对应的目标资源索引及相对于网络设备的下一跳对应的目标标识信息,目标资源索引包含于资源索引,目标标识信息包含于数据传输经过网络设备的标识信息;
转发单元1004,用于根据第二接收单元1003接收到的目标资源索引及目标标识信息,对第二接收单元1003接收到的数据进行转发。
本申请实施例的一些实施例中,资源预留装置还包括:反馈单元,用于在配置单元1002完成资源的配置后,向控制器反馈应答消息。
本申请实施例的一些实施例中,转发单元1004具体用于,从第二接收单元1003接收到的数据的第一个指令节中获取与网络设备对应的目标资源索引,以及相对于网络设备的下一跳对应的目标标识信息;获取与目标标识信息对应的输出接口;删除目标标识信息;获取与目标资源索引对应的资源;删除目标资源索引;将数据通过输出接口及资源向相对于网络设备的下一跳发送,直至下一跳为接收设备。
本申请实施例的一些实施例中,转发单元1004具体用于,根据网络设备对应的偏移量从第二接收单元1003接收到的数据中,获取与网络设备对应的目标资源索引,以及相对于网络设备的下一跳对应的目标标识信息;获取与目标标识信息对应的输出接口;获取与目标资源索引对应的资源;将数据通过输出接口及资源向相对于网络设备的下一跳发送,直至下一跳为接收设备。
本申请实施例的一些实施例中,资源索引包括漏桶索引或队列索引。
本申请实施例的一些实施例中,资源需求信息包括带宽资源、突发尺寸、最大时延、最大时延抖动和丢包率中的至少一个。
需要说明的是,本申请实施例中资源预留装置中各个单元所执行的流程与前述图3至图7所示的实施例中描述的方法流程类似,此处不再赘述。
上面从模块化功能实体的角度对本申请实施例中的资源预留装置进行描述,下面从硬件处理的角度对本申请实施例中的控制器进行描述,请参阅图11,本申请实施例中的控制器一个实施例包括:
输入装置1101、输出装置1102、处理器1103和存储器1104(其中网络设备中的处理器1103的数量可以一个或多个,图11中以一个处理器1103为例)。在本申请的一些实施例中,输入装置1101、输出装置1102、处理器1103和存储器1104可通过总线或其它方式连接,其中,图11中以通过总线连接为例。其中,存储器1104中存储有程序代码,通过 调用存储器1104存储的程序代码,处理器1103用于执行如前述图3至图7所示实施例的方法。
本申请实施例中的发送设备一个实施例包括:输入装置、输出装置、处理器和存储器(其中网络设备中的处理器的数量可以一个或多个)。在本申请的一些实施例中,输入装置、输出装置、处理器和存储器可通过总线或其它方式连接。其中,存储器中存储有程序代码,通过调用存储器存储的程序代码,处理器用于执行如前述图3至图7所示实施例的方法。
本申请实施例中的网络设备一个实施例包括:输入装置、输出装置、处理器和存储器(其中网络设备中的处理器的数量可以一个或多个)。在本申请的一些实施例中,输入装置、输出装置、处理器和存储器可通过总线或其它方式连接。其中,存储器中存储有程序代码,通过调用存储器存储的程序代码,处理器用于执行如前述图3至图7所示实施例的方法。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (40)

  1. 一种资源预留方法,其特征在于,包括:
    控制器接收发送设备发送的通信会话的资源预留请求,所述资源预留请求中携带有资源需求信息;
    所述控制器根据所述资源预留请求,获取所述发送设备与接收设备之间进行所述通信会话的数据传输所经过的网络设备的标识信息及所述网络设备的资源索引;
    所述控制器根据所述标识信息向所述网络设备发送所述资源需求信息及所述资源索引,所述资源需求信息及所述资源索引用于指示所述网络设备为所述通信会话配置资源;
    所述控制器向所述发送设备发送所述标识信息和所述资源索引。
  2. 根据权利要求1所述的方法,其特征在于,所述控制器向所述发送设备发送所述标识信息和所述资源索引包括:
    所述控制器接收所述网络设备根据所述资源需求信息及所述资源索引完成资源预留后反馈的应答消息;
    所述控制器根据所述应答消息向所述发送设备发送所述标识信息和所述资源索引。
  3. 根据权利要求1所述的方法,其特征在于,所述资源预留请求还携带有所述接收设备对应的目的地址,所述控制器根据所述资源预留请求,获取所述发送设备与接收设备之间进行所述通信会话的数据传输所经过的网络设备的标识信息及所述网络设备的资源索引包括:
    所述控制器根据所述资源需求信息及所述目的地址,获取所述标识信息及所述资源索引。
  4. 根据权利要求3所述的方法,其特征在于,所述控制器根据所述资源需求信息及所述目的地址,获取所述标识信息及所述资源索引包括:
    所述控制器通过访问自身维护的所有网络设备的资源获取所述网络设备的空闲资源;
    所述控制器根据所述资源需求信息、所述目的地址及所述空闲资源,获取所述标识信息;
    所述控制器为所述通信会话分配所述资源索引。
  5. 根据权利要求4所述的方法,其特征在于,所述控制器根据所述资源需求信息、所述目的地址及所述空闲资源,获取所述标识信息包括:
    所述控制器从网络中获取满足所述资源需求信息、所述目的地址及所述空闲资源的路径;
    所述控制器从所述路径中获取所述发送设备与所述接收设备之间进行所述数据传输所经过的最短路径;
    所述控制器根据所述最短路径确定所述标识信息。
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述控制器向所述发送设备发送所述标识信息和所述资源索引包括:
    所述控制器将所述标识信息和所述资源索引添加至信令报文中;
    所述控制器向所述发送设备发送携带所述标识信息和所述资源索引的所述信令报文。
  7. 根据权利要求1至5中任一项所述的方法,其特征在于,所述资源索引包括漏桶索引或队列索引。
  8. 根据权利要求1至5中任一项所述的方法,其特征在于,所述资源需求信息包括带宽资源、突发尺寸、最大时延、最大时延抖动和丢包率中的至少一个。
  9. 一种资源预留方法,其特征在于,包括:
    发送设备向控制器发送通信会话的资源预留请求;
    所述发送设备接收所述控制器根据所述资源预留请求反馈的反馈信息,所述反馈信息中携带有所述通信会话的数据传输所经过的网络设备的标识信息和所述网络设备的资源索引;
    所述发送设备将所述标识信息和所述资源索引添加至所述通信会话的数据,通过所述网络设备向接收设备发送所述数据。
  10. 根据权利要求9所述的方法,其特征在于,所述发送设备将所述标识信息和所述资源索引添加至所述通信会话的数据之前,所述方法还包括:
    所述发送设备获取所述通信会话的会话标识;
    所述发送设备将所述标识信息、所述资源索引与所述会话标识进行关联存储;
    所述发送设备将所述标识信息和所述资源索引添加至所述通信会话的数据包括:
    所述发送设备根据所述会话标识获取已存储的所述标识信息和所述资源索引;
    所述发送设备将所述标识信息和所述资源索引添加至所述数据。
  11. 根据权利要求9或10所述的方法,其特征在于,所述数据的类型包括互联网通讯协定第六版IPv6、互联网通讯协定第四版IPv4、或多协议标签交换MPLS。
  12. 根据权利要求11所述的方法,其特征在于,所述发送设备将所述标识信息和所述资源索引添加至所述通信会话的数据包括:
    所述发送设备将所述标识信息和所述资源索引添加所述IPv6、所述IPv4或所述MPLS的头部。
  13. 一种资源预留方法,其特征在于,包括:
    网络设备接收控制器发送的通信会话的资源需求信息及资源索引;
    所述网络设备根据所述资源需求信息及所述资源索引为所述通信会话配置资源,所述资源与所述资源索引对应;
    所述网络设备接收发送设备发送的所述通信会话的数据,所述数据中携带有所述网络设备对应的目标资源索引及相对于所述网络设备的下一跳对应的目标标识信息,所述目标资源索引包含于所述资源索引,所述目标标识信息包含于所述数据传输经过网络设备的标识信息;
    所述网络设备根据所述目标资源索引及所述目标标识信息对所述数据进行转发。
  14. 根据权利要求13所述的方法,其特征在于,所述网络设备根据所述资源需求信息及所述资源索引为所述通信会话配置资源之后,所述方法还包括:
    在完成所述资源的配置后,所述网络设备向所述控制器反馈应答消息。
  15. 根据权利要求13或14所述的方法,其特征在于,所述网络设备根据所述目标资 源索引及所述目标标识信息对所述数据进行转发包括:
    所述网络设备从所述数据的第一个指令节中获取与所述网络设备对应的所述目标资源索引,以及相对于所述网络设备的下一跳对应的所述目标标识信息;
    所述网络设备获取与所述目标标识信息对应的输出接口;
    所述网络设备删除所述目标标识信息;
    所述网络设备获取与所述目标资源索引对应的资源;
    所述网络设备删除所述目标资源索引;
    所述网络设备将所述数据通过所述输出接口及所述资源向相对于网络设备的下一跳发送,直至下一跳为所述接收设备。
  16. 根据权利要求13或14所述的方法,其特征在于,所述网络设备根据所述目标资源索引及所述目标标识信息对所述数据进行转发包括:
    所述网络设备根据所述网络设备对应的偏移量从所述数据中,获取与所述网络设备对应的所述目标资源索引,以及相对于所述网络设备的下一跳对应的所述目标标识信息;
    所述网络设备获取与所述目标标识信息对应的输出接口;
    所述网络设备获取与所述目标资源索引对应的资源;
    所述网络设备将所述数据通过所述输出接口及所述资源向相对于网络设备的下一跳发送,直至下一跳为所述接收设备。
  17. 根据权利要求13或14所述的方法,其特征在于,所述资源索引包括漏桶索引或队列索引。
  18. 根据权利要求13或14所述的方法,其特征在于,所述资源需求信息包括带宽资源、突发尺寸、最大时延、最大时延抖动和丢包率中的至少一个。
  19. 一种资源预留装置,其特征在于,包括:
    接收单元,用于接收发送设备发送的通信会话的资源预留请求,所述资源预留请求中携带有资源需求信息;
    获取单元,用于根据所述接收单元接收到的所述资源预留请求,获取所述发送设备与接收设备之间进行所述通信会话的数据传输所经过的网络设备的标识信息及所述网络设备的资源索引;
    第一发送单元,用于根据所述获取单元获取到的所述标识信息向所述网络设备发送所述接收单元接收到的所述资源需求信息及所述获取单元获取到的所述资源索引,所述资源需求信息及所述资源索引用于指示所述网络设备为所述通信会话配置资源;
    第二发送单元,用于向所述发送设备发送所述获取单元获取到的所述标识信息和所述资源索引。
  20. 根据权利要求19所述的装置,其特征在于,所述第二发送单元具体用于,接收所述网络设备根据所述资源需求信息及所述资源索引完成资源预留后反馈的应答消息,根据所述应答消息向所述发送设备发送所述获取单元获取到的所述标识信息和所述资源索引。
  21. 根据权利要求19所述的装置,其特征在于,所述资源预留请求还携带有所述接收设备对应的目的地址,所述获取单元具体用于,根据所述接收单元接收到的所述资源需求 信息及所述目的地址,获取所述标识信息及所述资源索引。
  22. 根据权利要求21所述的装置,其特征在于,所述获取单元包括:
    第一获取子单元,用于通过访问控制器自身维护的所有网络设备的资源获取所述网络设备的空闲资源;
    第二获取子单元,用于根据所述接收单元接收到的所述资源需求信息、所述接收单元接收到的所述目的地址及所述第一获取子单元获取到的所述空闲资源,获取所述标识信息;
    分配子单元,用于为所述通信会话分配所述资源索引。
  23. 根据权利要求22所述的装置,其特征在于,所述第二获取子单元具体用于,从网络中获取满足所述资源需求信息、所述目的地址及所述空闲资源的路径;
    从所述路径中获取所述发送设备与所述接收设备之间进行所述数据传输所经过的最短路径;
    根据所述最短路径确定所述标识信息。
  24. 根据权利要求19至23中任一项所述的装置,其特征在于,所述第二发送单元具体用于,将所述获取单元获取到的所述标识信息和所述资源索引添加至信令报文中,向所述发送设备发送携带所述标识信息和所述资源索引的所述信令报文。
  25. 根据权利要求19至23中任一项所述的装置,其特征在于,所述资源索引包括漏桶索引或队列索引。
  26. 根据权利要求19至23中任一项所述的装置,其特征在于,所述资源需求信息包括带宽资源、突发尺寸、最大时延、最大时延抖动和丢包率中的至少一个。
  27. 一种资源预留装置,其特征在于,包括:
    第一发送单元,用于向控制器发送通信会话的资源预留请求;
    接收单元,用于接收所述控制器根据所述第一发送单元发送的所述资源预留请求反馈的反馈信息,所述反馈信息中携带有所述通信会话的数据传输所经过的网络设备的标识信息和所述网络设备的资源索引;
    第二发送单元,用于将所述接收单元接收到的所述标识信息和所述资源索引添加至所述通信会话的数据,通过所述网络设备向接收设备发送所述数据。
  28. 根据权利要求27所述的装置,其特征在于,所述装置还包括:
    获取单元,用于获取所述通信会话的会话标识;
    存储单元,用于所述接收单元接收到的将所述标识信息、所述接收单元接收到的所述资源索引与所述获取单元获取到的所述会话标识进行关联存储;
    所述第二发送单元具体用于,根据所述获取单元获取到的所述会话标识获取已存储的所述标识信息和所述资源索引,将所述标识信息和所述资源索引添加至所述数据,通过所述网络设备向接收设备发送所述数据。
  29. 根据权利要求27或28所述的装置,其特征在于,所述数据的类型包括互联网通讯协定第六版IPv6、互联网通讯协定第四版IPv4、或多协议标签交换MPLS。
  30. 根据权利要求29所述的装置,其特征在于,所述第二发送单元具体用于,将所述标识信息和所述资源索引添加至所述IPv6、所述IPv4或所述MPLS的头部,通过所述网络 设备向接收设备发送所述IPv6、所述IPv4或所述MPLS。
  31. 一种资源预留装置,其特征在于,包括:
    第一接收单元,用于接收控制器发送的通信会话的资源需求信息及资源索引;
    配置单元,用于根据所述第一接收单元接收到的所述资源需求信息及所述资源索引为所述通信会话配置资源,所述资源与所述资源索引对应;
    第二接收单元,用于接收发送设备发送的所述通信会话的数据,所述数据中携带有网络设备对应的目标资源索引及相对于所述网络设备的下一跳对应的目标标识信息,所述目标资源索引包含于所述资源索引,所述目标标识信息包含于所述数据传输经过网络设备的标识信息;
    转发单元,用于根据所述第二接收单元接收到的所述目标资源索引及所述目标标识信息,对所述第二接收单元接收到的所述数据进行转发。
  32. 根据权利要求31所述的装置,其特征在于,所述装置还包括:
    反馈单元,用于在所述配置单元完成所述资源的配置后,向所述控制器反馈应答消息。
  33. 根据权利要求31或32所述的装置,其特征在于,所述转发单元具体用于,从所述第二接收单元接收到的所述数据的第一个指令节中获取与所述网络设备对应的所述目标资源索引,以及相对于所述网络设备的下一跳对应的所述目标标识信息;
    获取与所述目标标识信息对应的输出接口;
    删除所述目标标识信息;
    获取与所述目标资源索引对应的资源;
    删除所述目标资源索引;
    将所述数据通过所述输出接口及所述资源向相对于网络设备的下一跳发送,直至下一跳为所述接收设备。
  34. 根据权利要求31或32所述的装置,其特征在于,所述转发单元具体用于,根据所述网络设备对应的偏移量从所述第二接收单元接收到的所述数据中,获取与所述网络设备对应的所述目标资源索引,以及相对于所述网络设备的下一跳对应的所述目标标识信息;
    获取与所述目标标识信息对应的输出接口;
    获取与所述目标资源索引对应的资源;
    将所述数据通过所述输出接口及所述资源向相对于网络设备的下一跳发送,直至下一跳为所述接收设备。
  35. 根据权利要求31或32所述的装置,其特征在于,所述资源索引包括漏桶索引或队列索引。
  36. 根据权利要求31或32所述的装置,其特征在于,所述资源需求信息包括带宽资源、突发尺寸、最大时延、最大时延抖动和丢包率中的至少一个。
  37. 一种控制器,其特征在于,包括:
    处理器、存储器、总线、输入装置以及输出装置;
    所述存储器中存储有程序代码;
    所述处理器调用所述存储器中的程序代码时执行如权利要求1至8中任一项所述的资 源预留方法。
  38. 一种发送设备,其特征在于,包括:
    处理器、存储器、总线、输入装置以及输出装置;
    所述存储器中存储有程序代码;
    所述处理器调用所述存储器中的程序代码时执行如权利要求9至12中任一项所述的资源预留方法。
  39. 一种网络设备,其特征在于,包括:
    处理器、存储器、总线、输入装置以及输出装置;
    所述存储器中存储有程序代码;
    所述处理器调用所述存储器中的程序代码时执行如权利要求13至18中任一项所述的资源预留方法。
  40. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述权利要求1至18中任一所述的资源预留方法。
PCT/CN2018/092826 2017-08-08 2018-06-26 一种资源预留方法以及相关设备 WO2019029284A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP18844895.5A EP3664389B1 (en) 2017-08-08 2018-06-26 Resource reservation method and related apparatus
US16/785,181 US11310167B2 (en) 2017-08-08 2020-02-07 Resource reservation method and related device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710671867.3A CN109391563B (zh) 2017-08-08 2017-08-08 一种资源预留方法以及相关设备
CN201710671867.3 2017-08-08

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/785,181 Continuation US11310167B2 (en) 2017-08-08 2020-02-07 Resource reservation method and related device

Publications (1)

Publication Number Publication Date
WO2019029284A1 true WO2019029284A1 (zh) 2019-02-14

Family

ID=65272846

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/092826 WO2019029284A1 (zh) 2017-08-08 2018-06-26 一种资源预留方法以及相关设备

Country Status (4)

Country Link
US (1) US11310167B2 (zh)
EP (1) EP3664389B1 (zh)
CN (1) CN109391563B (zh)
WO (1) WO2019029284A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11337184B2 (en) * 2019-04-25 2022-05-17 Hyundai Motor Company Method and apparatus for transmitting and receiving data stream performed in vehicle network
JP6678833B1 (ja) * 2019-04-26 2020-04-08 三菱電機株式会社 ネットワークコントローラ
CN111917662B (zh) * 2019-05-07 2024-04-26 华为技术有限公司 一种带宽预留方法及相关设备
CN112804687B (zh) 2019-11-14 2023-04-11 华为技术有限公司 一种资源分配方法、装置、系统及存储介质
CN113395735B (zh) * 2020-03-11 2023-07-07 华为技术有限公司 一种报文传输方法、装置和网络设备
CN114844862B (zh) * 2021-01-15 2023-09-05 大唐移动通信设备有限公司 资源处理方法、装置及通信设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309229A (zh) * 2008-07-16 2008-11-19 中兴通讯股份有限公司 一种多协议标签交换架构网络资源接纳控制的方法
US20150063112A1 (en) * 2013-08-30 2015-03-05 Futurewei Technologies Inc. Dynamic priority queue mapping for qos routing in software defined networks
CN106921594A (zh) * 2015-12-28 2017-07-04 中国科学院沈阳自动化研究所 一种面向工业SDN的动态网络资源预留QoS保障方法

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6021263A (en) * 1996-02-16 2000-02-01 Lucent Technologies, Inc. Management of ATM virtual circuits with resources reservation protocol
US6563793B1 (en) * 1998-11-25 2003-05-13 Enron Warpspeed Services, Inc. Method and apparatus for providing guaranteed quality/class of service within and across networks using existing reservation protocols and frame formats
US7441267B1 (en) * 2003-03-19 2008-10-21 Bbn Technologies Corp. Method and apparatus for controlling the flow of data across a network interface
EP2095570B1 (fr) * 2006-12-06 2017-08-23 Thomson Licensing Systeme de reservation de bande passante pour differentes classes de trafic
US9419893B2 (en) * 2013-11-11 2016-08-16 Futurewei Technologies, Inc. Traffic engineering resource collection and coordination
CN103634203B (zh) * 2013-11-29 2018-04-03 北京奇虎科技有限公司 消息异步传输方法、装置和系统
CN105516025B (zh) * 2014-09-23 2019-02-05 杭州华为数字技术有限公司 端到端的路径控制和数据传输方法、OpenFlow控制器和交换机
CN107852371B (zh) * 2015-08-06 2021-06-29 英国电讯有限公司 数据分组网络
CN105357068B (zh) * 2015-11-03 2018-06-12 华中科技大学 一种面向应用QoS保障的OpenFlow网络流量控制方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309229A (zh) * 2008-07-16 2008-11-19 中兴通讯股份有限公司 一种多协议标签交换架构网络资源接纳控制的方法
US20150063112A1 (en) * 2013-08-30 2015-03-05 Futurewei Technologies Inc. Dynamic priority queue mapping for qos routing in software defined networks
CN106921594A (zh) * 2015-12-28 2017-07-04 中国科学院沈阳自动化研究所 一种面向工业SDN的动态网络资源预留QoS保障方法

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DONG SHUNA: "The Design of Resource system in SDN Network", ELECTRONIC TECHNOLOGY & INFORMATION SCIENCE, CHINA MASTER'S THESES, 16 August 1504 (1504-08-16), pages 25 - 47 *
See also references of EP3664389A4

Also Published As

Publication number Publication date
EP3664389A4 (en) 2020-07-15
EP3664389B1 (en) 2022-08-31
US20200244591A1 (en) 2020-07-30
US11310167B2 (en) 2022-04-19
CN109391563B (zh) 2022-04-05
EP3664389A1 (en) 2020-06-10
CN109391563A (zh) 2019-02-26

Similar Documents

Publication Publication Date Title
WO2019029284A1 (zh) 一种资源预留方法以及相关设备
US6765927B1 (en) RSVP proxy service for communication network
US7535829B2 (en) Tunnel reroute
JP4796157B2 (ja) ネットワーク通信における資源配分を実施するためのシステム及び方法
EP2005313B1 (en) Facilitating application synchronization with a reservation protocol at a sender without application receiver participation
EP1739914B1 (en) Method, apparatus, edge router and system for providing a guarantee of the quality of service (qos)
US7801036B2 (en) Fairness of capacity allocation for an MPLS-based VPN
US8031603B1 (en) Technique for reducing resources allocated to an existing reservation in a data network
JP3977331B2 (ja) Ip通信網における方法及び装置
CN108471629A (zh) 传输网络中业务服务质量的控制方法、设备及系统
WO2015101066A1 (zh) 建立服务质量预留的方法及节点
JP2018511275A (ja) Tcpトンネル及びネイティブtcp情報に基づくバンドリングシナリオにおけるパケットのスケジューリングのための方法及びシステム
US9294416B2 (en) Method of and apparatus for configuring quality of service
JP2014225877A (ja) ネットワークシステム及びアクセスコントローラ並びにネットワークシステムを運用する方法
JP2016518782A (ja) 有線接続を管理する方法および接続マネージャ
TW200527927A (en) Transport network control signalling
US8681613B2 (en) Method for establishing and terminating service flow via relay nodes using tunnel mechanism
WO2023279818A1 (zh) 确定性流的转发方法及装置、存储介质及电子装置
JP2001352347A (ja) 通信ネットワークのためのrsvpプロキシサービス
EP1311092A1 (en) Method and modules for setting up a tunnel connection
KR100766033B1 (ko) 에스아이피와 알에스브이피-티이를 이용한 종단간 서비스품질 보장방법
Riabov Gigabit Ethernet, QoS, and Multimedia Applications.
KR20040040448A (ko) 아이피 네트워크에서의 방법 및 배열

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018844895

Country of ref document: EP

Effective date: 20200309