WO2017211304A1 - 一种基于软件定义网络的统计方法、装置及系统 - Google Patents

一种基于软件定义网络的统计方法、装置及系统 Download PDF

Info

Publication number
WO2017211304A1
WO2017211304A1 PCT/CN2017/087473 CN2017087473W WO2017211304A1 WO 2017211304 A1 WO2017211304 A1 WO 2017211304A1 CN 2017087473 W CN2017087473 W CN 2017087473W WO 2017211304 A1 WO2017211304 A1 WO 2017211304A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
protocol
statistics
processed
query
Prior art date
Application number
PCT/CN2017/087473
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 WO2017211304A1 publication Critical patent/WO2017211304A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers

Definitions

  • This paper relates to the field of communication technologies, and in particular to a statistical method, device and system based on a software-defined network.
  • SDN Software Defined Network
  • the SDN network architecture abstraction is usually defined as three layers: the first layer is the forwarding plane entity, including multiple software and hardware components that implement this forwarding function; the second layer is the entity that manages and controls the first layer forwarding entity.
  • the third layer is based on the applications and services of the first two layers of the underlying network.
  • the interface between the first two layers is called the southbound interface of SDN.
  • the OpenFlow protocol is the mainstream protocol of the southbound interface. It is based on the flow table and controls the fine-grained forwarding table and its behavior. It has a strong expression. Ability and adaptability.
  • the OpenFlow protocol is an exchange technology originally proposed by Stanford University. It is based on the Transmission Control Protocol (TCP)/Internet Protocol (IP) technology and is based on innovative network interconnection. The idea is to solve the shortcomings of the current network.
  • the core idea of the OpenFlow protocol is to evolve the packet forwarding process controlled by the switch/router into an OpenFlow forwarding plane device (such as the OF Switch, including other OpenFlow/OF-Config protocols and flow tables).
  • the forwarding process of the mechanism such as an Access Point (AP), a router, and an independent server (such as the OF Controller), respectively, to separate the data forwarding and routing control.
  • AP Access Point
  • AP Access Point
  • router an independent server
  • the OF Controller independent server
  • switches and routers have control rights, but there is no concept of data flow, only packet-level exchange can be performed.
  • the control server will replace the router, and the control server (OF Controller) determines the transmission path of all data packets in the network through pre-defined interface operations, thereby achieving the purpose of controlling data forwarding.
  • the OpenFlow protocol runs on the Transport Layer Security Protocol (TLS) and the unprotected TCP connection. If the OpenFlow forwarding device encounters a packet with no forwarding path when forwarding the packet, The device sends an inquiry message to the OpenFlow controller with which the link is established, and the controller determines the forwarding path of the data packet.
  • TLS Transport Layer Security Protocol
  • the OpenFlow protocol V1.3 version begins to separate the OF-Config protocol, and strips out the functions of the SDN forwarding plane device configuration management to form a separate channel.
  • the SDN configuration point configures and manages the capability switch through the OF-Config protocol.
  • 2 shows the SDN network architecture.
  • the OF-Config protocol can run on TCP, Secure Socket Layer (SSL) protocol, User Data Protocol (UDP) or Datagram Transport Layer Security (abbreviated as Datagram Transport Layer Security). Protocols such as DTLS).
  • each resource of the forwarding device is defined in the OpenFlow protocol, such as statistics based on flow table, port-based statistics, etc.
  • these statistics are only applicable to data packets, and the protocol packets for the OpenFlow protocol cannot be well.
  • the statistics provided by the OpenFlow protocol cannot meet the requirements of the SDN configuration point for operation and maintenance of the capability devices.
  • the embodiment of the invention provides a statistical method, a device and a system based on a software-defined network, which can perform statistics on protocol packets of the OpenFlow protocol under the OpenFlow protocol.
  • a statistical method based on a software-defined network includes: determining, by using an OF-Config protocol, whether to start packet statistics for a protocol type message to be processed; and counting a protocol type message to be processed; Receiving a query instruction for querying a protocol type message to be processed; returning the query result.
  • the OF-Config protocol is used to determine whether to process the protocol type packet to enable packet statistics, including: setting, by using the OF-Config protocol, whether to enable all ports to perform packet statistics of the protocol type packets to be processed.
  • the statistics of the to-be-processed protocol type packet includes: determining whether the identified packet is the same as the type of the protocol type to be processed; and if the judgment result is yes, collecting the packet.
  • determining whether the identified packet is the same as the type of the protocol type to be processed includes: determining whether the Ethernet type of the packet is the same as the packet type of the protocol to be processed.
  • the statistics packet includes: counting the packets in a preset manner, where the preset manner includes: counting the number of OpenFlow packet-in/packet-out packets, and counting statistics on the number of bytes; or, counting The number of OpenFlow packet-in/packet-out packets; or, counts the number of bytes.
  • the query instruction for receiving the query protocol type message includes one of the following: receiving a query instruction encapsulated by the OF-Config protocol; and receiving a query instruction indicating the query target resource statistics.
  • the returned query result includes at least one of the following: the query instruction encapsulated according to the OF-Config protocol returns a corresponding query result; and the query instruction according to the query target resource statistics returns a corresponding query result.
  • a software-defined network-based statistical device including: a configuration module, configured to determine, by using an OF-Config protocol, whether to process a protocol type packet to enable packet statistics;
  • the sending module is configured to receive a query instruction for querying a protocol type message to be processed; the sending module is configured to return a query result.
  • the configuration module includes: a configuration unit, configured to determine, by using the OF-Config protocol, whether to enable all ports to perform packet statistics on the protocol type of the to-be-processed protocol.
  • the statistic module includes: a judging unit configured to determine whether the identified packet is the same as the packet type of the protocol to be processed; and the statistic unit is configured to collect the statistic packet if the judgment result is yes.
  • the determining unit includes: a determining subunit, configured to determine whether the Ethernet type of the packet is the same as the type of the protocol type to be processed.
  • the statistic unit includes: a statistic subunit, configured to collect statistics by using a preset manner, where the preset manner includes: counting the number of OpenFlow packet-in/packet-out packets, and, Counts the number of bytes; or counts the number of OpenFlow packet-in/packet-out packets; or counts the number of bytes.
  • the receiving module includes: a first receiving unit configured to receive a query instruction encapsulated by the OF-Config protocol; and a second receiving unit configured to receive a query instruction indicating the query target resource statistics.
  • the sending module includes: a first sending unit, configured to return a corresponding query result according to the query instruction encapsulated by the OF-Config protocol; and the second sending unit is configured to return a corresponding query according to the query instruction of the query target resource statistical data. result.
  • a software-defined network-based statistical system including: a software-defined network SDN configuration point and a capability switching device, a software-defined network SDN configuration point, and a capability switching device communication connection, where The software-defined network SDN configuration point is set to send the OF-Config protocol, and after the capability switching device starts the packet statistics according to the OF-Config protocol, generates a query instruction for processing the protocol type message, and receives the capability switching device according to the query.
  • the capability switching device is connected to the software-defined network SDN configuration point, and is set to be set by the OF-Config protocol to determine whether to process the protocol type packet to enable packet statistics; and to calculate the protocol type message to be processed; Receiving a query instruction for querying a protocol type message sent by a software-defined network SDN configuration point; returning a query result to a software-defined network SDN configuration point.
  • the capability switching device is the above-mentioned statistical device based on a software-defined network.
  • a storage medium is also provided.
  • the storage medium is configured to store a program code for performing the following steps: determining, by using the OF-Config protocol, whether to treat the protocol type message to enable packet statistics; collecting the protocol type message to be processed; and receiving the query pending protocol type report.
  • the query instruction of the text return the query result.
  • the storage medium is further configured to store the program code for performing the following steps: determining, by using the OF-Config protocol, whether to treat the protocol type message to enable packet statistics: determining whether to enable all by using the OF-Config protocol setting.
  • the port performs packet statistics for the protocol type packets to be processed.
  • the storage medium is further configured to store program code for performing the following steps: the statistical protocol type message includes: determining whether the identified message is related to the protocol type of the protocol type to be processed. Same; in the case where the judgment result is yes, the statistical message.
  • the storage medium is further configured to store the program code for performing the following steps: the statistics of the protocol type to be processed includes: determining whether the identified packet is the same as the type of the protocol type to be processed; In the case of a statistical message.
  • the storage medium is further configured to store the program code for performing the following steps: counting the packets by using a preset manner, where the preset manner includes: counting the number of OpenFlow packet-in/packet-out packets, and The number of bytes is counted and counted; or, the number of OpenFlow packet-in/packet-out packets is counted; or the number of bytes is counted and counted.
  • the storage medium is further configured to store program code for performing the following steps: receiving the query instruction for querying the protocol type message to be processed includes: receiving a query instruction encapsulated by the OF-Config protocol; and receiving the query protocol type message The query instruction includes: receiving a query instruction indicating querying the target resource statistics.
  • the storage medium is further configured to store program code for performing the following steps: returning the query result includes at least one of: returning a corresponding query result according to the query instruction encapsulated by the OF-Config protocol; and querying the target resource statistics according to the query The query instruction returns the corresponding query result.
  • the setting of the OF-Config protocol determines whether the packet type of the protocol type message is to be opened; the packet of the protocol type to be processed is received; the query instruction for querying the protocol type message is received; and the query result is returned. . Therefore, it is possible to perform statistics on the protocol packets of the OpenFlow protocol under the OpenFlow protocol, and implement the statistics of the protocol packets of the OpenFlow protocol and the improvement of the management and operation and maintenance of the SDN configuration point capability device.
  • FIG. 1 is a flow chart of a statistical method based on a software-defined network according to an embodiment of the present invention
  • FIG. 2 is a diagram of an SDN network component architecture
  • FIG. 3 is a flow chart of an example 1 of a software-defined network-based statistical method in accordance with an embodiment of the present invention
  • FIG. 5 is a flow chart of an example 3 of a software-defined network-based statistical method in accordance with an embodiment of the present invention.
  • FIG. 6 is a flow chart of an example 4 of a software-defined network-based statistical method in accordance with an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a statistical device based on a software-defined network according to an embodiment of the present invention.
  • SDN Software Defined Network
  • Data message transport layer Datagram Transport Layer Security, referred to as DTLS;
  • UDP User Date Protocol
  • Secure Socket Layer Protocol Secure Socket Layer, referred to as SSL.
  • FIG. 1 is a flowchart of a statistical method based on a software-defined network according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
  • step S102 the protocol setting of the OpenFlow Management and Configuration Protocol (OF-Config) is used to determine whether to process the protocol type packet to enable packet statistics.
  • OF-Config OpenFlow Management and Configuration Protocol
  • Step S104 collecting a protocol type message to be processed
  • Step S106 receiving a query instruction for querying a protocol type message to be processed
  • Step S108 returning the query result.
  • the execution subject of step S102 to step S108 may be a capability device.
  • the software-defined network-based statistical method provided by the embodiment of the present application satisfies the statistics of the OpenFlow protocol packet and the operation and monitoring requirements of the SDN configuration point, and performs the resource statistics granularity by using the OF-Config protocol.
  • Management settings, capability devices perform packet statistics and records according to relevant settings.
  • SDN configuration points can query and manage resource statistics through the OF-Config protocol.
  • the capability device may be a logical switch specified by OpenFlow.
  • the OF-Config protocol is used to determine whether to process the protocol type message to enable packet statistics; to collect the protocol type message to be processed; to receive the query command for querying the protocol type message; and return the query result. Therefore, the statistics of the protocol packets of the OpenFlow protocol can be performed under the OpenFlow protocol.
  • the setting of the message to be processed by the protocol type in the step S102 is determined by the OF-Config protocol, including:
  • Step 1 the OF-Config protocol is used to determine whether to enable all ports to perform packet statistics for the protocol type packets to be processed.
  • the capability device may be an instance of the logical switch specified by the OpenFlow. Therefore, the specified OpenFlow logical switch may be configured to enable statistics of a certain protocol type packet of all ports; wherein the capability device is set by using the OF-Config protocol. Protocol message statistics need to be extended to define the data model defined by the OF-Config standard protocol; in the YANG model of OF-Config, the extension part is an optional node.
  • the step of collecting the protocol type message in the step S104 includes:
  • Step 1 Determine whether the identified packet is the same as the packet type of the protocol to be processed
  • Step 2 in the case where the judgment result is yes, the message is counted.
  • the capability device based on the capability device in the foregoing step S102, identifies whether the processed packet is a protocol type packet with the packet statistics enabled, and if yes, performs statistical processing on the related packet.
  • whether the packet identified in Step 1 is the same as the packet type of the protocol type to be processed includes:
  • step A it is determined whether the Ethernet type of the packet is the same as the packet type of the protocol to be processed.
  • the capability device identifies whether the packet is a protocol type packet with the packet statistics enabled, and can be distinguished by identifying the Ethernet type of the packet.
  • the statistics in Step 2 include:
  • Step A The statistics are collected in a preset manner, where the preset manner includes: counting the number of OpenFlow packet-in/packet-out packets, and counting statistics on the number of bytes; or, counting OpenFlow packet-in/packet -out the number of packets; or, count the number of bytes.
  • “/" means that the number of OpenFlow packet-in and packet-out packets can be counted, and the number of any one of OpenFlow packet-in and packet-out packets can be counted.
  • the packet statistics processing manner includes, but is not limited to, counting and counting the number of OpenFlow packet-in/packet-out packets and the number of bytes.
  • the resource protocol type packet statistics of the capability device are not defined by the OpenFlow protocol. Statistical conflicts, both can coexist.
  • the query instruction for receiving the query protocol type message in step S106 includes:
  • Step1 Receive the query instruction encapsulated by the OF-Config protocol.
  • the capability device performs resource query data to initiate a query request according to the OF-Config protocol.
  • the query instruction for receiving the query protocol type message in step S106 includes:
  • Step 1 ' receiving a query instruction indicating querying target resource statistics.
  • the capability device queries specific resource statistics according to the OpenFlow switch instance.
  • the query result returned in step S108 includes at least one of the following:
  • Step 1 returning the corresponding query result according to the query instruction encapsulated by the OF-Config protocol;
  • Step1' returns a corresponding query result according to the query instruction for querying the target resource statistics.
  • the SDN configuration point enables the function of collecting statistics on the packets of a specified protocol type on all the ports of the designated logical switch on the device, and the designated logical switch has managed the specified port.
  • the SDN configuration point queries the logical switch through the OF-Config protocol. Specifies the statistics of the packets of this type on the port.
  • the statistics of the ARP type protocol packets of the logical switch test are enabled, and the statistics of the packets of the designated port in the logical switch test are queried.
  • FIG. 3 is a flowchart of the first example of the software-defined network-based statistical method according to the embodiment of the present invention. Figure, as shown in Figure 3, the process includes the following steps:
  • Step S1 The SDN configuration point sends, by using the OF-Config protocol, the port that enables the logical switch test to the capability device to perform statistics on the ARP type protocol packet.
  • the content of the OF-Config message delivered by the SDN configuration point is expressed in the form of a NETCONF message as follows:
  • step S2 the capability device receives an instruction to enable ARP protocol packet statistics at the configuration point, saves the command, and performs statistics and statistics counting storage on the processed packet.
  • the capability device receives the statistics command of the port that initiates the logical switch test to the ARP protocol packet, and only collects the protocol packet statistics on the port of the logical switch test, and only counts the ARP protocol type packet.
  • the capability device receives the statistics command of the ARP protocol packet sent by the port of the logical switch test, and performs ARP protocol packet statistics on all the OpenFlow ports managed by the logical switch test.
  • the capability device does not perform any protocol type packet statistics on other logical switches
  • the capability device does not perform non-ARP protocol type packet statistics on the port of the logical switch test.
  • step S3 the SDN configuration point sends a request to the capability device to query the ARP packet statistics of the designated port in the logical switch test.
  • the SDN configuration point sends the ARP packet statistics of the port fei_0/1/0/1 (port number 1) of the logical switch test.
  • the NETCONF packet format is used as an example.
  • Step S4 the capability device organizes the OF-Config message of the statistical data according to the query request of the SDN configuration point, and gives a response;
  • the OF-Config packet takes the form of a NETCONF packet as follows:
  • the SDN configuration point enables the port of the specified logical switch on the device to collect statistics on the packets of the two specified protocol types.
  • the logical switch has already managed multiple interfaces.
  • the SDN configuration point queries the statistics of the two types of protocol packets on all ports of the logical switch through the OF-Config protocol.
  • the statistics of the ARP and BGP packets of the logical switch test are enabled, and the statistics of the statistics of all the ports of the logical switch test are queried.
  • FIG. 4 is an example 2 of the statistical method based on the software-defined network according to the embodiment of the present invention.
  • the flow chart, as shown in Figure 4 includes the following steps:
  • step S1 the SDN configuration point sends the statistics of the ARP and BGP type protocol packets to the capability device by using the OF-Config protocol.
  • the content of the OF-Config message delivered by the SDN configuration point is expressed in the form of a NETCONF message as follows:
  • Step S2 The capability device receives an instruction to enable ARP and BGP protocol packet statistics at the configuration point, saves the command, and performs statistics and statistics counting storage on the processed packet.
  • the capability device receives the statistics command of the ARP and BGP protocol packets sent by the port of the logical switch, and only collects the protocol packet statistics on the port of the logical switch test, and only counts the ARP and BGP protocol packets.
  • the capability device receives the statistics command of the ARP and BGP protocol packets sent by the port of the logical switch test, and performs ARP and BGP protocol statistics on all the OpenFlow ports managed by the logical switch test.
  • the capability device does not perform any protocol type packet statistics on other logical switches
  • the capability device does not perform non-ARP and non-BGP protocol type packet statistics on the port of the logical switch test.
  • step S3 the SDN configuration point requests to query the ARP packet statistics information of all ports in the logical switch test through the OF-Config protocol.
  • the logical switch test manages fei_0/1/0/1 (port number is 1) and fei_0/1/0/2. (Port number is 2) and gei_0/1/0/1 (port number is 3).
  • the ARP statistics packet sent by the SDN configuration point is as follows:
  • step S4 the capability device encapsulates the packet statistics information of the three ports according to the query request of the SDN configuration point as follows:
  • step S5 the SDN configuration point requests to query the BGP packet statistics information of all ports in the logical switch test through the OF-Config protocol;
  • the logical switch test manages fei_0/1/0/1 (port number is 1), fei_0/1/0/2 (port number 2), and gei_0/1/0/1 (port number is 3).
  • the BGP protocol statistics packets sent by the SDN configuration point are as follows:
  • Step S6 the capability device reports the total of three ports according to the query request of the SDN configuration point.
  • the text statistics information package response is as follows:
  • FIG. 5 is a flowchart of the third method in the software-defined network-based statistical method according to the embodiment of the present invention.
  • the process includes the following steps:
  • step S1 the SDN configuration point requests to query the ARP packet statistics of the designated port in the logical switch test through the OF-Config protocol.
  • the SDN configuration point queries the statistics of the ARP protocol packet of the port fei_0/1/0/1 (port number 1) of the logical switch test, and the request packet is as follows:
  • step S2 the capability device organizes the OF-Config protocol packet according to the query request of the SDN configuration point and gives a response;
  • the capability device since the statistics of any protocol packets are not enabled, the capability device does not have corresponding statistics, and the capability device responds with invalid statistics.
  • the content of the response packet can be expressed as follows:
  • the SDN configuration point enables the device to specify the logical switch port to the packet statistics function of a specified protocol type, and the designated logical switch does not manage any port.
  • the SDN configuration point queries the statistics of the protocol packets of all ports on the logical switch through the OF-Config protocol.
  • the statistics of the ARP type protocol packets of the logical switch test are started, and the statistics of the statistics of all the ports in the logical switch test are queried.
  • FIG. 6 is a flowchart of the fourth method in the statistical method based on the software-defined network according to the embodiment of the present invention. Figure, as shown in Figure 6, the process includes the following steps:
  • Step S1 The SDN configuration point sends, by using the OF-Config protocol, the setting of the logical switch test to perform statistics on the ARP type protocol packet to the capability device.
  • the content of the OF-Config message delivered by the SDN configuration point is expressed in the form of a NETCONF message as follows:
  • step S2 the capability device receives the command to enable the ARP protocol packet statistics at the configuration point, and saves the command, but no port needs to perform ARP statistics on the protocol packet.
  • Step S3 the SDN configuration point requests to query the ARP packet statistics information of all ports in the logical switch test;
  • the SDN configuration point sends the ARP protocol packet statistics of all the ports of the logical switch test.
  • the packet is as follows:
  • Step S4 the capability device organizes the OF-Config protocol according to the query request of the SDN configuration point. Send a message and give a response;
  • the capability device since there is no port to collect statistics on ARP packets, the capability device does not have corresponding statistics.
  • the content of the response packet can be expressed as follows:
  • FIG. 7 is a schematic structural diagram of a statistical device based on a software-defined network according to an embodiment of the present invention. As shown in FIG. 7, the device includes: a configuration module 72. a statistics module 74, a receiving module 76, and a sending module 78, wherein
  • the configuration module 72 is configured to determine, by using the OF-Config protocol, whether to perform packet statistics on the protocol type packet to be processed;
  • the statistics module 74 is configured to collect a protocol type message to be processed
  • the receiving module 76 is configured to receive a query instruction for querying a protocol type message to be processed
  • the sending module 78 is configured to return a query result.
  • the OF-Config protocol is used to set whether to process the protocol type packet to enable packet statistics; to collect the protocol type message to be processed; and to receive the query for the protocol type message.
  • the configuration module 72 includes: a configuration unit, configured to determine, by using the OF-Config protocol, whether to enable all ports to perform packet statistics on the to-be-processed protocol type packet.
  • the statistic module 74 includes: a judging unit configured to determine whether the identified packet is the same as the type of the protocol type to be processed; and the statistic unit is configured to count the packet if the judgment result is yes.
  • the determining unit includes: a determining subunit, configured to determine whether the Ethernet type of the packet is the same as the type of the protocol type to be processed.
  • the statistic unit includes: a statistic subunit, configured to collect statistics by using a preset manner, where the preset manner includes: counting the number of OpenFlow packet-in/packet-out packets, and counting the number of bytes. Statistics; or, count the number of OpenFlow packet-in/packet-out packets; or count the number of bytes.
  • “/" means that the number of OpenFlow packet-in and packet-out packets can be counted, and the number of any one of OpenFlow packet-in and packet-out packets can be counted.
  • the receiving module 76 includes: a first receiving unit configured to receive a query instruction encapsulated by the OF-Config protocol; and a second receiving unit configured to receive a query instruction indicating the query target resource statistics.
  • the sending module 78 includes: a first sending unit, configured to return a corresponding query result according to the query instruction encapsulated by the OF-Config protocol; and the second sending unit is configured to return a corresponding query according to the query instruction of the query target resource statistical data. search result.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a statistical system based on a software-defined network including:
  • Software-defined network SDN configuration point and capability switching device software-defined network SDN configuration point and capability switching device communication connection, wherein software-defined network SDN configuration point is set to send OF-Config protocol, and capability switching device is based on OF-Config protocol
  • a query instruction for collecting the protocol type message is generated, and the query result returned by the capability switching device according to the query instruction is received;
  • the capability switching device is connected to the software-defined network SDN configuration point, and is set to be set by the OF-Config protocol to determine whether to process the protocol type packet to enable packet statistics; to calculate the protocol type packet to be processed; and to receive the software-defined network SDN configuration.
  • the query command sent by the point querying the protocol type message is sent; the query result is returned to the software defined network SDN configuration point.
  • the capability switching device is a software-defined network-based statistical device as shown in FIG. 7 above.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the storage medium is further arranged to store program code for performing the following steps:
  • S1 is set by the OF-Config protocol to determine whether to enable all ports to perform packet statistics for the protocol type packets to be processed.
  • the foregoing storage medium may include: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or a magnetic disk.
  • ROM read-only memory
  • RAM random access memory
  • mobile hard disk a magnetic disk
  • magnetic disk a magnetic disk
  • magnetic disk a magnetic disk.
  • the processor executes according to the stored program code in the storage medium. It is determined whether the identified packet is the same as the packet type of the protocol to be processed; if the judgment result is yes, the packet is counted.
  • the processor performs, according to the stored program code in the storage medium, whether the Ethernet type of the judgment message is the same as the type of the protocol type to be processed.
  • the processor performs, according to the stored program code in the storage medium, the statistics of the packet in the preset manner, where the preset manner includes: counting the number of OpenFlow packet-in/packet-out packets. And counting the number of bytes; or counting the number of OpenFlow packet-in/packet-out packets; or counting the number of bytes.
  • “/" means that the number of OpenFlow packet-in and packet-out packets can be counted, and the number of any one of OpenFlow packet-in and packet-out packets can be counted.
  • the processor executes a query instruction that receives the OF-Config protocol encapsulation according to the stored program code in the storage medium; and receives a query instruction that indicates the query target resource statistics.
  • the processor performs a query instruction encapsulated according to the OF-Config protocol to return a corresponding query result according to the stored program code in the storage medium; and returns a corresponding query according to the query instruction of the query target resource statistical data. result.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed either separately for each integrated circuit module or by making a plurality of modules or steps of them into a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the foregoing technical solution can implement the statistics of the protocol packets of the OpenFlow protocol and the management and operation and maintenance improvement of the SDN configuration point capability device under the OpenFlow protocol.

Landscapes

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

Abstract

一种基于软件定义网络的统计方法、装置及系统,通过OF-Config协议设置,判断是否对待处理协议类型报文开启报文统计(S102);统计待处理协议类型报文(S104);接收查询待处理协议类型报文的查询指令(S106);返回查询结果(S108)。

Description

一种基于软件定义网络的统计方法、装置及系统 技术领域
本文涉及通信技术领域,具体而言,涉及一种基于软件定义网络的统计方法、装置及系统。
背景技术
软件定义网络(Software Defined Network,简称为SDN)是一种新型的网络架构,它的设计理念是将网络的控制平面与数据转发平面进行分离,并实现可编程化控制。通常将SDN网络架构抽象定义成三层:第一层是转发面实体,包括实现这种转发功能的多种软硬件组件;第二层是针对第一层转发实体进行管理和控制的实体,第三层是基于前两层基础网络的应用和服务。前两层之间的接口称之为SDN的南向接口,目前OpenFlow协议是南向接口的主流协议,它以流表为基础,控制细颗粒度的转发表及其行为,具有很强的表达能力,适应能力强。
OpenFlow协议是一种交换技术,该技术最早由斯坦福大学提出,旨在基于传输控制协议(Transfer Control Protocol,简称为TCP)/互联网协议(Internet Protocol,简称为IP)技术条件,以创新的网络互联理念解决当前网络的种种弊病,OpenFlow协议的核心思想是将由交换机/路由器控制的数据包转发过程,演化为由OpenFlow转发面设备(例如OF Switch,也包括其他支持OpenFlow/OF-Config协议和流表机制的转发面设备,例如访问接入点(Access Point,简称为AP)、路由器)和控制服务器(例如OF Controller)分别完成的独立过程,进而实现数据转发和路由控制的分离。在传统网络中数据包的流向是人为指定的,虽然交换机、路由器拥有控制权,却没有数据流的概念,所以只能进行数据包级别的交换。然而在OpenFlow网络中,控制服务器将取代路由器,由控制服务器(OF Controller)通过预先规定好的接口操作来决策所有数据包在网络中的传输路径,从而达到控制数据转发的目的。
OpenFlow协议运行在安全传输层协议(Transport Layer Security Protocol,简称为TLS)和无保护TCP连接之上,如果OpenFlow转发面设备在转发数据包时,遇到未指定转发路径的数据包,则由该设备发送查询消息至与其建链的OpenFlow控制器,由该控制器决策该数据包的转发路径。
OpenFlow协议V1.3版本开始分离出OF-Config协议,将对SDN转发面设备配置管理方面的功能剥离出来,形成单独的通道,SDN配置点通过OF-Config协议对能力交换机进行配置管理,如图2所示的SDN网络架构。OF-Config协议可以运行在TCP、安全套接层(Secure Socket Layer,简称为SSL)协议、用户数据协议(User Date Protocol,简称为UDP)或数据报文安全传输层(Datagram Transport Layer Security,简称为DTLS)协议等协议上。
尽管在OpenFlow协议中定义了转发设备每种资源的统计接口,如基于流表的统计、基于端口的统计等,但是这些统计只适用于数据报文,对于OpenFlow协议的协议报文无法很好地支持;同时OpenFlow协议制定的统计无法满足SDN配置点对能力设备进行运维和监控的需要。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提供了一种基于软件定义网络的统计方法、装置及系统,能够实现在OpenFlow协议下,对OpenFlow协议的协议报文进行统计。
根据本发明的一个实施例,提供了一种基于软件定义网络的统计方法,包括:通过OF-Config协议设置,判断是否对待处理协议类型报文开启报文统计;统计待处理协议类型报文;接收查询待处理协议类型报文的查询指令;返回查询结果。
可选的,通过OF-Config协议设置,判断是否对待处理协议类型报文开启报文统计包括:通过OF-Config协议设置,判断是否开启全部端口执行对待处理协议类型报文的报文统计。
可选的,统计待处理协议类型报文包括:判断识别的报文是否与待处理协议类型报文类型相同;在判断结果为是的情况下,统计报文。
可选的,判断识别的报文是否与待处理协议类型报文类型相同包括:判断报文的以太类型是否与待处理协议类型报文类型相同。
可选的,统计报文包括:通过预设方式统计报文,其中,预设方式包括:统计OpenFlow packet-in/packet-out报文数量,以及,对字节数量进行计数统计;或者,统计OpenFlow packet-in/packet-out报文数量;或者,对字节数量进行计数统计。
可选的,接收查询待处理协议类型报文的查询指令包括以下之一:接收OF-Config协议封装的查询指令;接收指示查询目标资源统计数据的查询指令。
可选的,返回查询结果包括以下至少之一:依据OF-Config协议封装的查询指令返回对应的查询结果;依据查询目标资源统计数据的查询指令返回对应的查询结果。
根据本发明的另一个实施例,提供了一种基于软件定义网络的统计装置,包括:配置模块,设置为通过OF-Config协议设置,判断是否对待处理协议类型报文开启报文统计;统计模块,设置为统计待处理协议类型报文;接收模块,设置为接收查询待处理协议类型报文的查询指令;发送模块,设置为返回查询结果。
可选的,配置模块包括:配置单元,设置为通过所述OF-Config协议设置,判断是否开启全部端口执行对所述待处理协议类型报文的报文统计。
可选的,统计模块包括:判断单元,设置为判断识别的报文是否与待处理协议类型报文类型相同;统计单元,设置为在判断结果为是的情况下,统计报文。
可选的,判断单元包括:判断子单元,设置为判断报文的以太类型是否与待处理协议类型报文类型相同。
可选的,统计单元包括:统计子单元,设置为通过预设方式统计报文,其中,预设方式包括:统计OpenFlow packet-in/packet-out报文数量,以及, 对字节数量进行计数统计;或者,统计OpenFlow packet-in/packet-out报文数量;或者,对字节数量进行计数统计。
可选的,接收模块包括:第一接收单元,设置为接收OF-Config协议封装的查询指令;第二接收单元,设置为接收指示查询目标资源统计数据的查询指令。
可选的,发送模块包括:第一发送单元,设置为依据OF-Config协议封装的查询指令返回对应的查询结果;第二发送单元,设置为依据查询目标资源统计数据的查询指令返回对应的查询结果。
根据本发明的又一个实施例,还提供了一种基于软件定义网络的统计系统,包括:软件定义网络SDN配置点和能力交换设备,软件定义网络SDN配置点和能力交换设备通信连接,其中,软件定义网络SDN配置点,设置为发送OF-Config协议,在能力交换设备依据OF-Config协议开启报文统计之后,生成对待处理协议类型报文进行统计的查询指令,并接收能力交换设备依据查询指令返回的查询结果;能力交换设备,与软件定义网络SDN配置点通信连接,设置为通过OF-Config协议设置,判断是否对待处理协议类型报文开启报文统计;统计待处理协议类型报文;接收软件定义网络SDN配置点发送的查询待处理协议类型报文的查询指令;向软件定义网络SDN配置点返回查询结果。其中,能力交换设备为上述一种基于软件定义网络的统计装置。
根据本发明的再一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:通过OF-Config协议设置,判断是否对待处理协议类型报文开启报文统计;统计待处理协议类型报文;接收查询待处理协议类型报文的查询指令;返回查询结果。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:通过OF-Config协议设置,判断是否对待处理协议类型报文开启报文统计:通过OF-Config协议设置,判断是否开启全部端口执行对待处理协议类型报文的报文统计。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:统计待处理协议类型报文包括:判断识别的报文是否与待处理协议类型报文类型相 同;在判断结果为是的情况下,统计报文。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:统计待处理协议类型报文包括:判断识别的报文是否与待处理协议类型报文类型相同;在判断结果为是的情况下,统计报文。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:通过预设方式统计报文,其中,预设方式包括:统计OpenFlow packet-in/packet-out报文数量,以及,对字节数量进行计数统计;或者,统计OpenFlow packet-in/packet-out报文数量;或者,对字节数量进行计数统计。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:接收查询待处理协议类型报文的查询指令包括:接收OF-Config协议封装的查询指令;接收查询待处理协议类型报文的查询指令包括:接收指示查询目标资源统计数据的查询指令。
可选的,存储介质还设置为存储用于执行以下步骤的程序代码:返回查询结果包括以下至少之一:依据OF-Config协议封装的查询指令返回对应的查询结果;依据查询目标资源统计数据的查询指令返回对应的查询结果。
本发明实施例中,由于通过OF-Config协议设置,判断是否对待处理协议类型报文开启报文统计;统计待处理协议类型报文;接收查询待处理协议类型报文的查询指令;返回查询结果。因此,可以实现在OpenFlow协议下,对OpenFlow协议的协议报文进行统计,达到实现对OpenFlow协议的协议报文进行统计以及SDN配置点对能力设备的管理和运维的改善效果。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1是根据本发明实施例的基于软件定义网络的统计方法的流程图;
图2是SDN网络组件架构图;
图3是根据本发明实施例的基于软件定义网络的统计方法中示例一的流程图;
图4是根据本发明实施例的基于软件定义网络的统计方法中示例二的流 程图;
图5是根据本发明实施例的基于软件定义网络的统计方法中示例三的流程图;
图6是根据本发明实施例的基于软件定义网络的统计方法中示例四的流程图;
图7是根据本发明实施例的基于软件定义网络的统计装置的结构示意图。
本发明的实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
本申请实施例涉及的技术名词:
软件定义网络:Software Defined Network,简称为SDN;
数据报文安全传输层:Datagram Transport Layer Security,简称为DTLS;
用户数据协议:User Date Protocol,简称为UDP;
安全套接层协议:Secure Socket Layer,简称为SSL。
实施例1
在本实施例中提供了一种基于软件定义网络的统计方法,图1是根据本发明实施例的基于软件定义网络的统计方法的流程图,如图1所示,该流程包括如下步骤:
步骤S102,通过OpenFlow管理配置协议(OpenFlow Management and Configuration Protocol,OF-Config)的协议设置,判断是否对待处理协议类型报文开启报文统计;
步骤S104,统计待处理协议类型报文;
步骤S106,接收查询待处理协议类型报文的查询指令;
步骤S108,返回查询结果。
步骤S102至步骤S108的执行主体可以是能力设备。结合步骤S102至步骤S108,本申请实施例提供的基于软件定义网络的统计方法为满足对OpenFlow协议报文的统计以及SDN配置点的运维和监控需求,通过OF-Config协议对资源统计粒度进行管理设置,能力设备根据相关设置进行报文统计和记录,SDN配置点可以通过OF-Config协议对资源统计数据进行查询和管理。
在本申请实施例中该能力设备可以是OpenFlow指定的逻辑交换机。
通过上述步骤,通过OF-Config协议设置判断是否对待处理协议类型报文开启报文统计;统计待处理协议类型报文;接收查询待处理协议类型报文的查询指令;返回查询结果。因此,可以实现在OpenFlow协议下,对OpenFlow协议的协议报文进行统计的效果。
可选的,步骤S102中通过OF-Config协议设置,判断是否对待处理协议类型报文开启报文统计包括:
Step1,通过OF-Config协议设置,判断是否开启全部端口执行对待处理协议类型报文的报文统计。
可选的,能力设备可以是OpenFlow指定的逻辑交换机实例,因此,可以对指定OpenFlow逻辑交换机进行设置是否开启所有端口的某种协议类型报文统计;其中,通过OF-Config协议对能力设备进行设置协议报文统计,需要扩展定义OF-Config标准协议定义的数据模型;OF-Config的YANG模型中,扩展部分为可选节点。
可选的,步骤S104中统计待处理协议类型报文包括:
Step1,判断识别的报文是否与待处理协议类型报文类型相同;
Step2,在判断结果为是的情况下,统计报文。
可选的,基于上述步骤S102中的能力设备,该能力设备识别处理的报文是否为开启了报文统计的协议类型报文,如果是,则对相关报文进行统计处理。
可选的,Step1中判断识别的报文是否与待处理协议类型报文类型相同包括:
步骤A,判断报文的以太类型是否与待处理协议类型报文类型相同。
可选的,能力设备识别报文是否为开启了报文统计的协议类型报文,可以通过识别报文的以太类型来区分。
可选的,Step2中统计报文包括:
步骤A,通过预设方式统计报文,其中,预设方式包括:统计OpenFlow packet-in/packet-out报文数量,以及,对字节数量进行计数统计;或者,统计OpenFlow packet-in/packet-out报文数量;或者,对字节数量进行计数统计。这里,“/”表示即可以统计OpenFlow packet-in和packet-out报文数量,也可以统计OpenFlow packet-in和packet-out报文中任一种报文的数量。
可选的,报文统计处理方式包括但不限于对OpenFlow packet-in/packet-out报文数量、字节数量进行计数统计;其中,能力设备的资源协议类型报文统计不与OpenFlow协议定义的统计冲突,二者可以并存。
可选的,步骤S106中接收查询待处理协议类型报文的查询指令包括:
Step1,接收OF-Config协议封装的查询指令。
可选地,能力设备依据OF-Config协议执行资源统计数据发起查询请求。
可选的,步骤S106中接收查询待处理协议类型报文的查询指令包括:
Step1’,接收指示查询目标资源统计数据的查询指令。
可选地,能力设备依据OpenFlow交换机实例查询具体的资源统计数据。
可选的,步骤S108中返回查询结果包括以下至少之一:
Step1,依据OF-Config协议封装的查询指令返回对应的查询结果;
Step1’,依据查询目标资源统计数据的查询指令返回对应的查询结果。
综上,下面分别介绍本发明在不同使用场景下的五个实施例。在此,先给出本发明实施例对OF-Config协议的一种扩展方式,其中,list packets-port-statistics为本发明实施例给出的扩展定义:
Figure PCTCN2017087473-appb-000001
Figure PCTCN2017087473-appb-000002
Figure PCTCN2017087473-appb-000003
具体示例如下:
示例一
SDN配置点开启能力设备上指定逻辑交换机的所有端口对某种指定协议类型的报文统计功能,并且,指定逻辑交换机已经管理了指定的端口,SDN配置点通过OF-Config协议查询该逻辑交换机某指定端口对该类型协议报文的统计数据。以开启逻辑交换机test的ARP类型协议报文统计,并查询逻辑交换机test下指定端口的报文统计情况为例,图3是根据本发明实施例的基于软件定义网络的统计方法中示例一的流程图,如图3所示,该流程包括以下步骤:
步骤S1,SDN配置点通过OF-Config协议向能力设备上发送开启逻辑交换机test的端口对ARP类型协议报文进行统计的设置;
可选地,SDN配置点下发的OF-Config报文内容,用NETCONF报文形式表达如下:
Figure PCTCN2017087473-appb-000004
Figure PCTCN2017087473-appb-000005
步骤S2,能力设备收到配置点的开启ARP协议报文统计的指令,保存该指令,并对处理的报文进行统计和统计计数存储;
可选地,能力设备收到开启逻辑交换机test的端口对ARP协议报文的统计指令,仅对逻辑交换机test的端口进行协议报文统计,且仅统计ARP协议类型报文;
可选地,能力设备收到开启逻辑交换机test的端口对ARP协议报文的统计指令,对逻辑交换机test管理的所有OpenFlow端口都进行ARP协议报文统计;
可选地,能力设备不会对其他逻辑交换机进行任何协议类型的报文统计;
可选地,能力设备不会对逻辑交换机test的端口进行非ARP的协议类型报文统计;
步骤S3,SDN配置点向能力设备下发请求查询逻辑交换机test下指定端口的ARP报文统计信息;
可选地,SDN配置点下发查询逻辑交换机test的端口fei_0/1/0/1(端口号为1)的ARP协议报文统计数据,以NETCONF报文形式为例,如下:
Figure PCTCN2017087473-appb-000006
Figure PCTCN2017087473-appb-000007
步骤S4,能力设备根据SDN配置点的查询请求,组织统计数据的OF-Config报文,并给予回应;
可选地,OF-Config报文以NETCONF报文形式为例,如下:
Figure PCTCN2017087473-appb-000008
Figure PCTCN2017087473-appb-000009
示例二
SDN配置点开启能力设备上指定逻辑交换机的端口对某两种指定协议类型的报文统计功能,并且,逻辑交换机已经管理了多个接口。SDN配置点通过OF-Config协议查询该逻辑交换机所有端口对两种类型协议报文的统计数据。以开启逻辑交换机test的ARP和BGP协议报文统计,并查询逻辑交换机test下所有端口的报文统计情况为例,图4是根据本发明实施例的基于软件定义网络的统计方法中示例二的流程图,如图4所示,该流程包括以下步骤:
步骤S1,SDN配置点通过OF-Config协议向能力设备上发送开启逻辑交换机test对ARP和BGP类型协议报文进行统计的设置;
可选地,SDN配置点下发的OF-Config报文内容,用NETCONF报文形式表达如下:
Figure PCTCN2017087473-appb-000010
Figure PCTCN2017087473-appb-000011
步骤S2,能力设备收到配置点的开启ARP和BGP协议报文统计的指令,保存该指令,并对处理的报文进行统计和统计计数存储;
可选地,能力设备收到开启逻辑交换机test的端口对ARP和BGP协议报文的统计指令,只会对逻辑交换机test的端口进行协议报文统计,且仅统计ARP和BGP协议类型报文;
可选地,能力设备收到开启逻辑交换机test的端口对ARP和BGP协议报文的统计指令,对逻辑交换机test管理的所有OpenFlow端口都进行ARP和BGP协议报文统计;
可选地,能力设备不会对其他逻辑交换机进行任何协议类型的报文统计;
可选地,能力设备不会对逻辑交换机test的端口进行非ARP和非BGP的协议类型报文统计;
步骤S3,SDN配置点通过OF-Config协议请求查询逻辑交换机test下所有端口的ARP报文统计信息;
可选地,逻辑交换机test共管理了fei_0/1/0/1(端口号为1)、fei_0/1/0/2 (端口号为2)和gei_0/1/0/1(端口号为3)三个接口,SDN配置点下发的查询ARP协议统计报文如下:
Figure PCTCN2017087473-appb-000012
步骤S4,能力设备根据SDN配置点的查询请求,对总共三个端口的报文统计信息封装应答如下:
Figure PCTCN2017087473-appb-000013
Figure PCTCN2017087473-appb-000014
Figure PCTCN2017087473-appb-000015
步骤S5,SDN配置点通过OF-Config协议请求查询逻辑交换机test下所有端口的BGP报文统计信息;
可选地,逻辑交换机test共管理了fei_0/1/0/1(端口号为1)、fei_0/1/0/2(端口号为2)和gei_0/1/0/1(端口号为3)三个接口,SDN配置点下发的查询BGP协议统计报文如下:
Figure PCTCN2017087473-appb-000016
步骤S6,能力设备根据SDN配置点的查询请求,对总共三个端口的报 文统计信息封装应答如下:
Figure PCTCN2017087473-appb-000017
Figure PCTCN2017087473-appb-000018
示例三
能力设备上未开启任何协议报文的统计功能,并且能力设备管理了多个端口。SDN配置点通过OF-Config协议查询该逻辑交换机某指定端口对该类型协议报文的统计数据,且该端口在逻辑交换机的管理范围内。以开启逻辑交换机test的ARP类型协议报文统计,并查询逻辑交换机test下指定端口的报文统计情况为例,图5是根据本发明实施例的基于软件定义网络的统计方法中示例三的流程图,如图5所示,该流程包括以下步骤:
步骤S1,SDN配置点通过OF-Config协议请求查询逻辑交换机test下指定端口的ARP报文统计信息;
可选地,SDN配置点查询逻辑交换机test的端口fei_0/1/0/1(端口号为1)的ARP协议报文统计数据,请求报文如下:
Figure PCTCN2017087473-appb-000019
步骤S2,能力设备根据SDN配置点的查询请求,组织OF-Config协议报文并给予回应;
可选地,由于没有开启任何协议报文的统计,故能力设备没有相应的统计数据,能力设备将无效的统计数据应答,应答报文的内容可表述如下:
Figure PCTCN2017087473-appb-000020
示例四
SDN配置点开启能力设备上指定逻辑交换机端口对某种指定协议类型的报文统计功能,并且,指定逻辑交换机并没有管理任何端口。SDN配置点通过OF-Config协议查询该逻辑交换机下所有端口对该类型协议报文的统计数据。以开启逻辑交换机test的ARP类型协议报文统计,并查询逻辑交换机test下所有端口的报文统计情况为例,图6是根据本发明实施例的基于软件定义网络的统计方法中示例四的流程图,如图6所示,该流程包括以下步骤:
步骤S1,SDN配置点通过OF-Config协议向能力设备上发送开启逻辑交换机test对ARP类型协议报文进行统计的设置;
可选地,SDN配置点下发的OF-Config报文内容,用NETCONF报文形式表达如下:
Figure PCTCN2017087473-appb-000021
Figure PCTCN2017087473-appb-000022
步骤S2,能力设备收到配置点的开启ARP协议报文统计的指令,保存该指令,但没有端口需要进行协议报文的ARP统计;
步骤S3,SDN配置点请求查询逻辑交换机test下所有端口的ARP报文统计信息;
可选地,SDN配置点下发查询逻辑交换机test的所有端口的ARP协议报文统计数据,报文如下:
Figure PCTCN2017087473-appb-000023
步骤S4,能力设备根据SDN配置点的查询请求,组织OF-Config协议 报文并给予回应;
可选地,由于没有端口进行ARP协议报文的统计,故能力设备没有相应的统计数据,应答报文的内容可表述如下:
Figure PCTCN2017087473-appb-000024
实施例2
在本实施例中提供了一种基于软件定义网络的统计装置,图7是根据本发明实施例的基于软件定义网络的统计装置的结构示意图,如图7所示,该装置包括:配置模块72、统计模块74、接收模块76和发送模块78,其中,
配置模块72,设置为通过OF-Config协议设置,判断是否对待处理协议类型报文开启报文统计;
统计模块74,设置为统计待处理协议类型报文;
接收模块76,设置为接收查询待处理协议类型报文的查询指令;
发送模块78,设置为返回查询结果。
本申请实施例提供的基于软件定义网络的统计装置中,通过OF-Config协议设置是否对待处理协议类型报文开启报文统计;统计待处理协议类型报文;接收查询待处理协议类型报文的查询指令;返回查询结果。因此,可以达到实现对OpenFlow协议的协议报文进行统计以及SDN配置点对能力设备的管理和运维的改善的效果。
可选的,配置模块72包括:配置单元,设置为通过所述OF-Config协议设置,判断是否开启全部端口执行对所述待处理协议类型报文的报文统计。
可选的,统计模块74包括:判断单元,设置为判断识别的报文是否与待处理协议类型报文类型相同;统计单元,设置为在判断结果为是的情况下,统计报文。
可选的,判断单元包括:判断子单元,设置为判断报文的以太类型是否与待处理协议类型报文类型相同。
可选的,统计单元包括:统计子单元,设置为通过预设方式统计报文,其中,预设方式包括:统计OpenFlow packet-in/packet-out报文数量,以及,对字节数量进行计数统计;或者,统计OpenFlow packet-in/packet-out报文数量;或者,对字节数量进行计数统计。这里,“/”表示即可以统计OpenFlow packet-in和packet-out报文数量,也可以统计OpenFlow packet-in和packet-out报文中任一种报文的数量。
可选的,接收模块76包括:第一接收单元,设置为接收OF-Config协议封装的查询指令;第二接收单元,设置为接收指示查询目标资源统计数据的查询指令。
可选的,发送模块78包括:第一发送单元,设置为依据OF-Config协议封装的查询指令返回对应的查询结果;第二发送单元,设置为依据查询目标资源统计数据的查询指令返回对应的查询结果。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
实施例3
在本实施例中提供了一种基于软件定义网络的统计系统,包括:
软件定义网络SDN配置点和能力交换设备,软件定义网络SDN配置点和能力交换设备通信连接,其中,软件定义网络SDN配置点,设置为发送OF-Config协议,在能力交换设备依据OF-Config协议开启报文统计之后,生成对待处理协议类型报文进行统计的查询指令,并接收能力交换设备依据查询指令返回的查询结果;
能力交换设备,与软件定义网络SDN配置点通信连接,设置为通过OF-Config协议设置,判断是否对待处理协议类型报文开启报文统计;统计待处理协议类型报文;接收软件定义网络SDN配置点发送的查询待处理协议类型报文的查询指令;向软件定义网络SDN配置点返回查询结果。
其中,能力交换设备为上述图7所示的一种基于软件定义网络的统计装置。
实施例4
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S1,通过OF-Config协议设置,判断是否对待处理协议类型报文开启报文统计;
S2,统计待处理协议类型报文;
S3,接收查询待处理协议类型报文的查询指令;
S4,返回查询结果。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:
S1,通过OF-Config协议设置,判断是否开启全部端口执行对待处理协议类型报文的报文统计。
可选地,在本实施例中,上述存储介质可以包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等多种可以存储程序代码的介质。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行 判断识别的报文是否与待处理协议类型报文类型相同;在判断结果为是的情况下,统计报文。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行判断报文的以太类型是否与待处理协议类型报文类型相同。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行通过预设方式统计报文,其中,预设方式包括:统计OpenFlow packet-in/packet-out报文数量,以及,对字节数量进行计数统计;或者,统计OpenFlow packet-in/packet-out报文数量;或者,对字节数量进行计数统计。这里,“/”表示即可以统计OpenFlow packet-in和packet-out报文数量,也可以统计OpenFlow packet-in和packet-out报文中任一种报文的数量。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行接收OF-Config协议封装的查询指令;接收指示查询目标资源统计数据的查询指令。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行依据OF-Config协议封装的查询指令返回对应的查询结果;依据查询目标资源统计数据的查询指令返回对应的查询结果。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成每个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的可选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
上述技术方案可以实现在OpenFlow协议下,对OpenFlow协议的协议报文进行统计以及SDN配置点对能力设备的管理和运维改善的效果。

Claims (15)

  1. 一种基于软件定义网络的统计方法,包括:
    通过OpenFlow管理配置协议OF-Config的协议设置,判断是否对待处理协议类型报文开启报文统计(S102);
    统计所述待处理协议类型报文(S104);
    接收查询所述待处理协议类型报文的查询指令(S106);
    返回查询结果(S108)。
  2. 根据权利要求1所述的方法,其中,所述通过OF-Config协议设置,判断是否对待处理协议类型报文开启报文统计(S102)包括:
    通过所述OF-Config协议设置,判断是否开启全部端口执行对所述待处理协议类型报文的报文统计。
  3. 根据权利要求1所述的方法,其中,所述统计所述待处理协议类型报文包括:
    判断识别的报文是否与所述待处理协议类型报文类型相同;
    在判断结果为是的情况下,统计所述报文。
  4. 根据权利要求3所述的方法,其中,所述判断识别的报文是否与所述待处理协议类型报文类型相同包括:
    判断所述报文的以太类型是否与所述待处理协议类型报文类型相同。
  5. 根据权利要求3所述的方法,其中,所述统计所述报文包括:
    通过预设方式统计所述报文,其中,所述预设方式包括:统计OpenFlow packet-in/packet-out报文数量,以及,对字节数量进行计数统计;
    或者,统计OpenFlow packet-in/packet-out报文数量;
    或者,对字节数量进行计数统计。
  6. 根据权利要求1所述的方法,其中,所述接收查询所述待处理协议类型报文的查询指令包括以下之一:
    接收OF-Config协议封装的所述查询指令;
    接收指示查询目标资源统计数据的所述查询指令。
  7. 根据权利要求6所述的方法,其中,所述返回查询结果包括以下至少之一:
    依据所述OF-Config协议封装的所述查询指令返回对应的查询结果;
    依据查询所述目标资源统计数据的所述查询指令返回对应的查询结果。
  8. 一种基于软件定义网络的统计装置,包括:
    配置模块(72),设置为通过OpenFlow管理配置协议OF-Config的协议设置,判断是否对待处理协议类型报文开启报文统计;
    统计模块(74),设置为统计所述待处理协议类型报文;
    接收模块(76),设置为接收查询所述待处理协议类型报文的查询指令;
    发送模块(78),设置为返回查询结果。
  9. 根据权利要求8所述的装置,其中,所述配置模块(72)包括:
    配置单元,设置为通过所述OF-Config协议设置,判断是否开启全部端口执行对所述待处理协议类型报文的报文统计。
  10. 根据权利要求8所述的装置,其中,所述统计模块(74)包括:
    判断单元,设置为判断识别的报文是否与所述待处理协议类型报文类型相同;
    统计单元,设置为在判断结果为是的情况下,统计所述报文。
  11. 根据权利要求10所述的装置,其中,所述判断单元包括:
    判断子单元,设置为判断所述报文的以太类型是否与所述待处理协议类型报文类型相同。
  12. 根据权利要求10所述的装置,其中,所述统计单元包括:
    统计子单元,设置为通过预设方式统计所述报文,其中,所述预设方式包括:统计OpenFlow packet-in/packet-out报文数量,以及,对字节数量进行计数统计;或者,统计OpenFlow packet-in/packet-out报文数量;或者,对字节数量进行计数统计。
  13. 根据权利要求8所述的装置,其中,所述接收模块(76)包括:
    第一接收单元,设置为接收OF-Config协议封装的所述查询指令;
    第二接收单元,设置为接收指示查询目标资源统计数据的所述查询指令。
  14. 根据权利要求13所述的装置,其中,所述发送模块(78)包括:
    第一发送单元,设置为依据所述OF-Config协议封装的所述查询指令返回对应的查询结果;
    第二发送单元,设置为依据查询所述目标资源统计数据的所述查询指令返回对应的查询结果。
  15. 一种基于软件定义网络的统计系统,包括:软件定义网络SDN配置点和能力交换设备,所述软件定义网络SDN配置点和所述能力交换设备通信连接,其中,
    所述软件定义网络SDN配置点,设置为发送OpenFlow管理配置协议OF-Config,在所述能力交换设备依据所述OF-Config协议开启报文统计之后,生成对待处理协议类型报文进行统计的查询指令,并接收所述能力交换设备依据所述查询指令返回的查询结果;
    所述能力交换设备,与所述软件定义网络SDN配置点通信连接,设置为通过所述OF-Config协议设置,判断是否对待处理协议类型报文开启报文统计;统计所述待处理协议类型报文;接收所述软件定义网络SDN配置点发送的查询所述待处理协议类型报文的所述查询指令;向所述软件定义网络SDN配置点返回所述查询结果;
    其中,所述能力交换设备为权利要求8至14中任一项所述的基于软件定义网络的统计装置。
PCT/CN2017/087473 2016-06-07 2017-06-07 一种基于软件定义网络的统计方法、装置及系统 WO2017211304A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610402789.2 2016-06-07
CN201610402789.2A CN107483281A (zh) 2016-06-07 2016-06-07 一种基于软件定义网络的统计方法、装置及系统

Publications (1)

Publication Number Publication Date
WO2017211304A1 true WO2017211304A1 (zh) 2017-12-14

Family

ID=60578377

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/087473 WO2017211304A1 (zh) 2016-06-07 2017-06-07 一种基于软件定义网络的统计方法、装置及系统

Country Status (2)

Country Link
CN (1) CN107483281A (zh)
WO (1) WO2017211304A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114079634A (zh) * 2020-08-21 2022-02-22 深圳市中兴微电子技术有限公司 一种报文转发方法、装置及计算机可读存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833203B (zh) * 2018-05-23 2021-04-30 新华三信息安全技术有限公司 一种报文统计方法及装置
CN110191028B (zh) * 2019-07-10 2020-12-01 天津市滨海新区信息技术创新中心 可软件定义的互连设备的测试装置、系统及方法
CN113542268B (zh) * 2021-07-14 2023-07-28 中能融合智慧科技有限公司 基于网络链路获取单个工控协议流量的方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626323A (zh) * 2009-07-23 2010-01-13 中兴通讯股份有限公司 一种网络数据流量监测方法和装置
CN104468254A (zh) * 2013-09-24 2015-03-25 中兴通讯股份有限公司 网络流量统计上报处理方法、装置、控制器及交换机
US20150131667A1 (en) * 2013-11-14 2015-05-14 Electronics And Telecommunications Research Institute Sdn-based network device with extended function and method of processing packet in the same device
CN105515850A (zh) * 2015-12-02 2016-04-20 浙江工商大学 利用OpenFlow控制器和配置点实现对ForCES转发件的控制管理方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719850B (zh) * 2009-11-04 2013-03-27 中兴通讯股份有限公司 对以太网丢包率进行统计的装置、方法及报文交换设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626323A (zh) * 2009-07-23 2010-01-13 中兴通讯股份有限公司 一种网络数据流量监测方法和装置
CN104468254A (zh) * 2013-09-24 2015-03-25 中兴通讯股份有限公司 网络流量统计上报处理方法、装置、控制器及交换机
US20150131667A1 (en) * 2013-11-14 2015-05-14 Electronics And Telecommunications Research Institute Sdn-based network device with extended function and method of processing packet in the same device
CN105515850A (zh) * 2015-12-02 2016-04-20 浙江工商大学 利用OpenFlow控制器和配置点实现对ForCES转发件的控制管理方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114079634A (zh) * 2020-08-21 2022-02-22 深圳市中兴微电子技术有限公司 一种报文转发方法、装置及计算机可读存储介质
CN114079634B (zh) * 2020-08-21 2024-03-12 深圳市中兴微电子技术有限公司 一种报文转发方法、装置及计算机可读存储介质

Also Published As

Publication number Publication date
CN107483281A (zh) 2017-12-15

Similar Documents

Publication Publication Date Title
US9749226B2 (en) Flow-based network switching system
US10063470B2 (en) Data center network system based on software-defined network and packet forwarding method, address resolution method, routing controller thereof
EP3226508B1 (en) Attack packet processing method, apparatus, and system
US9577944B2 (en) Network switching system using software defined networking applications
US20160197775A1 (en) Data center bridging network configuration and management
EP2955884B1 (en) Method, apparatus and system for configuring flow table in openflow network
JP5864758B2 (ja) バーチャルスイッチを介してネットワークトラフィックをコントロールするシステム及び方法
US20160301603A1 (en) Integrated routing method based on software-defined network and system thereof
WO2017211304A1 (zh) 一种基于软件定义网络的统计方法、装置及系统
CN106302199B (zh) 一种基于三层交换机设备的用户态协议栈实现方法及系统
WO2016123314A1 (en) Data loop determination in a software-defined network
EP3844911B1 (en) Systems and methods for generating network flow information
US9008080B1 (en) Systems and methods for controlling switches to monitor network traffic
CN102857491A (zh) 集管理方案
KR20130052030A (ko) 스위치 시스템, 모니터링 집중 관리 방법
WO2018001242A1 (zh) 一种数据报文处理方法及装置
WO2017015839A1 (zh) 一种基于sdn的arp实现方法及装置
EP2953302B1 (en) Service packet processing method, apparatus and system
WO2014050091A1 (en) Communication system, communication method, information processing apparatus, communication control method, and program
US20180167337A1 (en) Application of network flow rule action based on packet counter
US10462064B2 (en) Maximum transmission unit installation for network traffic along a datapath in a software defined network
KR20180058594A (ko) Sdn/tap 어플리케이션
US20120170581A1 (en) Policy homomorphic network extension
CN112491576A (zh) 网络配置的发送方法及装置、存储介质、电子装置
KR20180058593A (ko) Sdn 화이트박스 스위치

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

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

Country of ref document: EP

Kind code of ref document: A1