WO2017054473A1 - 一种处理报文的方法、sdn控制器及网元 - Google Patents

一种处理报文的方法、sdn控制器及网元 Download PDF

Info

Publication number
WO2017054473A1
WO2017054473A1 PCT/CN2016/083033 CN2016083033W WO2017054473A1 WO 2017054473 A1 WO2017054473 A1 WO 2017054473A1 CN 2016083033 W CN2016083033 W CN 2016083033W WO 2017054473 A1 WO2017054473 A1 WO 2017054473A1
Authority
WO
WIPO (PCT)
Prior art keywords
network element
pause frame
information
port
sdn controller
Prior art date
Application number
PCT/CN2016/083033
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 中兴通讯股份有限公司
Publication of WO2017054473A1 publication Critical patent/WO2017054473A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control

Definitions

  • This application relates to, but is not limited to, the field of communications.
  • FIG. 1 is a schematic diagram of the SDN network component architecture, as shown in Figure 1.
  • the SDN network adopts an architecture in which the control plane is separated from the data plane.
  • the control plane of the SDN network is implemented by the SDN controller.
  • the data plane of the SDN network is implemented by the network element, and the SDN controller and the network element pass the SDN southbound interface.
  • the OpenFlow (open flow) protocol interface is connected; the SDN controller sends a forwarding table to the network element through the SDN southbound interface, thereby achieving the purpose of controlling data forwarding, and realizing the separation of data forwarding and forwarding control.
  • the network element when the network element receives a data packet that cannot match the forwarding table, it will send it to the SDN controller for processing; after receiving the data packet reported by the network element, the SDN controller receives the data packet.
  • the packet header of the data packet is analyzed, and then the forwarding table for the data packet is sent to the network element. After the subsequent data packet arrives at the network element, the forwarding table sent by the SDN controller is configured. Therefore, such data packets can be directly forwarded without being sent to the SDN controller for processing.
  • An SDN network usually contains a large number of network elements, and each network element can be connected to a large number of terminal devices. Therefore, before the network is stable, the SDN controller receives a large number of unrecognizable reports reported by the network element in a short period of time.
  • the message processing capability of the SDN controller is limited, and the SDN controller and the network element are often caused by the loss of the packet due to the inability to process such a large number of reported messages. Broken chain between.
  • This document provides a method for processing messages, an SDN controller, and a network element to alleviate the processing pressure of the SDN controller.
  • a method of processing a message comprising:
  • the software-defined network SDN controller determines that the number of received messages in the first specified time period reaches a first threshold
  • the SDN controller sends a pause frame sending indication message to the network element of the packet, and the network element is instructed to send a pause frame to the network element and/or the terminal adjacent to the network element.
  • the foregoing method further has the following features:
  • the SDN controller After the SDN controller establishes a control connection with the network element, the SDN controller sends a query message for querying the port capability of the network element to the network element;
  • the SDN controller receives a response message returned by the network element, where the response message carries information of the priority-based pause frame of the port of the network element.
  • the foregoing method further has the following feature: the pause frame sending indication message further carries one or more of the following:
  • the packet carried in the packet enters the port information when the network element of the packet is reported, and indicates that the network element sends a pause frame from the designated port.
  • the priority information carried by the packet indicates that the network element sends a priority-based pause frame to the outside;
  • the flow information of the packet carried in the packet indicating that the network element sends a pause frame for the specified stream to the outside;
  • the foregoing method further has the following features:
  • the SDN controller After the SDN controller sends the pause frame sending indication message to the network element of the packet, the SDN controller determines that the number of the reported message in the second specified time period is less than the second threshold;
  • a pause frame stop sending indication message to the network element, indicating the network
  • the element stops transmitting a pause frame to the network element and/or terminal adjacent to the network element.
  • the foregoing method further has the following feature: the pause frame stop sending indication message further carries one or more of the following:
  • Port information indicating that the network element stops sending the pause frame from the designated port.
  • the priority information indicates that the network element stops sending the pause frame for the specified priority.
  • Flow information indicating that the network element stops sending a pause frame for the specified stream.
  • a software defined network SDN controller comprising:
  • a determining module configured to: determine that the number of received packets in the first specified time period reaches a first threshold
  • the first sending module is configured to: send a pause frame sending indication message to the network element that reports the message, and instruct the network element to send a pause frame to the network element and/or the terminal adjacent to the network element.
  • the foregoing SDN controller further has the following features: further comprising a first receiving module,
  • the first sending module is further configured to: after establishing a control connection with the network element, send, to the network element, a query message for querying a port capability of the network element;
  • the first receiving module is configured to: receive a response message returned by the network element, where the response message carries information of the priority-based pause frame of the port of the network element.
  • the above SDN controller further has the following features:
  • the first sending module, the sent pause frame sending indication message further carries one or more of the following: the port information carried by the packet enters the port information when the network element of the packet is reported, and the indication network
  • the device sends a pause frame to the specified port.
  • the priority information carried in the packet indicates that the network element sends the priority-based pause frame to the outbound interface.
  • the flow information of the packet carried in the packet indicates the network element. Sends a pause frame for the specified stream outward; pauses the duration information.
  • the above SDN controller further has the following features:
  • the determining module is further configured to: after the first sending module sends a pause frame sending indication message to the network element of the packet, determining that the number of the reported message in the second specified time period is less than the second threshold ;
  • the first sending module is further configured to: send a pause frame to the network element to stop sending the indication And indicating that the network element stops sending a pause frame to the network element and/or the terminal adjacent to the network element.
  • the above SDN controller further has the following features:
  • the first sending module sends the pause frame stop sending indication message to carry one or more of the following: port information, indicating that the network element stops sending the pause frame from the designated port; priority information, indicating the network element Stop sending out the pause frame of the specified priority; the flow information indicates that the network element stops sending the pause frame for the specified stream.
  • a method of processing a message comprising:
  • the network element receives a pause frame sending indication message sent by the software defined network SDN controller
  • the network element sends a pause frame to the network element and/or the terminal adjacent to the network element according to the indication of the pause frame sending indication message.
  • the foregoing method further has the following features:
  • the response message carrying information of the priority element-based pause frame of the port of the network element.
  • the above method also has the following features:
  • the network element sends a pause frame from the port specified by the port information to the network element and/or the terminal adjacent to the network element;
  • the network element sends a priority-based pause frame to the network element and/or the terminal adjacent to the network element;
  • the network element sends a priority-based pause from the port specified by the port information to the network element and/or the terminal adjacent to the network element. frame;
  • the network element sends a pause frame for the flow specified by the flow information to the network element and/or the terminal adjacent to the network element;
  • the network element sends, according to the port specified by the port information, a network element and/or a terminal adjacent to the network element, to specify the flow information.
  • the pause frame of the stream carries the port information and the flow information.
  • the foregoing method further has the following features:
  • the network element stops sending a pause frame to the network element and/or the terminal adjacent to the network element according to the indication that the pause frame stops transmitting the indication message.
  • the foregoing method further has the following feature: if the pause frame stop sending indication message carries port information, the network element stops sending a pause frame from the port specified by the port information;
  • the network element stops sending the priority-based pause frame to the network element and/or the terminal adjacent to the network element;
  • the network element stops sending the priority based on the port specified by the port information to the network element and/or the terminal adjacent to the network element.
  • the network element stops sending a pause frame for the flow specified by the flow information to the network element and/or the terminal adjacent to the network element;
  • the network element stops sending the flow from the port specified by the port information to the network element and/or the terminal adjacent to the network element.
  • the pause frame of the stream specified by the message is
  • a network element including:
  • the second receiving module is configured to: receive a pause frame sending indication message sent by the software defined network SDN controller;
  • the second sending module is configured to: send a pause frame to the network element and/or the terminal adjacent to the network element according to the indication of the pause frame sending indication message.
  • the foregoing network element further has the following features:
  • the second receiving module is further configured to: receive a query message sent by the SDN controller to query a port capability of the network element;
  • the second sending module is further configured to: return a response message to the SDN controller, where the response message carries information of the priority-based pause frame of the port of the network element.
  • the foregoing network element further has the following features:
  • the second sending module is configured to: send a pause frame to the network element and/or the terminal adjacent to the network element, and if the pause frame sending indication message carries port information, specify the port information from the port information.
  • the port sends a pause frame to the network element and/or the terminal adjacent to the network element; if the pause frame transmission indication message carries the priority information, the network element and/or the terminal adjacent to the network element Sending a priority-based pause frame; if the pause frame transmission indication message carries port information and priority information, sending, from the port specified by the port information, to a network element and/or a terminal adjacent to the network element, based on a pause frame of priority; if the pause frame transmission indication message carries flow information, send a pause frame for the stream specified by the flow information to a network element and/or a terminal adjacent to the network element; The pause frame transmission indication message carries the port information and the flow information, and the pause frame of the flow specified by the flow information is sent from the port
  • the foregoing network element further has the following features:
  • the second receiving module is further configured to: receive a pause frame stop sending indication message sent by the SDN controller;
  • the second sending module is further configured to: stop sending a pause frame to the network element and/or the terminal adjacent to the network element according to the indication that the pause frame stops transmitting the indication message.
  • the foregoing network element further has the following features:
  • the second sending module is configured to: stop sending the pause frame to the network element and/or the terminal adjacent to the network element, and if the pause frame stop sending indication message carries port information, stop from the The port specified by the port information sends a pause frame outward; if the pause frame stop sending indication message carries the priority information, the sending of the priority-based pause frame to the network element and/or the terminal adjacent to the network element is stopped; If the pause frame stop sending indication message carries the port information and the priority information, stopping sending the priority-based pause frame from the port specified by the port information to the network element and/or the terminal adjacent to the network element; If the pause frame stop sending indication message carries the flow information, stopping sending a pause frame for the flow specified by the flow information to the network element and/or the terminal adjacent to the network element; if the pause frame stops sending The indication message carries the port information and the flow information, and stops the suspension of the flow specified by the flow information from the port specified by the port information to the network element and/or the terminal
  • a computer readable storage medium storing computer executable instructions, the computer being executable
  • the line instructions are used to perform the method of any of the above.
  • the embodiment of the present invention provides a method for processing a message, an SDN controller, and a network element, which can alleviate the processing pressure of the SDN controller message.
  • FIG. 1 is a schematic diagram of an SDN network component architecture according to the related art
  • FIG. 2 is a flowchart of a method for processing a message (applied to an SDN controller) according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for processing a message (applied to a network element) according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of an embodiment of the first embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an embodiment of a second embodiment of the present invention.
  • FIG. 6 is a schematic diagram of an embodiment of a third embodiment of the present invention.
  • FIG. 7 is a schematic diagram of an embodiment of a fourth embodiment of the present invention.
  • FIG. 8 is a schematic diagram of an embodiment of a fifth embodiment of the present invention.
  • FIG. 9 is a schematic diagram of an SDN controller according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a network element according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for processing a message (applied to an SDN controller) according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
  • Step 11 The SDN controller determines that the number of received packets in the first specified time period reaches a first threshold
  • step 12 the SDN controller sends a pause frame sending indication message to the network element of the packet, and the network element is instructed to send a pause frame to the network element and/or the terminal adjacent to the network element.
  • the SDN controller determines that the number of the packets reported by the network element in a certain period of time reaches the processing limit (the first threshold)
  • the SDN controller sends a pause frame sending indication message to the network element, indicating that the network element is adjacent to the network element.
  • the network element and/or terminal sends a pause frame.
  • the processing capability of the SDN controller is limited, and the SDN controller can determine the network element by using its own CPU (central processing unit) utilization, memory usage, and the number of packets entering the queue to be processed per unit time. Whether the number of packets reported in a certain period of time is close to the processing limit of the network. If the result of the SDN controller is YES, the SDN controller sends a pause frame sending indication message to the network element, indicating that the network element is adjacent to the network element. The network element and/or the terminal sends a pause frame, so that the network element and/or the terminal adjacent to the network element temporarily buffers the message to be sent, so as to alleviate the message processing pressure of the SDN controller.
  • CPU central processing unit
  • the pause frame sending indication message sent by the SDN controller to the network element may carry the pause duration information, and the information may be carried in the pause frame sent by the network element to notify the pause frame receiving end to pause the sending of the message.
  • the packet reported by the NE to the SDN controller carries the NE identification information and the ingress port information when the packet enters the NE.
  • the SDN controller may use the network element identifier information carried in the reported message to select the target network element that sends the pause frame sending indication message; the SDN controller may also enter the ingress port information when the packet carried in the reported message enters the network element.
  • the write pause frame transmission indication message is used to instruct the network element to send a pause frame from the designated port.
  • the packets reported by the NE to the SDN controller carry priority information.
  • the pause frame sending indication message sent by the SDN controller to the network element may carry the priority information, where the information is used to instruct the network element to send the priority-based pause frame, so that the pause frame receiving end only suspends the sending of the specific priority message. Without suspending the sending of other priority messages.
  • the implementation of the above method has a premise that the SDN controller knows in advance that the network element supports sending and/or receiving a priority-based pause frame, and the premise can be obtained by the network element replying to the port capability query response of the SDN controller when the control connection is established. Carrying in the message Whether to support sending and/or receiving information based on the priority pause frame is implemented.
  • the method may further include:
  • Step 13 The SDN controller determines that the number of reports reported in the second specified time period is less than a second threshold
  • Step 14 The SDN controller sends a pause frame stop sending indication message to the network element, instructing the network element to stop sending a pause frame to the network element and/or the terminal adjacent to the network element.
  • the SDN controller determines that the number of packets reported by the network element in a certain period of time is far from the processing limit of the network (that is, less than the second threshold)
  • the SDN controller sends a pause frame to the network element to stop sending the indication message, indicating that the network element stops communicating with the network element.
  • the network element and/or terminal adjacent to the network element sends a pause frame.
  • the SDN controller can determine whether the number of packets reported by the NE in a certain period of time is far from its processing limit, such as the CPU usage, the memory usage, and the number of packets entering the queue to be processed. If the result of the SDN controller is yes, the SDN controller sends a pause frame stop sending indication message to the network element, indicating that the network element stops sending the pause frame to the network element and/or the terminal adjacent to the network element, so that the network frame is disconnected from the network.
  • the neighboring network elements and/or terminals send the temporarily buffered packets to prevent packet loss caused by the overflow of the network element and/or the terminal.
  • the pause frame stop sending indication message sent by the SDN controller to the network element may carry port information, which is used to indicate that the network element stops sending the pause frame from the designated port, and does not affect the network element to continue sending the pause from other ports. frame.
  • the pause frame stop sending indication message sent by the SDN controller to the network element may carry the priority information, where the information is used to indicate that the network element stops sending the pause frame of the specific priority to the outside, without affecting the network element to continue sending other priorities.
  • Level pause frame may carry the priority information, where the information is used to indicate that the network element stops sending the pause frame of the specific priority to the outside, without affecting the network element to continue sending other priorities.
  • the 802.3x standard issued by the Institute of Electrical and Electronics Engineers specifies the transmission method and frame format of the Pause Frame.
  • the 802.1Qbb standard issued by the IEEE specifies a priority-based pause frame ( In the embodiment of the present invention, the SDN controller instructs the network element to send out the pause frame to follow the pause frame transmission method and the frame format specified by the foregoing standards.
  • the method for processing a message is provided by the embodiment of the present invention.
  • the SDN controller determines that the number of packets reported by the network element in a certain period of time is close to its processing limit, the SDN controller sends the packet to the network element.
  • the pause frame transmission indication message is sent to the network element to send a pause frame to the network element and/or the terminal adjacent to the network element, so that the network element and/or the terminal adjacent to the network element temporarily buffer the message to be sent.
  • the SDN controller sends a pause frame to the network element to stop sending the indication message.
  • the network element is instructed to stop sending a pause frame to the network element and/or the terminal adjacent to the network element, so as to prevent packet loss caused by the overflow of the network element and/or the terminal adjacent to the network element.
  • FIG. 3 is a flowchart of a method for processing a message (applied to a network element) according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps:
  • Step 16 The network element receives a pause frame sending indication message sent by the software-defined network SDN controller.
  • Step 17 The network element sends a pause frame to the network element and/or the terminal adjacent to the network element according to the indication of the pause frame sending indication message.
  • the network element receives the pause frame transmission indication message sent by the SDN controller, and indicates that the SDN controller determines that the number of the message reported by the network element in a certain period of time reaches its own processing limit, and the network element sends an indication message according to the pause frame. And transmitting, by the network element and/or the terminal adjacent to the network element, a pause frame, so that the network element and/or the terminal adjacent to the network element temporarily buffer the message to be sent to achieve the mitigation of the SDN
  • the controller's message handles the purpose of the pressure.
  • the network element sends a pause frame from the port specified by the port information to the network element and/or the terminal adjacent to the network element;
  • the network element sends a priority-based pause frame to the network element and/or the terminal adjacent to the network element;
  • the network element sends a priority-based pause from the port specified by the port information to the network element and/or the terminal adjacent to the network element. frame;
  • the network element sends a pause frame for the flow specified by the flow information to the network element and/or the terminal adjacent to the network element;
  • the network element sends the flow message to the network element and/or the terminal adjacent to the network element from the port specified by the port information.
  • the pause frame of the specified stream is
  • the network element sends the priority-based pause frame, so that the pause frame receiving end only suspends the sending of the specific priority message without suspending other priorities.
  • the transmission of the level message has a premise that the SDN controller knows in advance that the network element supports sending and/or receiving a priority-based pause frame, and the premise can be obtained by the network element replying to the port capability query response of the SDN controller when the control connection is established.
  • the message carries information about whether to support sending and/or receiving priority-based pause frames.
  • the method may further include:
  • Step 18 The network element receives a pause frame stop sending indication message sent by the SDN controller.
  • Step 19 The network element stops sending a pause frame to the network element and/or the terminal adjacent to the network element according to the indication that the pause frame stops transmitting the indication message.
  • the neighboring network element and/or the terminal sends a pause frame, so that the network element and/or the terminal adjacent to the network element sends the temporarily buffered packet to prevent the packet loss of the network element and/or the terminal from being lost. the goal of.
  • the network element stops sending a pause frame from the port specified by the port information
  • the network element stops sending a priority-based pause frame to the network element and/or the terminal adjacent to the network element;
  • the network element stops sending the priority based on the port specified by the port information to the network element and/or the terminal adjacent to the network element.
  • the network element stops sending a pause frame for the flow specified by the flow information to the network element and/or the terminal adjacent to the network element;
  • the network element stops sending, from the port specified by the port information, to the network element and/or the terminal adjacent to the network element, The pause frame of the stream specified by the stream information.
  • a method for processing a packet when the network element receives the pause frame sending indication message sent by the SDN controller, according to the indication of the pause frame sending indication message, adjacent to the network element
  • the network element and/or the terminal sends a pause frame, so that the network element and/or the terminal adjacent to the network element temporarily buffers the message to be sent to alleviate the packet processing pressure of the SDN controller; when the network element receives the network element,
  • the sending pause frame sent by the DN controller stops sending the indication message, and the network element stops sending the pause frame to the network element and/or the terminal adjacent to the network element to prevent the network element and/or the terminal adjacent to the network element.
  • a buffer overflow causes a packet loss.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions for executing the above method for processing a message.
  • FIG. 4 is a schematic diagram of an implementation manner of the SDN controller of the first embodiment, in which the network element sends a pause frame from all the ports.
  • the network element 21 and the network element 23 are sent by the SDN controller.
  • the pause frame sends an indication message, the pause frame is sent out from all ports.
  • the SDN controller and the network element perform the following steps:
  • Step 201 When the SDN controller determines that the number of packets reported by the network element 21 and the network element 23 in a certain period of time is close to the processing limit of the network, the SDN controller sends a pause frame sending indication message to the network element 21 and the network element 23, indicating The network element 21 and the network element 23 send a pause frame from all ports.
  • the network element 21 and the network element 23 may report a large number of data packets sent from the terminal that cannot match the forwarding table in a short period of time.
  • the SDN controller determines that the network element 21 and the network element 23 report the pending The processing packet is close to its own processing limit, and a pause frame transmission indication message is sent to the network element 21 and the network element 23, indicating that the network element 21 sends a pause frame from all the ports to the network element 22 and the terminal 1 adjacent thereto, requesting the network.
  • the element 22 and the terminal 1 pause to send a data message to the network element 21, instructing the network element 23 to send a pause frame from all ports to the network element 22 and the terminal 2 adjacent thereto, and request the network element 22 and the terminal 2 to suspend transmission to the network element 23.
  • Data message to achieve the purpose of alleviating the processing pressure of SDN controller messages.
  • the pause frame transmission indication message sent by the SDN controller to the network element 21 may carry the pause duration information, which is carried in the pause frame sent by the network element 21 to the network element 22 and the terminal 1 for informing the network element 22 and the terminal 1
  • the pause frame transmission indication message sent by the SDN controller to the network element 23 may carry the pause duration information, which is carried in the pause frame sent by the network element 23 to the network element 22 and the terminal 2, and is used for The length of time for the network element 22 and the terminal 2 to suspend the transmission of the message is notified.
  • Step 202 When the SDN controller determines that the number of the packets reported by the network element 21 and the network element 23 in a certain period of time is far from the processing limit of the network, the SDN controller sends a pause frame stop sending indication message to the network element 21 and the network element 23, The indication network element 21 and the network element 23 stop transmitting the pause frame from all ports.
  • the SDN controller After processing the reported message, the SDN controller sends a corresponding forwarding table matching the reported message to each network element, and the subsequent report message is gradually reduced. Once the SDN controller determines the network element 21 and the network element. When the reported pending message is far away from its processing limit, it sends a pause frame stop sending indication message to the network element 21 and the network element 23, instructing the network element 21 to stop from all the ports to the adjacent network element 22 and terminal 1.
  • the pause frame is sent, so that the network element 22 and the terminal 1 send the temporarily buffered data packet, indicating that the network element 23 stops sending pause frames from all ports to the network element 22 and the terminal 2 adjacent thereto, so that the network element 22 and the terminal
  • the temporary buffered data packet is sent out to prevent packet loss caused by the overflow of the network element 22, the terminal 1 and the terminal 2, thereby causing packet loss.
  • FIG. 5 is a schematic diagram of an embodiment of an SDN controller in Embodiment 2, instructing a network element to send a pause frame from a designated port.
  • the network element 31 and the network element 33 are sent by the SDN controller.
  • the pause frame carrying the port information sends the indication message, the pause frame is sent out from the designated port.
  • the SDN controller and the network element perform the following steps:
  • step 301 the SDN controller determines that the number of packets reported by the network element 31 and the network element 33 in a certain period of time is close to the processing limit of the network element 31, and the SDN controller sends the pause frame transmission carrying the port information to the network element 31 and the network element 33.
  • the indication message instructs the network element 31 and the network element 33 to send a pause frame from the designated port.
  • the network element 31 and the network element 33 may report a large number of data packets sent from the terminal that cannot match the forwarding table in a short time, and the SDN controller determines the network element 31 and The pending message reported by the network element 33 is close to its processing limit, and a pause frame transmission indication message is sent to the network element 31 and the network element 33.
  • the packet reported by the network element 31 carries the information that the packet enters the network element 31 from the port 1 of the network element 31, and the pause frame transmission indication message sent by the SDN controller to the network element 31 also carries the information of the port 1 to indicate the network element.
  • a packet is sent from the port 1 to the terminal 3 adjacent thereto, and the terminal 3 is required to suspend the transmission of the data packet to the network element 31.
  • the packet reported by the network element 33 carries the packet from the port 2 of the network element 33 to the network element 33.
  • the information that the SDN controller sends the pause frame transmission indication message to the network element 33 also carries the information of the port 2, indicating that the network element 33 sends a pause frame from the port 2 to the terminal 4 adjacent thereto, and requests the terminal 4 to suspend the network element. 33. Send a data packet to relieve the pressure on the SDN controller packet processing.
  • the pause frame transmission indication message sent by the SDN controller to the network element 31 may carry the pause duration information, which is carried in the pause frame sent by the network element 31 to the terminal 3, for informing the terminal 3 to pause the length of the message to be sent;
  • the pause frame transmission indication message sent by the controller to the network element 33 may carry the pause duration information, which is carried in the pause frame sent by the network element 33 to the terminal 4, and is used to inform the terminal 4 to pause the duration of the message transmission.
  • Step 302 When the SDN controller determines that the number of the packets reported by the network element 31 and the network element 33 in a certain period of time is far from the processing limit of the network, the SDN controller sends the pause frame carrying the port information to the network element 31 and the network element 33.
  • the indication message is sent, indicating that the network element 31 and the network element 33 stop sending the pause frame from the designated port.
  • the SDN controller After processing the reported message, the SDN controller sends a corresponding forwarding table matching the reported message to each network element, and the subsequent report message is gradually reduced.
  • the SDN controller determines the network element 31 and the network element.
  • the pending message reported by 33 is sent away from its processing limit, and a pause frame stop transmission indication message is sent to the network element 31 and the network element 33.
  • the pause frame sent by the SDN controller to the network element 31 stops transmitting the indication message carrying the information of the port 1, instructing the network element 31 to stop sending the pause frame from the port 1 to the terminal 3 adjacent thereto, so that the terminal 3 temporarily buffers the data packet.
  • the pause frame sent by the SDN controller to the network element 33 stops transmitting the indication message carrying the information of the port 2, instructing the network element 33 to stop sending the pause frame from the port 2 to the terminal 4 adjacent thereto, so that the terminal 4 temporarily caches
  • the data packet is sent out to prevent the packet overflow of the terminal 3 and the terminal 4 from being caused by packet overflow.
  • FIG. 6 is a schematic diagram of an embodiment of the SDN controller of the third embodiment, which instructs the network element to send a priority-based pause frame from all ports.
  • the network element 41 and the network element 43 receive After the pause frame transmitting the indication message carrying the priority information sent by the SDN controller, the priority-based pause frame is sent out from all the ports.
  • the SDN controller and the network element perform the following steps:
  • the SDN controller establishes a control connection with the network element 41, and sends an inquiry message to the network element 41 to query the port capability of the network element 41.
  • the network element 41 returns a response message to the SDN controller, and the port support of the network element 41 is based on Priority pause frame information.
  • the SDN controller establishes a control connection with the network element 42, it sends a query message to the network element 42 to query the port capability of the network element 42, and the network element 42 returns a response message to the SDN controller, and the port carrying the network element 42 supports priority-based. Pause the information of the frame.
  • the Query message is sent to the network element 43 to query the port capability of the network element 43.
  • the network element 43 returns a response message to the SDN controller, and the port carrying the network element 43 supports priority-based. Pause the information of the frame.
  • Step 402 When the SDN controller determines that the number of the packets reported by the network element 41 and the network element 43 in a certain period of time is close to the processing limit of the network, the SDN controller sends the pause frame carrying the priority information to the network element 41 and the network element 43. An indication message is sent, instructing the network element 41 and the network element 43 to send a pause frame of a specific priority from all ports.
  • the network element 41 and the network element 43 may report a large number of data packets sent from the terminal that cannot match the forwarding table in a short period of time.
  • the SDN controller determines that the network element 41 and the network element 43 report the pending When the processing message is close to its processing limit, a pause frame transmission indication message is sent to the network element 41 and the network element 43.
  • the SDN controller has learned that the port of the network element 41 and the network element 42 support the priority-based pause frame, and the packet reported by the network element 41 carries the priority information of the packet, so the SDN controller
  • the pause frame transmission indication message sent to the network element 41 may carry priority information, indicating that the network element 41 sends a pause frame of a specific priority from all ports to the network element 42 and the terminal 5 adjacent thereto, and requires the network element 42 and the terminal 5
  • the data message of the specific priority is sent to the network element 41.
  • the SDN controller has learned that the port of the network element 42 and the network element 43 support the priority-based pause frame and the report reported by the network element 43.
  • the packet carries the priority information of the packet, so that the pause frame sending indication message sent by the SDN controller to the network element 43 can carry the priority information, and the network element 43 is instructed to send the network element 43 from all the ports to the network element 42 and the terminal 6 adjacent thereto.
  • a specific priority pause frame is sent, and the network element 42 and the terminal 6 are required to suspend the transmission of the data packet of the specific priority to the network element 43 to relieve the IMS controller packet processing pressure.
  • the pause frame transmission indication message sent by the SDN controller to the network element 41 may carry the pause duration information, which is carried in the pause frame sent by the network element 41 to the network element 42 and the terminal 5, and is used to notify the network element 42 and the terminal 5
  • the duration of the pause message is sent;
  • the pause frame transmission indication message sent by the SDN controller to the network element 43 may carry the pause duration information, which is carried in the pause frame sent by the network element 43 to the network element 42 and the terminal 6 for The length of time for the network element 42 and the terminal 6 to suspend the transmission of the message is notified.
  • Step 403 When the SDN controller determines that the number of the packets reported by the network element 41 and the network element 43 in a certain period of time is far from the processing limit of the network, the SDN controller sends the pause frame carrying the priority information to the network element 41 and the network element 43. The sending of the indication message is stopped, indicating that the network element 41 and the network element 43 stop transmitting the pause frame of a specific priority from all the ports.
  • the SDN controller After processing the reported message, the SDN controller will send a corresponding forwarding table matching the reported message to each network element, and the subsequent report message will be gradually reduced. Once the SDN controller determines the network element 41 and the network element. When the pending message reported by 43 is far from its own processing limit, it will send a pause frame stop transmission indication message to the network element 41 and the network element 43.
  • the pause frame stop sending message sent by the SDN controller to the network element 41 carries the priority information, and the network element 41 is instructed to stop sending the pause frame of the specific priority from all the ports to the network element 42 and the terminal 5 adjacent thereto, so that the network element And the terminal 5 sends the data packet of the specific priority that is temporarily buffered;
  • the pause frame stop sending message sent by the SDN controller to the network element 43 carries the priority information, indicating that the network element 43 stops from being adjacent to all ports.
  • the network element 42 and the terminal 6 send a pause frame of a specific priority, so that the network element 42 and the terminal 6 send the temporarily buffered data packet of a specific priority to prevent the cache of the network element 42, the terminal 5 and the terminal 6. Overflow causes the purpose of packet loss.
  • FIG. 7 is a schematic diagram of an embodiment of the SDN controller of the fourth embodiment, in which the network element sends a priority-based pause frame from the designated port.
  • the network element 51 and the network element 53 receive After the pause frame sending indication message carrying the port information and the priority information sent by the SDN controller, the pause frame of the specific priority is sent out from the designated port.
  • the SDN controller and the network element perform the following steps:
  • step 501 the SDN controller determines that the number of packets reported by the network element 51 and the network element 53 in a certain period of time is close to the processing limit of the network, and the SDN controller sends the port information and the priority information to the network element 51 and the network element 53.
  • the pause frame sends an indication message, instructing the network element 51 and the network element 53 to send a pause frame of a specific priority from the designated port.
  • the network element 51 and the network element 53 may report a large number of data packets sent from the terminal that cannot match the forwarding table in a short period of time.
  • the SDN controller determines that the network element 51 and the network element 53 report the pending When the processing message approaches the processing limit of itself, a pause frame transmission indication message is sent to the network element 51 and the network element 53.
  • the packet reported by the network element 51 carries the information of the packet entering the network element 51 from the port 1 of the network element 51, and the packet reported by the network element 51 also carries the priority information of the packet, so that the SDN controller sends the network element 51 to the network element 51.
  • the sent pause frame transmission indication message also carries the information of the port 1 and the priority information, instructing the network element 51 to send a pause frame of a specific priority from the port 1 to the terminal 7 adjacent thereto, and the terminal 7 is required to suspend the transmission of the specific to the network element 51.
  • the packet reported by the network element 53 carries the information of the packet from the port 2 of the network element 53 to the network element 53, and the packet reported by the network element 53 also carries the priority information of the packet, so
  • the pause frame transmission indication message sent by the SDN controller to the network element 53 also carries the information of the port 2 and the priority information, instructing the network element 53 to send a pause frame of a specific priority from the port 2 to the terminal 8 adjacent thereto, requesting the terminal 8
  • the data packet with a specific priority is sent to the network element 53 to relieve the processing pressure of the SDN controller packet.
  • the pause frame transmission indication message sent by the SDN controller to the network element 51 may carry the pause duration information, which is carried in the pause frame sent by the network element 51 to the terminal 7, and is used to inform the terminal 7 to pause the length of the message to be sent;
  • the pause frame transmission indication message sent by the controller to the network element 53 may carry the pause duration information, which is carried in the pause frame sent by the network element 53 to the terminal 8, and is used to inform the terminal 8 to pause the duration of the message transmission.
  • Step 502 The SDN controller sends the port information and the priority information to the network element 51 and the network element 53 when the SDN controller determines that the number of the packets reported by the network element 51 and the network element 53 is far from the processing limit of the network element 51 and the network element 53.
  • the pause frame stops transmitting the indication message, indicating that the network element 51 and the network element 53 stop transmitting the pause frame of a specific priority from the designated port.
  • the SDN controller After processing the reported message, the SDN controller will send a corresponding forwarding table matching the reported message to each network element, and the subsequent report message will be gradually reduced. Once the SDN controller determines the network element 51 and the network element. The pending message reported by 53 is far away from its processing limit and will be sent to the network element 51 and the network element 53. Send a pause frame to stop sending an indication message.
  • the pause frame sent by the SDN controller to the network element 51 stops transmitting the indication message carrying the information of the port 1 and the priority information, instructing the network element 51 to stop transmitting the pause frame of the specific priority from the port 1 to the terminal 7 adjacent thereto, so that the terminal 7:
  • the data packet of the specific priority that is temporarily buffered is sent out;
  • the pause frame sent by the SDN controller to the network element 53 stops transmitting the indication message carrying the information of the port 2 and the priority information, indicating that the network element 53 stops from the port 2 to
  • the adjacent terminal 8 sends a pause frame of a specific priority, so that the terminal 8 sends the temporarily buffered data packet of a specific priority to prevent the buffer overflow of the terminal 7 and the terminal 8 from causing packet loss.
  • FIG. 8 is a schematic diagram of an embodiment of the SDN controller of Embodiment 5 instructing a network element to send a flow-based pause frame from a designated port.
  • the network element 61 and the network element 63 receive the SDN.
  • the pause frame transmission indication message carrying the port information and the flow information sent by the controller the pause frame for the specific flow is sent out from the designated port.
  • the SDN controller and the network element perform the following steps:
  • step 601 the SDN controller determines that the number of packets reported by the network element 61 and the network element 63 in a certain period of time is close to the processing limit of the network element 61, and the SDN controller sends the port information and the stream information to the network element 61 and the network element 63.
  • the pause frame transmission indication message instructs the network element 61 and the network element 63 to send a pause frame for a specific stream from the designated port.
  • the network element 61 and the network element 63 may report a large number of data packets sent from the terminal that cannot match the forwarding table in a short period of time.
  • the SDN controller determines that the network element 61 and the network element 63 report the pending data.
  • a pause frame transmission indication message is sent to the network element 61 and the network element 63.
  • the packet reported by the network element 61 carries the information of the packet from the port 1 of the network element 61 to the network element 61.
  • the packet reported by the network element 61 also carries the flow information of the packet, and the SDN controller sends the information to the network element 61.
  • the pause frame transmission indication message also carries the information of the port 1 and the flow information, instructing the network element 61 to send a pause frame for the specific stream from the port 1 to the terminal 9 adjacent thereto, and the terminal 9 is required to suspend the transmission of the specific stream to the network element 61.
  • the data packet is sent by the network element 63, and the packet is sent from the port 2 of the network element 63 to the network element 63.
  • the packet reported by the network element 63 also carries the flow information of the packet, so the SDN controller sends the packet.
  • the pause frame transmission indication message sent by the network element 63 also carries the information of the port 2 and the flow information, indicating that the network element 63 transmits from the port 2 to the terminal 10 adjacent thereto for the specific
  • the pause frame of the stream requires the terminal 10 to suspend the transmission of the data packet of the specific stream to the network element 63, so as to alleviate the processing pressure of the SDN controller message.
  • the pause frame transmission indication message sent by the SDN controller to the network element 61 may carry the pause duration information, which is carried in the pause frame sent by the network element 61 to the terminal 9, and is used to inform the terminal 9 to pause the length of the message to be sent;
  • the pause frame transmission indication message sent by the controller to the network element 63 may carry the pause duration information, which is carried in the pause frame sent by the network element 63 to the terminal 10, and is used to inform the terminal 10 to pause the duration of sending the message.
  • Step 602 When the SDN controller determines that the number of the packets reported by the network element 61 and the network element 63 in a certain period of time is far from the processing limit of the network, the SDN controller sends the port information and the flow information to the network element 61 and the network element 63.
  • the pause frame stops transmitting the indication message, indicating that the network element 61 and the network element 63 stop transmitting the pause frame for the specific stream from the designated port.
  • the SDN controller After processing the reported message, the SDN controller will send a corresponding forwarding table matching the reported message to each network element, and the subsequent report message will be gradually reduced. Once the SDN controller determines the network element 61 and the network element When the pending message reported by 63 is far from its own processing limit, it will send a pause frame stop transmission indication message to the network element 61 and the network element 63.
  • the pause frame sent by the SDN controller to the network element 61 stops transmitting the indication message carrying the information of the port 1 and the flow information, instructing the network element 61 to stop transmitting the pause frame for the specific stream from the port 1 to the terminal 9 adjacent thereto, so that the terminal 9
  • the data packet of the specific stream that is temporarily buffered is sent out;
  • the pause frame sent by the SDN controller to the network element 63 stops transmitting the indication message carrying the information of the port 2 and the flow information, indicating that the network element 63 stops from the port 2 to be adjacent thereto.
  • the terminal 10 sends a pause frame for a specific stream, so that the terminal 10 sends the data packet of the specific stream that is temporarily buffered, so as to prevent the buffer overflow of the terminal 9 and the terminal 10 from causing packet loss.
  • FIG. 9 is a schematic diagram of an SDN controller according to an embodiment of the present invention. As shown in FIG. 9, the SDN controller of this embodiment includes:
  • the determining module 91 is configured to: determine that the number of received messages in the first specified time period reaches a first threshold;
  • the first sending module 92 is configured to: send a pause frame sending indication message to the network element that reports the message, and instruct the network element to send a pause frame to the network element and/or the terminal adjacent to the network element.
  • the SDN controller may further include a first receiving module 93,
  • the first sending module 92 is further configured to: after establishing a control connection with the network element, send a query message for querying the port capability of the network element to the network element;
  • the first receiving module 93 is configured to: receive a response message returned by the network element, where the response message carries information of the priority-based pause frame of the port of the network element.
  • the first sending module 92, the sent pause frame sending indication message may further carry one or more of the following: the packet carried in the packet enters and reports the packet
  • the port information of the network element indicates that the network element sends a pause frame from the designated port.
  • the priority information carried by the packet indicates that the network element sends a priority-based pause frame to the outside.
  • the flow information of the packet indicates that the network element sends a pause frame for the specified stream to the outside; the pause duration information.
  • the determining module 93 may be further configured to: after the first sending module 92 reports the network element sending the pause frame sending indication message to the network element, determining that the second specified time is The number of packets reported in the segment is less than the second threshold.
  • the first sending module 92 may be further configured to: send a pause frame stop sending indication message to the network element, and instruct the network element to stop sending a pause frame to a network element and/or a terminal adjacent to the network element. .
  • the first sending module 92 may send the pause frame stop sending indication message to carry one or more of the following: port information, indicating that the network element stops sending from the designated port.
  • port information indicating that the network element stops sending from the designated port.
  • a pause frame indicating that the network element stops sending a pause frame of a specified priority
  • the flow information indicates that the network element stops sending the pause frame for the specified flow.
  • FIG. 10 is a schematic diagram of a network element according to an embodiment of the present invention. As shown in FIG. 10, the network element in this embodiment includes:
  • the second receiving module 101 is configured to: send a pause frame sending indication message sent by the software defined network SDN controller;
  • the second sending module 102 is configured to: send a pause frame to the network element and/or the terminal adjacent to the network element according to the indication of the pause frame sending indication message.
  • the second receiving module 101 may be further configured to: receive a query message sent by the SDN controller to query a port capability of the network element;
  • the second sending module 102 may be further configured to: return a response to the SDN controller.
  • the response message carries a port of the network element to support information of a priority-based pause frame.
  • the second sending module 102 is configured to: if the pause frame sending indication message carries port information, the port specified by the port information is adjacent to the network element.
  • the network element and/or the terminal sends a pause frame; if the pause frame transmission indication message carries the priority information, sending a priority-based pause frame to the network element and/or the terminal adjacent to the network element;
  • the pause frame transmission indication message carries the port information and the priority information, and then sends a priority-based pause frame from the port specified by the port information to the network element and/or the terminal adjacent to the network element; if the pause frame is Sending the flow message to the network element and/or the terminal adjacent to the network element, and sending the pause frame of the flow specified by the flow information; if the pause frame sending indication message carries the port information and the flow information, And sending, by the port specified by the port information, a pause frame of the stream specified by the flow information to a network element and/or a terminal adjacent to the network element.
  • the second receiving module 101 may be further configured to: receive a pause frame stop sending indication message sent by the SDN controller;
  • the second sending module 102 may be further configured to: stop sending a pause frame to the network element and/or the terminal adjacent to the network element according to the indication that the pause frame stops transmitting the indication message.
  • the second sending module 102 is configured to: if the pause frame stops sending indication message carrying port information, stop sending a pause frame from the port specified by the port information;
  • the pause frame stop sending indication message carries the priority information, and then stops sending the priority-based pause frame to the network element and/or the terminal adjacent to the network element; if the pause frame stops transmitting the indication message carrying the port information And the priority information, stopping sending the priority-based pause frame from the port specified by the port information to the network element and/or the terminal adjacent to the network element; if the pause frame stops sending the indication message carrying the flow information Stop sending the pause frame of the stream specified by the flow information to the network element and/or the terminal adjacent to the network element; if the pause frame stop sending indication message carries the port information and the flow information, stop the slave station
  • the port specified by the port information sends a pause frame of the stream specified by the flow information to a network element and/or a terminal adjacent to the network element.
  • the embodiment of the invention provides a method for processing a message, an SDN controller and a network element, which can alleviate the processing pressure of the SDN controller message.

Landscapes

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

Abstract

本文公布一种处理报文的方法、SDN控制器及网元,该方法包括:SDN控制器确定在第一指定时间段内接收到的报文数量达到第一阈值;所述SDN控制器向上报所述报文的网元发送暂停帧发送指示消息,指示所述网元向与所述网元相邻的网元和/或终端发送暂停帧。

Description

一种处理报文的方法、SDN控制器及网元 技术领域
本申请涉及但不限于通信领域。
背景技术
开放网络基金会(Open Networking Foundation,简称ONF)制定的软件定义网络(Software Defined Network,简称SDN)架构1.0标准描述了SDN网络的基本组件,图1是SDN网络组件架构示意图,如图1所示,SDN网络采用控制平面与数据平面相分离的架构,SDN网络的控制平面由SDN控制器来实现,SDN网络的数据平面由网元来实现,SDN控制器与网元之间通过SDN南向接口(比如OpenFlow(开放流)协议接口)相连;SDN控制器通过SDN南向接口向网元下发转发表,从而达到控制数据转发的目的,实现了数据转发和转发控制的分离。
不管SDN南向接口采用的是何种协议,当网元接收到无法匹配转发表的数据报文时,都会发往SDN控制器进行处理;SDN控制器接收到网元上报的数据报文后,会分析数据报文的报文头,然后给网元下发针对该类数据报文的转发表;后续同类数据报文到达网元后,由于网元已经配置了SDN控制器下发的转发表,于是就可以直接转发此类数据报文,而不会再发往SDN控制器处理。
一个SDN网络通常包含大量的网元,每个网元又可以连接大量的终端设备,于是就使得在网络稳定之前,SDN控制器会在很短的时间内接收到网元上报的大量无法匹配转发表的待处理报文,而SDN控制器的报文处理能力都是有限的,所以经常会由于来不及处理如此大量的上报报文而导致报文丢失,严重时甚至会导致SDN控制器与网元之间的断链。
针对SDN控制器由于接收到网元在短时间内上报的大量数据报文而导致压力过大的问题,目前尚未提出有效的解决方案。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本文提供一种处理报文的方法、SDN控制器及网元,以缓解SDN控制器报文处理压力。
一种处理报文的方法,包括:
软件定义网络SDN控制器确定在第一指定时间段内接收到的报文数量达到第一阈值;
所述SDN控制器向上报所述报文的网元发送暂停帧发送指示消息,指示所述网元向与所述网元相邻的网元和/或终端发送暂停帧。
可选地,上述方法还具有下面特点:还包括:
所述SDN控制器在与所述网元建立控制连接后,向所述网元发送用于查询所述网元的端口能力的查询消息;
所述SDN控制器接收所述网元返回的响应消息,所述响应消息携带所述网元的端口支持基于优先级的暂停帧的信息。
可选地,上述方法还具有下面特点:所述暂停帧发送指示消息还携带以下的一项或多项:
所述报文携带的所述报文进入上报所述报文的网元时的端口信息,指示网元从指定端口向外发送暂停帧;
所述报文携带的优先级信息,指示网元向外发送基于优先级的暂停帧;
所述报文携带的所述报文的流信息,指示网元向外发送针对指定流的暂停帧;
暂停时长信息。
可选地,上述方法还具有下面特点:还包括:
所述SDN控制器向上报所述报文的网元发送暂停帧发送指示消息之后,所述SDN控制器确定在第二指定时间段内上报的报文数量小于第二阈值;
所述SDN控制器向所述网元发送暂停帧停止发送指示消息,指示所述网 元停止向与所述网元相邻的网元和/或终端发送暂停帧。
可选地,上述方法还具有下面特点:所述暂停帧停止发送指示消息还携带以下的一项或多项:
端口信息,指示网元停止从指定端口向外发送暂停帧;
优先级信息,指示网元停止向外发送针对指定优先级的暂停帧;
流信息,指示网元停止向外发送针对指定流的暂停帧。
一种软件定义网络SDN控制器,包括:
确定模块,设置为:确定在第一指定时间段内接收到的报文数量达到第一阈值;
第一发送模块,设置为:向上报所述报文的网元发送暂停帧发送指示消息,指示所述网元向与所述网元相邻的网元和/或终端发送暂停帧。
可选地,上述SDN控制器还具有下面特点:还包括第一接收模块,
所述第一发送模块,还设置为:在与所述网元建立控制连接后,向所述网元发送用于查询所述网元的端口能力的查询消息;
所述第一接收模块,设置为:接收所述网元返回的响应消息,所述响应消息携带所述网元的端口支持基于优先级的暂停帧的信息。
可选地,上述SDN控制器还具有下面特点:
所述第一发送模块,发送的暂停帧发送指示消息还携带以下的一项或多项:所述报文携带的所述报文进入上报所述报文的网元时的端口信息,指示网元从指定端口向外发送暂停帧;所述报文携带的优先级信息,指示网元向外发送基于优先级的暂停帧;所述报文携带的所述报文的流信息,指示网元向外发送针对指定流的暂停帧;暂停时长信息。
可选地,上述SDN控制器还具有下面特点:
所述确定模块,还设置为:在所述第一发送模块向上报所述报文的网元发送暂停帧发送指示消息之后,确定在第二指定时间段内上报的报文数量小于第二阈值;
所述第一发送模块,还设置为:向所述网元发送暂停帧停止发送指示消 息,指示所述网元停止向与所述网元相邻的网元和/或终端发送暂停帧。
可选地,上述SDN控制器还具有下面特点:
所述第一发送模块,发送的所述暂停帧停止发送指示消息还携带以下的一项或多项:端口信息,指示网元停止从指定端口向外发送暂停帧;优先级信息,指示网元停止向外发送指定优先级的暂停帧;流信息,指示网元停止向外发送针对指定流的暂停帧。
一种处理报文的方法,包括:
网元接收软件定义网络SDN控制器发送的暂停帧发送指示消息;
所述网元根据所述暂停帧发送指示消息的指示,向与所述网元相邻的网元和/或终端发送暂停帧。
可选地,上述方法还具有下面特点:还包括:
接收所述SDN控制器发送的查询所述网元的端口能力的查询消息;
向所述SDN控制器返回响应消息,所述响应消息携带所述网元的端口支持基于优先级的暂停帧的信息。
可选地,上述方法还具有下面特点:
若所述暂停帧发送指示消息携带端口信息,则所述网元从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送暂停帧;
若所述暂停帧发送指示消息携带优先级信息,则所述网元向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;
若所述暂停帧发送指示消息携带端口信息和优先级信息,则所述网元从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;
若所述暂停帧发送指示消息携带流信息,则所述网元向与所述网元相邻的网元和/或终端发送针对所述流信息指定的流的暂停帧;
若所述暂停帧发送指示消息携带端口信息和流信息,则所述网元从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送针对所述流信息指定的流的暂停帧。
可选地,上述方法还具有下面特点:还包括:
所述网元接收所述SDN控制器发送的暂停帧停止发送指示消息;
所述网元根据所述暂停帧停止发送指示消息的指示,停止向与所述网元相邻的网元和/或终端发送暂停帧。
可选地,上述方法还具有下面特点:如所述暂停帧停止发送指示消息携带端口信息,则所述网元停止从所述端口信息指定的端口向外发送暂停帧;
如所述暂停帧停止发送指示消息携带优先级信息,则所述网元停止向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;
如所述暂停帧停止发送指示消息携带端口信息和优先级信息,则所述网元停止从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;
若所述暂停帧停止发送指示消息携带流信息,则所述网元停止向与所述网元相邻的网元和/或终端发送针对所述流信息指定的流的暂停帧;
若所述暂停帧停止发送指示消息携带端口信息和流信息,则所述网元停止从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送针对所述流信息指定的流的暂停帧。
一种网元,包括:
第二接收模块,设置为:接收软件定义网络SDN控制器发送的暂停帧发送指示消息;
第二发送模块,设置为:根据所述暂停帧发送指示消息的指示,向与所述网元相邻的网元和/或终端发送暂停帧。
可选地,上述网元还具有下面特点:
所述第二接收模块,还设置为:接收所述SDN控制器发送的查询所述网元的端口能力的查询消息;
所述第二发送模块,还设置为:向所述SDN控制器返回响应消息,所述响应消息携带所述网元的端口支持基于优先级的暂停帧的信息。
可选地,上述网元还具有下面特点:
所述第二发送模块,是设置为:向与所述网元相邻的网元和/或终端发送暂停帧包括:若所述暂停帧发送指示消息携带端口信息,则从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送暂停帧;若所述暂停帧发送指示消息携带优先级信息,则向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;若所述暂停帧发送指示消息携带端口信息和优先级信息,则从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;若所述暂停帧发送指示消息携带流信息,则向与所述网元相邻的网元和/或终端发送针对所述流信息指定的流的暂停帧;若所述暂停帧发送指示消息携带端口信息和流信息,则从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送针对所述流信息指定的流的暂停帧。
可选地,上述网元还具有下面特点:
所述第二接收模块,还设置为:接收所述SDN控制器发送的暂停帧停止发送指示消息;
所述第二发送模块,还设置为:根据所述暂停帧停止发送指示消息的指示,停止向与所述网元相邻的网元和/或终端发送暂停帧。
可选地,上述网元还具有下面特点:
所述第二发送模块,是设置为:停止向与所述网元相邻的网元和/或终端发送暂停帧包括:如所述暂停帧停止发送指示消息携带端口信息,则停止从所述端口信息指定的端口向外发送暂停帧;如所述暂停帧停止发送指示消息携带优先级信息,则停止向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;如所述暂停帧停止发送指示消息携带端口信息和优先级信息,则停止从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;若所述暂停帧停止发送指示消息携带流信息,则停止向与所述网元相邻的网元和/或终端发送针对所述流信息指定的流的暂停帧;若所述暂停帧停止发送指示消息携带端口信息和流信息,则停止从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送针对所述流信息指定的流的暂停帧。
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执 行指令用于执行上述任一项的方法。
综上,本发明实施例提供一种处理报文的方法、SDN控制器及网元,可以缓解SDN控制器报文处理压力。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为根据相关技术的SDN网络组件架构的示意图;
图2为本发明实施例的一种处理报文的方法(应用于SDN控制器)的流程图;
图3为本发明实施例的一种处理报文的方法(应用于网元)的流程图;
图4为本发明实施例一的实施方式的示意图;
图5为本发明实施例二的实施方式的示意图;
图6为本发明实施例三的实施方式的示意图;
图7为本发明实施例四的实施方式的示意图;
图8为本发明实施例五的实施方式的示意图;
图9为本发明实施例的SDN控制器的示意图;
图10为本发明实施例的网元的示意图。
本发明的实施方式
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
图2为本发明实施例的一种处理报文的方法(应用于SDN控制器)的流程图,如图2所示,包括以下步骤:
步骤11,SDN控制器确定在第一指定时间段内接收到的报文数量达到第一阈值;
步骤12,SDN控制器向上报所述报文的网元发送暂停帧发送指示消息,指示所述网元向与所述网元相邻的网元和/或终端发送暂停帧。
SDN控制器判断网元在一定时间内上报的报文数量达到自身的处理极限(第一阈值)时,SDN控制器向网元发送暂停帧发送指示消息,指示网元向与该网元相邻的网元和/或终端发送暂停帧。
SDN控制器的处理能力都是有限的,而且SDN控制器可以通过自身的CPU(中央处理器)利用率、内存占用率、单位时间内进入待处理队列的报文数量等信息来判断出网元在一定时间内上报的报文数量是否接近自身的处理极限,一旦SDN控制器判断的结果为是,则SDN控制器向网元发送暂停帧发送指示消息,指示网元向与该网元相邻的网元和/或终端发送暂停帧,使得与该网元相邻的网元和/或终端把待发送的报文暂时缓存起来,以达到缓解SDN控制器的报文处理压力的目的。
SDN控制器向网元发送的暂停帧发送指示消息可以携带暂停时长信息,该信息会在网元向外发送的暂停帧中携带,用于告知暂停帧接收端暂停发送报文的时长。
网元上报SDN控制器的报文携带有网元标识信息和报文进入网元时的入端口信息。SDN控制器可以利用上报的报文携带的网元标识信息来选择发送暂停帧发送指示消息的对象网元;SDN控制器也可以把上报的报文携带的报文进入网元时的入端口信息写入暂停帧发送指示消息中,以指示网元从指定端口向外发送暂停帧。上述方法使得SDN控制器能够根据上报报文的来源信息指示特定网元从特定端口向外发送暂停帧,使得既能达到缓解SDN控制器的报文处理压力的目的,又尽量减小对网络中每个网元转发数据报文的影响。
网元上报SDN控制器的报文携带有优先级信息。SDN控制器向网元发送的暂停帧发送指示消息可以携带优先级信息,该信息用于指示网元向外发送基于优先级的暂停帧,使得暂停帧接收端只暂停特定优先级报文的发送,而不会暂停其它优先级报文的发送。上述方法的实施有一个前提,就是SDN控制器预先知晓网元支持发送和/或接收基于优先级的暂停帧,该前提可以通过在控制连接建立时,网元回复SDN控制器的端口能力查询响应消息中携带 是否支持发送和/或接收基于优先级的暂停帧的信息来实现。
步骤12之后,该方法还可包括:
步骤13,SDN控制器确定在第二指定时间段内上报的报文数量小于第二阈值;
步骤14,SDN控制器向所述网元发送暂停帧停止发送指示消息,指示所述网元停止向与所述网元相邻的网元和/或终端发送暂停帧。
SDN控制器判断出网元在一定时间内上报的报文数量远离自身的处理极限(即小于第二阈值)时,SDN控制器向网元发送暂停帧停止发送指示消息,指示网元停止向与该网元相邻的网元和/或终端发送暂停帧。
SDN控制器可以通过自身的CPU利用率、内存占用率、单位时间内进入待处理队列的报文数量等信息来判断出网元在一定时间内上报的报文数量是否远离自身的处理极限,一旦SDN控制器判断的结果为是,则SDN控制器向网元发送暂停帧停止发送指示消息,指示网元停止向与该网元相邻的网元和/或终端发送暂停帧,使得与该网元相邻的网元和/或终端把暂时缓存的报文发送出来,以达到防止网元和/或终端的缓存溢出导致丢包的目的。
SDN控制器向网元发送的暂停帧停止发送指示消息可以携带端口信息,该信息用于指示网元停止从指定端口向外发送暂停帧,而不会影响网元从其它端口继续向外发送暂停帧。
SDN控制器向网元发送的暂停帧停止发送指示消息可以携带优先级信息,该信息用于指示网元停止向外发送特定优先级的暂停帧,而不会影响网元继续向外发送其它优先级的暂停帧。
电气和电子工程师协会(IEEE,Institute of Electrical and Electronics Engineers)发布的802.3x标准规定了暂停帧(Pause Frame)的发送方法和帧格式,IEEE发布的802.1Qbb标准规定了基于优先级的暂停帧(Priority-based Pause Frame)的发送方法和帧格式,本发明实施例中SDN控制器指示网元向外发送的暂停帧遵循上述标准所规定的暂停帧发送方法和帧格式。
本发明实施例提供的一种处理报文的方法,当SDN控制器判断出网元在一定时间内上报的报文数量接近自身的处理极限时,SDN控制器向网元发送 暂停帧发送指示消息,指示网元向与该网元相邻的网元和/或终端发送暂停帧,使得与该网元相邻的网元和/或终端把待发送的报文暂时缓存起来,以缓解SDN控制器的报文处理压力;当SDN控制器判断出网元在一定时间内上报的报文数量远离自身的处理极限时,SDN控制器向网元发送暂停帧停止发送指示消息,指示网元停止向与该网元相邻的网元和/或终端发送暂停帧,以防止与该网元相邻的网元和/或终端的缓存溢出导致丢包。
图3为本发明实施例的一种处理报文的方法(应用于网元)的流程图,如图3所示,包括以下步骤:
步骤16,网元接收软件定义网络SDN控制器发送的暂停帧发送指示消息;
步骤17,所述网元根据所述暂停帧发送指示消息的指示,向与所述网元相邻的网元和/或终端发送暂停帧。
网元接收到SDN控制器发送的暂停帧发送指示消息,表示SDN控制器判断网元在一定时间内上报的报文数量达到自身的处理极限,则所述网元根据所述暂停帧发送指示消息的指示,向与所述网元相邻的网元和/或终端发送暂停帧,使得与该网元相邻的网元和/或终端把待发送的报文暂时缓存起来,以达到缓解SDN控制器的报文处理压力的目的。
若所述暂停帧发送指示消息携带端口信息,则所述网元从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送暂停帧;
若所述暂停帧发送指示消息携带优先级信息,则所述网元向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;
若所述暂停帧发送指示消息携带端口信息和优先级信息,则所述网元从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;
若所述暂停帧发送指示消息携带流信息,则所述网元向与所述网元相邻的网元和/或终端发送针对所述流信息指定的流的暂停帧;
若所述暂停帧发送指示消息携带端口信息和流信息,则所述网元从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送针对所述流信 息指定的流的暂停帧。
其中,若所述暂停帧发送指示消息携带有优先级信息时,网元向外发送基于优先级的暂停帧,使得暂停帧接收端只暂停特定优先级报文的发送,而不会暂停其它优先级报文的发送。上述方法的实施有一个前提,就是SDN控制器预先知晓网元支持发送和/或接收基于优先级的暂停帧,该前提可以通过在控制连接建立时,网元回复SDN控制器的端口能力查询响应消息中携带是否支持发送和/或接收基于优先级的暂停帧的信息来实现。
步骤17之后,该方法还可包括:
步骤18,所述网元接收所述SDN控制器发送的暂停帧停止发送指示消息;
步骤19,所述网元根据所述暂停帧停止发送指示消息的指示,停止向与所述网元相邻的网元和/或终端发送暂停帧。
网元接收所述SDN控制器发送的暂停帧停止发送指示消息,表示SDN控制器判断出网元在一定时间内上报的报文数量远离自身的处理极限,则网元停止向与该网元相邻的网元和/或终端发送暂停帧,使得与该网元相邻的网元和/或终端把暂时缓存的报文发送出来,以达到防止网元和/或终端的缓存溢出导致丢包的目的。
若所述暂停帧停止发送指示消息携带端口信息,则所述网元停止从所述端口信息指定的端口向外发送暂停帧;
若所述暂停帧停止发送指示消息携带优先级信息,则所述网元停止向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;
若所述暂停帧停止发送指示消息携带端口信息和优先级信息,则所述网元停止从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;
若所述暂停帧停止发送指示消息携带流信息,则所述网元停止向与所述网元相邻的网元和/或终端发送针对所述流信息指定的流的暂停帧;
若所述暂停帧停止发送指示消息携带端口信息和流信息,则所述网元停止从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送针对 所述流信息指定的流的暂停帧。
本发明实施例提供的一种处理报文的方法,当网元接收SDN控制器发送的暂停帧发送指示消息时,根据所述暂停帧发送指示消息的指示,向与所述网元相邻的网元和/或终端发送暂停帧,使得与该网元相邻的网元和/或终端把待发送的报文暂时缓存起来,以缓解SDN控制器的报文处理压力;当网元接收到DN控制器发送的发送暂停帧停止发送指示消息,网元停止向与该网元相邻的网元和/或终端发送暂停帧,以防止与该网元相邻的网元和/或终端的缓存溢出导致丢包。
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述处理报文的方法。
以下以几个实施例进行详细的说明。
实施例一
图4是实施例一的SDN控制器指示网元从所有端口向外发送暂停帧的实施方式示意图,如图4所示,本实施例中,网元21和网元23接收到SDN控制器发送的暂停帧发送指示消息后,从所有端口向外发送暂停帧。
本实施例中,SDN控制器与网元执行如下步骤:
步骤201,SDN控制器判断出网元21和网元23在一定时间内上报的报文数量接近自身的处理极限时,SDN控制器向网元21和网元23发送暂停帧发送指示消息,指示网元21和网元23从所有端口向外发送暂停帧。
由于直接与终端相连,所以网元21和网元23可能在短时间内上报大量发自终端的无法匹配转发表的数据报文,SDN控制器一旦判断出网元21和网元23上报的待处理报文接近自身的处理极限,就会向网元21和网元23发送暂停帧发送指示消息,指示网元21从所有端口向与其相邻的网元22和终端1发送暂停帧,要求网元22和终端1暂停向网元21发送数据报文,指示网元23从所有端口向与其相邻的网元22和终端2发送暂停帧,要求网元22和终端2暂停向网元23发送数据报文,以达到缓解SDN控制器报文处理压力的目的。
SDN控制器向网元21发送的暂停帧发送指示消息可以携带暂停时长信息,该信息会在网元21向网元22和终端1发送的暂停帧中携带,用于告知网元22和终端1暂停发送报文的时长;SDN控制器向网元23发送的暂停帧发送指示消息可以携带暂停时长信息,该信息会在网元23向网元22和终端2发送的暂停帧中携带,用于告知网元22和终端2暂停发送报文的时长。
步骤202,SDN控制器判断出网元21和网元23在一定时间内上报的报文数量远离自身的处理极限时,SDN控制器向网元21和网元23发送暂停帧停止发送指示消息,指示网元21和网元23停止从所有端口向外发送暂停帧。
SDN控制器处理完上报报文后,会给每个网元下发相应的匹配上报报文的转发表,后续的上报报文就会逐渐减少,SDN控制器一旦判断出网元21和网元23上报的待处理报文远离自身的处理极限,就会向网元21和网元23发送暂停帧停止发送指示消息,指示网元21停止从所有端口向与其相邻的网元22和终端1发送暂停帧,使得网元22和终端1把暂时缓存的数据报文发送出来,指示网元23停止从所有端口向与其相邻的网元22和终端2发送暂停帧,使得网元22和终端2把暂时缓存的数据报文发送出来,以达到防止网元22、终端1和终端2的缓存溢出导致丢包的目的。
实施例二
图5是实施例二的SDN控制器指示网元从指定端口向外发送暂停帧的实施方式示意图,如图5所示,本实施例中,网元31和网元33接收到SDN控制器发送的携带端口信息的暂停帧发送指示消息后,从指定端口向外发送暂停帧。
本实施例中,SDN控制器与网元执行如下步骤:
步骤301,SDN控制器判断出网元31和网元33在一定时间内上报的报文数量接近自身的处理极限时,SDN控制器向网元31和网元33发送携带端口信息的暂停帧发送指示消息,指示网元31和网元33从指定端口向外发送暂停帧。
由于直接与终端相连,所以网元31和网元33可能在短时间内上报大量发自终端的无法匹配转发表的数据报文,SDN控制器一旦判断出网元31和 网元33上报的待处理报文接近自身的处理极限,就会向网元31和网元33发送暂停帧发送指示消息。
网元31上报的报文携带该报文从网元31的端口1进入网元31的信息,于是SDN控制器向网元31发送的暂停帧发送指示消息也携带端口1的信息,指示网元31从端口1向与其相邻的终端3发送暂停帧,要求终端3暂停向网元31发送数据报文;网元33上报的报文携带该报文从网元33的端口2进入网元33的信息,于是SDN控制器向网元33发送的暂停帧发送指示消息也携带端口2的信息,指示网元33从端口2向与其相邻的终端4发送暂停帧,要求终端4暂停向网元33发送数据报文,以达到缓解SDN控制器报文处理压力的目的。
SDN控制器向网元31发送的暂停帧发送指示消息可以携带暂停时长信息,该信息会在网元31向终端3发送的暂停帧中携带,用于告知终端3暂停发送报文的时长;SDN控制器向网元33发送的暂停帧发送指示消息可以携带暂停时长信息,该信息会在网元33向终端4发送的暂停帧中携带,用于告知终端4暂停发送报文的时长。
步骤302,SDN控制器判断出网元31和网元33在一定时间内上报的报文数量远离自身的处理极限时,SDN控制器向网元31和网元33发送携带端口信息的暂停帧停止发送指示消息,指示网元31和网元33停止从指定端口向外发送暂停帧。
SDN控制器处理完上报报文后,会给每个网元下发相应的匹配上报报文的转发表,后续的上报报文就会逐渐减少,SDN控制器一旦判断出网元31和网元33上报的待处理报文远离自身的处理极限,就会向网元31和网元33发送暂停帧停止发送指示消息。SDN控制器向网元31发送的暂停帧停止发送指示消息携带端口1的信息,指示网元31停止从端口1向与其相邻的终端3发送暂停帧,使得终端3把暂时缓存的数据报文发送出来;SDN控制器向网元33发送的暂停帧停止发送指示消息携带端口2的信息,指示网元33停止从端口2向与其相邻的终端4发送暂停帧,使得终端4把暂时缓存的数据报文发送出来,以达到防止终端3和终端4的缓存溢出导致丢包的目的。
实施例三
图6是实施例三的SDN控制器指示网元从所有端口向外发送基于优先级的暂停帧的实施方式示意图,如图6所示,本实施例中,网元41和网元43接收到SDN控制器发送的携带优先级信息的暂停帧发送指示消息后,从所有端口向外发送基于优先级的暂停帧。
本实施例中,SDN控制器与网元执行如下步骤:
步骤401,SDN控制器与网元41建立起控制连接后向网元41发送查询消息,查询网元41的端口能力,网元41向SDN控制器返回响应消息,携带网元41的端口支持基于优先级的暂停帧的信息。SDN控制器与网元42建立起控制连接后向网元42发送查询消息,查询网元42的端口能力,网元42向SDN控制器返回响应消息,携带网元42的端口支持基于优先级的暂停帧的信息。SDN控制器与网元43建立起控制连接后向网元43发送查询消息,查询网元43的端口能力,网元43向SDN控制器返回响应消息,携带网元43的端口支持基于优先级的暂停帧的信息。
步骤402,SDN控制器判断出网元41和网元43在一定时间内上报的报文数量接近自身的处理极限时,SDN控制器向网元41和网元43发送携带优先级信息的暂停帧发送指示消息,指示网元41和网元43从所有端口向外发送特定优先级的暂停帧。
由于直接与终端相连,所以网元41和网元43可能在短时间内上报大量发自终端的无法匹配转发表的数据报文,SDN控制器一旦判断出网元41和网元43上报的待处理报文接近自身的处理极限,就会向网元41和网元43发送暂停帧发送指示消息。SDN控制器已经通过步骤401的查询方法获知网元41和网元42的端口都支持基于优先级的暂停帧,且网元41上报的报文携带该报文的优先级信息,于是SDN控制器向网元41发送的暂停帧发送指示消息可携带优先级信息,指示网元41从所有端口向与其相邻的网元42和终端5发送特定优先级的暂停帧,要求网元42和终端5暂停向网元41发送特定优先级的数据报文;SDN控制器已经通过步骤401的查询方法获知网元42和网元43的端口都支持基于优先级的暂停帧,且网元43上报的报文携带该报文的优先级信息,于是SDN控制器向网元43发送的暂停帧发送指示消息可携带优先级信息,指示网元43从所有端口向与其相邻的网元42和终端6发 送特定优先级的暂停帧,要求网元42和终端6暂停向网元43发送特定优先级的数据报文,以达到缓解SDN控制器报文处理压力的目的。
SDN控制器向网元41发送的暂停帧发送指示消息可以携带暂停时长信息,该信息会在网元41向网元42和终端5发送的暂停帧中携带,用于告知网元42和终端5暂停发送报文的时长;SDN控制器向网元43发送的暂停帧发送指示消息可以携带暂停时长信息,该信息会在网元43向网元42和终端6发送的暂停帧中携带,用于告知网元42和终端6暂停发送报文的时长。
步骤403,SDN控制器判断出网元41和网元43在一定时间内上报的报文数量远离自身的处理极限时,SDN控制器向网元41和网元43发送携带优先级信息的暂停帧停止发送指示消息,指示网元41和网元43停止从所有端口向外发送特定优先级的暂停帧。
SDN控制器处理完上报报文后,会给每个网元下发相应的匹配上报报文的转发表,后续的上报报文就会逐渐减少,SDN控制器一旦判断出网元41和网元43上报的待处理报文远离自身的处理极限,就会向网元41和网元43发送暂停帧停止发送指示消息。SDN控制器向网元41发送的暂停帧停止发送指示消息携带优先级信息,指示网元41停止从所有端口向与其相邻的网元42和终端5发送特定优先级的暂停帧,使得网元42和终端5把暂时缓存的特定优先级的数据报文发送出来;SDN控制器向网元43发送的暂停帧停止发送指示消息携带优先级信息,指示网元43停止从所有端口向与其相邻的网元42和终端6发送特定优先级的暂停帧,使得网元42和终端6把暂时缓存的特定优先级的数据报文发送出来,以达到防止网元42、终端5和终端6的缓存溢出导致丢包的目的。
实施例四
图7是实施例四的SDN控制器指示网元从指定端口向外发送基于优先级的暂停帧的实施方式示意图,如图7所示,本实施例中,网元51和网元53接收到SDN控制器发送的携带端口信息和优先级信息的暂停帧发送指示消息后,从指定端口向外发送特定优先级的暂停帧。
本实施例中,SDN控制器与网元执行如下步骤:
步骤501,SDN控制器判断出网元51和网元53在一定时间内上报的报文数量接近自身的处理极限时,SDN控制器向网元51和网元53发送携带端口信息和优先级信息的暂停帧发送指示消息,指示网元51和网元53从指定端口向外发送特定优先级的暂停帧。
由于直接与终端相连,所以网元51和网元53可能在短时间内上报大量发自终端的无法匹配转发表的数据报文,SDN控制器一旦判断出网元51和网元53上报的待处理报文接近自身的处理极限,就会向网元51和网元53发送暂停帧发送指示消息。网元51上报的报文携带该报文从网元51的端口1进入网元51的信息,网元51上报的报文也携带该报文的优先级信息,于是SDN控制器向网元51发送的暂停帧发送指示消息也携带端口1的信息和优先级信息,指示网元51从端口1向与其相邻的终端7发送特定优先级的暂停帧,要求终端7暂停向网元51发送特定优先级的数据报文;网元53上报的报文携带该报文从网元53的端口2进入网元53的信息,网元53上报的报文也携带该报文的优先级信息,于是SDN控制器向网元53发送的暂停帧发送指示消息也携带端口2的信息和优先级信息,指示网元53从端口2向与其相邻的终端8发送特定优先级的暂停帧,要求终端8暂停向网元53发送特定优先级的数据报文,以达到缓解SDN控制器报文处理压力的目的。
SDN控制器向网元51发送的暂停帧发送指示消息可以携带暂停时长信息,该信息会在网元51向终端7发送的暂停帧中携带,用于告知终端7暂停发送报文的时长;SDN控制器向网元53发送的暂停帧发送指示消息可以携带暂停时长信息,该信息会在网元53向终端8发送的暂停帧中携带,用于告知终端8暂停发送报文的时长。
步骤502,SDN控制器判断出网元51和网元53在一定时间内上报的报文数量远离自身的处理极限时,SDN控制器向网元51和网元53发送携带端口信息和优先级信息的暂停帧停止发送指示消息,指示网元51和网元53停止从指定端口向外发送特定优先级的暂停帧。
SDN控制器处理完上报报文后,会给每个网元下发相应的匹配上报报文的转发表,后续的上报报文就会逐渐减少,SDN控制器一旦判断出网元51和网元53上报的待处理报文远离自身的处理极限,就会向网元51和网元53 发送暂停帧停止发送指示消息。SDN控制器向网元51发送的暂停帧停止发送指示消息携带端口1的信息和优先级信息,指示网元51停止从端口1向与其相邻的终端7发送特定优先级的暂停帧,使得终端7把暂时缓存的特定优先级的数据报文发送出来;SDN控制器向网元53发送的暂停帧停止发送指示消息携带端口2的信息和优先级信息,指示网元53停止从端口2向与其相邻的终端8发送特定优先级的暂停帧,使得终端8把暂时缓存的特定优先级的数据报文发送出来,以达到防止终端7和终端8的缓存溢出导致丢包的目的。
实施例五
图8是实施例五的SDN控制器指示网元从指定端口向外发送基于流的暂停帧的实施方式示意图,如图8所示,本实施例中,网元61和网元63接收到SDN控制器发送的携带端口信息和流信息的暂停帧发送指示消息后,从指定端口向外发送针对特定流的暂停帧。
本实施例中,SDN控制器与网元执行如下步骤:
步骤601,SDN控制器判断出网元61和网元63在一定时间内上报的报文数量接近自身的处理极限时,SDN控制器向网元61和网元63发送携带端口信息和流信息的暂停帧发送指示消息,指示网元61和网元63从指定端口向外发送针对特定流的暂停帧。
由于直接与终端相连,所以网元61和网元63可能在短时间内上报大量发自终端的无法匹配转发表的数据报文,SDN控制器一旦判断出网元61和网元63上报的待处理报文接近自身的处理极限,就会向网元61和网元63发送暂停帧发送指示消息。网元61上报的报文携带该报文从网元61的端口1进入网元61的信息,网元61上报的报文也携带该报文的流信息,于是SDN控制器向网元61发送的暂停帧发送指示消息也携带端口1的信息和流信息,指示网元61从端口1向与其相邻的终端9发送针对特定流的暂停帧,要求终端9暂停向网元61发送特定流的数据报文;网元63上报的报文携带该报文从网元63的端口2进入网元63的信息,网元63上报的报文也携带该报文的流信息,于是SDN控制器向网元63发送的暂停帧发送指示消息也携带端口2的信息和流信息,指示网元63从端口2向与其相邻的终端10发送针对特定 流的暂停帧,要求终端10暂停向网元63发送特定流的数据报文,以达到缓解SDN控制器报文处理压力的目的。
SDN控制器向网元61发送的暂停帧发送指示消息可以携带暂停时长信息,该信息会在网元61向终端9发送的暂停帧中携带,用于告知终端9暂停发送报文的时长;SDN控制器向网元63发送的暂停帧发送指示消息可以携带暂停时长信息,该信息会在网元63向终端10发送的暂停帧中携带,用于告知终端10暂停发送报文的时长。
步骤602,SDN控制器判断出网元61和网元63在一定时间内上报的报文数量远离自身的处理极限时,SDN控制器向网元61和网元63发送携带端口信息和流信息的暂停帧停止发送指示消息,指示网元61和网元63停止从指定端口向外发送针对特定流的暂停帧。
SDN控制器处理完上报报文后,会给每个网元下发相应的匹配上报报文的转发表,后续的上报报文就会逐渐减少,SDN控制器一旦判断出网元61和网元63上报的待处理报文远离自身的处理极限,就会向网元61和网元63发送暂停帧停止发送指示消息。SDN控制器向网元61发送的暂停帧停止发送指示消息携带端口1的信息和流信息,指示网元61停止从端口1向与其相邻的终端9发送针对特定流的暂停帧,使得终端9把暂时缓存的特定流的数据报文发送出来;SDN控制器向网元63发送的暂停帧停止发送指示消息携带端口2的信息和流信息,指示网元63停止从端口2向与其相邻的终端10发送针对特定流的暂停帧,使得终端10把暂时缓存的特定流的数据报文发送出来,以达到防止终端9和终端10的缓存溢出导致丢包的目的。
图9为本发明实施例的SDN控制器的示意图,如图9所示,本实施例的SDN控制器包括:
确定模块91,设置为:确定在第一指定时间段内接收到的报文数量达到第一阈值;
第一发送模块92,设置为:向上报所述报文的网元发送暂停帧发送指示消息,指示所述网元向与所述网元相邻的网元和/或终端发送暂停帧。
在一可选实施例中,所述SDN控制器还可以包括第一接收模块93,
所述第一发送模块92,还设置为:在与所述网元建立控制连接后,向所述网元发送用于查询所述网元的端口能力的查询消息;
所述第一接收模块93,设置为:接收所述网元返回的响应消息,所述响应消息携带所述网元的端口支持基于优先级的暂停帧的信息。
在一可选实施例中,所述第一发送模块92,发送的暂停帧发送指示消息还可以携带以下的一项或多项:所述报文携带的所述报文进入上报所述报文的网元时的端口信息,指示网元从指定端口向外发送暂停帧;所述报文携带的优先级信息,指示网元向外发送基于优先级的暂停帧;所述报文携带的所述报文的流信息,指示网元向外发送针对指定流的暂停帧;暂停时长信息。
在一可选实施例中,所述确定模块93,还可以设置为:在所述第一发送模块92向上报所述报文的网元发送暂停帧发送指示消息之后,确定在第二指定时间段内上报的报文数量小于第二阈值;
所述第一发送模块92,还可以设置为:向所述网元发送暂停帧停止发送指示消息,指示所述网元停止向与所述网元相邻的网元和/或终端发送暂停帧。
在一可选实施例中,所述第一发送模块92,发送的所述暂停帧停止发送指示消息还可以携带以下的一项或多项:端口信息,指示网元停止从指定端口向外发送暂停帧;优先级信息,指示网元停止向外发送指定优先级的暂停帧;流信息,指示网元停止向外发送针对指定流的暂停帧。
图10为本发明实施例的网元的示意图,如图10所示,本实施例的网元包括:
第二接收模块101,设置为:软件定义网络SDN控制器发送的暂停帧发送指示消息;
第二发送模块102,设置为:根据所述暂停帧发送指示消息的指示,向与所述网元相邻的网元和/或终端发送暂停帧。
在一可选实施例中,所述第二接收模块101,还可以设置为:接收所述SDN控制器发送的查询所述网元的端口能力的查询消息;
所述第二发送模块102,还可以设置为:向所述SDN控制器返回响应消 息,所述响应消息携带所述网元的端口支持基于优先级的暂停帧的信息。
在一可选实施例中,所述第二发送模块102,是设置为:若所述暂停帧发送指示消息携带端口信息,则从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送暂停帧;若所述暂停帧发送指示消息携带优先级信息,则向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;若所述暂停帧发送指示消息携带端口信息和优先级信息,则从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;若所述暂停帧发送指示消息携带流信息,则向与所述网元相邻的网元和/或终端发送所述流信息指定的流的暂停帧;若所述暂停帧发送指示消息携带端口信息和流信息,则从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送所述流信息指定的流的暂停帧。
在一可选实施例中,所述第二接收模块101,还可设置为:接收所述SDN控制器发送的暂停帧停止发送指示消息;
所述第二发送模块102,还可设置为:根据所述暂停帧停止发送指示消息的指示,停止向与所述网元相邻的网元和/或终端发送暂停帧。
在一可选实施例中,所述第二发送模块102,是设置为:如所述暂停帧停止发送指示消息携带端口信息,则停止从所述端口信息指定的端口向外发送暂停帧;如所述暂停帧停止发送指示消息携带优先级信息,则停止向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;如所述暂停帧停止发送指示消息携带端口信息和优先级信息,则停止从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;若所述暂停帧停止发送指示消息携带流信息,则停止向与所述网元相邻的网元和/或终端发送所述流信息指定的流的暂停帧;若所述暂停帧停止发送指示消息携带端口信息和流信息,则停止从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送所述流信息指定的流的暂停帧。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。相应地,上述实施例中的模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本申请不限制于任何特定形式的硬件和软件的结合。
以上仅为本发明的可选实施例,当然,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出多种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。
工业实用性
本发明实施例提供一种处理报文的方法、SDN控制器及网元,可以缓解SDN控制器报文处理压力。

Claims (16)

  1. 一种处理报文的方法,包括:
    软件定义网络SDN控制器确定在第一指定时间段内接收到的报文数量达到第一阈值;
    所述SDN控制器向上报所述报文的网元发送暂停帧发送指示消息,指示所述网元向与所述网元相邻的网元和/或终端发送暂停帧。
  2. 如权利要求1所述的方法,还包括:
    所述SDN控制器在与所述网元建立控制连接后,向所述网元发送用于查询所述网元的端口能力的查询消息;
    所述SDN控制器接收所述网元返回的响应消息,所述响应消息携带所述网元的端口支持基于优先级的暂停帧的信息。
  3. 如权利要求1或2所述的方法,其中:所述暂停帧发送指示消息还携带以下的一项或多项:
    所述报文携带的所述报文进入上报所述报文的网元时的端口信息,指示网元从指定端口向外发送暂停帧;
    所述报文携带的优先级信息,指示网元向外发送基于优先级的暂停帧;
    所述报文携带的所述报文的流信息,指示网元向外发送针对指定流的暂停帧;
    暂停时长信息。
  4. 如权利要求1所述的方法,还包括:
    所述SDN控制器向上报所述报文的网元发送暂停帧发送指示消息之后,所述SDN控制器确定在第二指定时间段内上报的报文数量小于第二阈值;
    所述SDN控制器向所述网元发送暂停帧停止发送指示消息,指示所述网元停止向与所述网元相邻的网元和/或终端发送暂停帧。
  5. 如权利要求4所述的方法,其中:所述暂停帧停止发送指示消息还携带以下的一项或多项:
    端口信息,指示网元停止从指定端口向外发送暂停帧;
    优先级信息,指示网元停止向外发送针对指定优先级的暂停帧;
    流信息,指示网元停止向外发送针对指定流的暂停帧。
  6. 一种软件定义网络SDN控制器,包括:
    确定模块,设置为:确定在第一指定时间段内接收到的报文数量达到第一阈值;
    第一发送模块,设置为:向上报所述报文的网元发送暂停帧发送指示消息,指示所述网元向与所述网元相邻的网元和/或终端发送暂停帧。
  7. 如权利要求6所述的SDN控制器,还包括第一接收模块,
    所述第一发送模块,还设置为:在与所述网元建立控制连接后,向所述网元发送用于查询所述网元的端口能力的查询消息;
    所述第一接收模块,设置为:接收所述网元返回的响应消息,所述响应消息携带所述网元的端口支持基于优先级的暂停帧的信息。
  8. 如权利要求6所述的SDN控制器,其中:
    所述确定模块,还设置为:在所述第一发送模块向上报所述报文的网元发送暂停帧发送指示消息之后,确定在第二指定时间段内上报的报文数量小于第二阈值;
    所述第一发送模块,还设置为:向所述网元发送暂停帧停止发送指示消息,指示所述网元停止向与所述网元相邻的网元和/或终端发送暂停帧。
  9. 一种处理报文的方法,包括:
    网元接收软件定义网络SDN控制器发送的暂停帧发送指示消息;
    所述网元根据所述暂停帧发送指示消息的指示,向与所述网元相邻的网元和/或终端发送暂停帧。
  10. 如权利要求9所述的方法,还包括:
    接收所述SDN控制器发送的查询所述网元的端口能力的查询消息;
    向所述SDN控制器返回响应消息,所述响应消息携带所述网元的端口支持基于优先级的暂停帧的信息。
  11. 如权利要求9或10所述的方法,其中:
    若所述暂停帧发送指示消息携带端口信息,则所述网元从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送暂停帧;
    若所述暂停帧发送指示消息携带优先级信息,则所述网元向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;
    若所述暂停帧发送指示消息携带端口信息和优先级信息,则所述网元从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;
    若所述暂停帧发送指示消息携带流信息,则所述网元向与所述网元相邻的网元和/或终端发送针对所述流信息指定的流的暂停帧;
    若所述暂停帧发送指示消息携带端口信息和流信息,则所述网元从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送针对所述流信息指定的流的暂停帧。
  12. 如权利要求9所述的方法,还包括:
    所述网元接收所述SDN控制器发送的暂停帧停止发送指示消息;
    所述网元根据所述暂停帧停止发送指示消息的指示,停止向与所述网元相邻的网元和/或终端发送暂停帧。
  13. 如权利要求12所述的方法,其中:
    如所述暂停帧停止发送指示消息携带端口信息,则所述网元停止从所述端口信息指定的端口向外发送暂停帧;
    如所述暂停帧停止发送指示消息携带优先级信息,则所述网元停止向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;
    如所述暂停帧停止发送指示消息携带端口信息和优先级信息,则所述网元停止从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送基于优先级的暂停帧;
    若所述暂停帧停止发送指示消息携带流信息,则所述网元停止向与所述网元相邻的网元和/或终端发送针对所述流信息指定的流的暂停帧;
    若所述暂停帧停止发送指示消息携带端口信息和流信息,则所述网元停 止从所述端口信息指定的端口向与所述网元相邻的网元和/或终端发送针对所述流信息指定的流的暂停帧。
  14. 一种网元,包括:
    第二接收模块,设置为:接收软件定义网络SDN控制器发送的暂停帧发送指示消息;
    第二发送模块,设置为:根据所述暂停帧发送指示消息的指示,向与所述网元相邻的网元和/或终端发送暂停帧。
  15. 如权利要求14所述的网元,其中:
    所述第二接收模块,还设置为:接收所述SDN控制器发送的查询所述网元的端口能力的查询消息;
    所述第二发送模块,还设置为:向所述SDN控制器返回响应消息,所述响应消息携带所述网元的端口支持基于优先级的暂停帧的信息。
  16. 如权利要求14所述的网元,其中:
    所述第二接收模块,还设置为:接收所述SDN控制器发送的暂停帧停止发送指示消息;
    所述第二发送模块,还设置为:根据所述暂停帧停止发送指示消息的指示,停止向与所述网元相邻的网元和/或终端发送暂停帧。
PCT/CN2016/083033 2015-09-30 2016-05-23 一种处理报文的方法、sdn控制器及网元 WO2017054473A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510643824.5 2015-09-30
CN201510643824.5A CN106559351B (zh) 2015-09-30 2015-09-30 一种处理报文的方法、sdn控制器及网元

Publications (1)

Publication Number Publication Date
WO2017054473A1 true WO2017054473A1 (zh) 2017-04-06

Family

ID=58417818

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/083033 WO2017054473A1 (zh) 2015-09-30 2016-05-23 一种处理报文的方法、sdn控制器及网元

Country Status (2)

Country Link
CN (1) CN106559351B (zh)
WO (1) WO2017054473A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113225376B (zh) * 2021-03-29 2022-07-08 桂林电子科技大学 一种基于fpga的以太网帧与sdn数据帧的适配方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523161A (zh) * 2011-12-16 2012-06-27 盛科网络(苏州)有限公司 跨以太网交换网云的流控方法及***
WO2013093857A1 (en) * 2011-12-22 2013-06-27 Telefonaktiebolaget L M Ericsson (Publ) Controller for flexible and extensible flow processing in software-defined networks
US20140169169A1 (en) * 2012-12-18 2014-06-19 Mellanox Technologies Ltd. Routing support for lossless data traffic
CN104104609A (zh) * 2013-04-09 2014-10-15 国际商业机器公司 用于提供网络中基于信用的流控制的方法和***
CN104852865A (zh) * 2015-06-16 2015-08-19 上海斐讯数据通信技术有限公司 一种基于sdn架构的流量控制方法及***

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146034A (zh) * 2007-04-18 2008-03-19 中兴通讯股份有限公司 一种smn报文控制方法
CN102006220A (zh) * 2009-09-03 2011-04-06 中兴通讯股份有限公司 Ip网络信令传输故障处理方法及装置
CN104639362A (zh) * 2013-11-15 2015-05-20 中兴通讯股份有限公司 Oam性能监控方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523161A (zh) * 2011-12-16 2012-06-27 盛科网络(苏州)有限公司 跨以太网交换网云的流控方法及***
WO2013093857A1 (en) * 2011-12-22 2013-06-27 Telefonaktiebolaget L M Ericsson (Publ) Controller for flexible and extensible flow processing in software-defined networks
US20140169169A1 (en) * 2012-12-18 2014-06-19 Mellanox Technologies Ltd. Routing support for lossless data traffic
CN104104609A (zh) * 2013-04-09 2014-10-15 国际商业机器公司 用于提供网络中基于信用的流控制的方法和***
CN104852865A (zh) * 2015-06-16 2015-08-19 上海斐讯数据通信技术有限公司 一种基于sdn架构的流量控制方法及***

Also Published As

Publication number Publication date
CN106559351A (zh) 2017-04-05
CN106559351B (zh) 2021-06-18

Similar Documents

Publication Publication Date Title
US11770722B2 (en) Signalling of deterministic system capabilities depending on absolute transmission time (TSN, DETNET, etc.)
JP6496075B2 (ja) 第1の基地局又は第2の基地局を選択してユーザ装置(ue)にパケットデータユニット(pdu)を送信する方法及び装置
US10849008B2 (en) Processing method and device for radio bearer for transmitting data stream
CN106134138B (zh) 一种拥塞控制的方法、设备和***
WO2019095278A1 (en) Method and apparatus for synchronization between different data packet streams
WO2018103675A1 (zh) 数据流重映射方法及装置和用户设备、ran设备
WO2011120467A2 (zh) 报文保序处理方法、保序协处理器和网络设备
JP2023025025A (ja) データ伝送方法及び装置
WO2017148256A1 (zh) 一种流量控制方法、装置和***
US20200252337A1 (en) Data transmission method, device, and computer storage medium
US8838782B2 (en) Network protocol processing system and network protocol processing method
TW201924470A (zh) 用於無線通訊中的分離承載預處理的緩衝器狀態報告方法和裝置
CN111213403A (zh) 无线通信***中QoS流的调度
WO2018120183A1 (zh) 数据传输的方法及装置
US8908510B2 (en) Communication link with intra-packet flow control
WO2021092839A1 (zh) 数据传输方法、电子设备、***及存储介质
WO2017091941A1 (zh) 一种处理业务数据包的方法及装置
CN111064788A (zh) 信号传输方法、机器人及计算机可读存储介质
WO2012119414A1 (zh) 交换网的流量控制方法和装置
WO2016131323A1 (zh) 一种控制双连接x2状态报告发送的方法、装置及辅基站
US20090201816A1 (en) Communication device, and flow control method and program product for use in the same
WO2017054473A1 (zh) 一种处理报文的方法、sdn控制器及网元
JP2006279188A (ja) 優先制御を行う送信制御装置、通信制御装置、通信システム、通信ネットワーク、及び送信方法
US9407565B1 (en) Detection and repair of permanent pause on flow controlled fabric
US20120163398A1 (en) Communication apparatus, relay apparatus, and network system

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16850098

Country of ref document: EP

Kind code of ref document: A1