CN108768776A - A kind of method for monitoring network and device based on OpenFlow - Google Patents

A kind of method for monitoring network and device based on OpenFlow Download PDF

Info

Publication number
CN108768776A
CN108768776A CN201810541820.XA CN201810541820A CN108768776A CN 108768776 A CN108768776 A CN 108768776A CN 201810541820 A CN201810541820 A CN 201810541820A CN 108768776 A CN108768776 A CN 108768776A
Authority
CN
China
Prior art keywords
bandwidth
routing
controller
interchanger
available bandwidth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810541820.XA
Other languages
Chinese (zh)
Inventor
李俊山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810541820.XA priority Critical patent/CN108768776A/en
Publication of CN108768776A publication Critical patent/CN108768776A/en
Pending legal-status Critical Current

Links

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
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • 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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/38Flow based routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

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

The embodiment of the present application provides a kind of method for monitoring network and device based on OpenFlow, the method includes:Obtain the bandwidth capacity of each link in network topology;Obtain the available bandwidth being route in network topology;The bandwidth left rate of routing is determined according to the available bandwidth and bandwidth capacity being route in network topology;When the bandwidth left rate of routing is less than preset first threshold, the transmission overhead time of routing is measured;When transmitting the overhead time more than preset second threshold, alarm signal is sent out;The application, which combines, actively to be measured and passive data sampling, using the characteristics of SDN network framework and the original type of message of OpenFlow agreements, routing in SDN network is monitored extremely, reduce the abnormal influence to network bottleneck of routing, data center's fast and effectively managerial ability is improved, and ensures the stabilization of operation system, reliability service.

Description

A kind of method for monitoring network and device based on OpenFlow
Technical field
The present invention relates to fields of communication technology, more particularly to a kind of method for monitoring network and dress based on OpenFlow It sets.
Background technology
With the software defined network (Software Defined Networking, SDN) based on OpenFlow Development, network virtualization technology are detached the control plane of the network equipment with data surface using the control mode of centralization, realize system The flexible dispatching distribution for resource of uniting.Software defined network SDN has broken original tree hierarchy network structure, by the network equipment Control is detached with forwarding capability, provides the unified centralized control face of network level, what management and control were taken out by the network equipment Resource realizes network opening and programmable ultimate aim.
The state that network routing abnormal monitoring grasps controller network transmission routing in real time is significant, network management Person can according to the status information for the network routing that controller provides, to optimization and adjustment that the transmission of data flow is route, Reasonably carry out the distribution of Internet resources.Developer can also according to the routing iinformation of network be application programming go out rationally and Efficient transmission mode.Network routing is measured and is monitored, the operating status and resource consumption situation of network can be grasped, It was found that the bottleneck of network and potential danger, and improve the performance of network by optimizing network structure, enhance the stalwartness of network Property and safety.
Statistical information in the measurement and monitoring and collection network that are route by network realizes that network route abnormal monitoring Process mainly has two kinds of passive measurement mode and active measurement method.Actively measurement is more flexible, can send out at any time as needed Probe data packet is sent, completes to measure and monitor process, but actively measurement can introduce additional network load, to the standard of measurement result True property has an impact;And since the behavior uncontrollability of probe data packet in a network can cause invalid measurement data, to Reduce measurement accuracy.Passive measurement underaction measures sample and is difficult to predict, may be because of cannot be collected into enough measurements Sample and measurement process can not be completed.Existing network routing abnormal monitoring is concentrated mainly on the acquisition of network link performance parameter Aspect, but about in SDN network route abnormality monitoring method design it is relatively fewer, main measurement method mostly all only A kind of mode is utilized, actively measurement or passive measurement, have certain drawbacks.
Therefore, there is an urgent need for a kind of method for monitoring network and device based on OpenFlow, can be in conjunction with actively measuring and passive Data sampling, using the characteristics of SDN network framework and the original type of message of OpenFlow agreements, to the routing in SDN network Exception is monitored.
Invention content
In view of the deficiencies of the prior art, the present invention provides a kind of method for monitoring network and device based on OpenFlow, It can be in conjunction with actively measuring and passive data sampling, using the characteristics of SDN network framework and the original message of OpenFlow agreements Type is monitored the routing in SDN network extremely, reduces the abnormal influence to network bottleneck of routing, improves in data The heart fast and effectively managerial ability, and ensure the stabilization of operation system, reliability service.
In a first aspect, a kind of method for monitoring network based on OpenFlow is provided, including:
Obtain the bandwidth capacity of each link in network topology;
Obtain the available bandwidth being route in network topology;
The bandwidth left rate of routing is determined according to the available bandwidth and bandwidth capacity being route in network topology;
When the bandwidth left rate of routing is less than preset first threshold, the transmission overhead time of routing is measured;
When transmitting the overhead time more than preset second threshold, alarm signal is sent out.
With reference to first aspect, in the first possible realization method of first aspect,
The bandwidth capacity C (Capacity) of each link in the acquisition network topology, including:
Controller periodically sends the Packet-Out message for carrying LLDP messages to the interchanger being attached thereto;
Interchanger sends the LLDP message broadcastings of reception, and returns to controller by Packet-In message;
It determines the linking relationship between two interchangers, and obtains the data surface ID and port numbers of corresponding interchanger.
With reference to first aspect and its above-mentioned realization method, in second of possible realization method of first aspect,
The available bandwidth being route in the acquisition network topology, including:
Controller is by the PortStats-Request message in OpenFlow agreements with period of time T inquired switch Port obtains the byte number N (T) at T moment in counter;
Controller determines that this link has used bandwidth B at present according to the variation of a cycle inner port counter byte number:B =N (T)-N (T-T);
Controller calculates respective links with bandwidth B according to the bandwidth capacity C (Capacity) of link and this link Available bandwidth AB (Available BandWidth):AB=C-B;
Controller determines the available bandwidth ABP (Path entirely routeing according to the available bandwidth of the upper each of the links of given routing Available BandWidth):ABP=min AB ∈ PAB.
With reference to first aspect and its above-mentioned realization method, in the third possible realization method of first aspect,
The bandwidth left rate that routing is determined according to the available bandwidth being route in network topology and bandwidth capacity, including:
According to formula:Bandwidth left rate=available bandwidth/bandwidth capacity determines bandwidth left rate,
Wherein, the bandwidth capacity of routing is the minimum value of the bandwidth capacity of the upper all links of routing, the available bandwidth of routing To route the minimum value of the above available bandwidth of all links.
With reference to first aspect and its above-mentioned realization method, in the 4th kind of possible realization method of first aspect,
It is described when the bandwidth left rate of routing be less than preset first threshold when, determine routing transmission expense when Between, including:
The forward rule of probe data packet is issued on corresponding interchanger by controller;
Controller is obtained by carrying system time stamp T1Probe data packet be sent to first exchange in tested routing Machine to detection data is coated with the time that controller after the last one interchanger is returned with Packet-In message receives this data packet T2
Controller is obtained using the time difference T for sending and receiving probe data packet3And controller is between interchanger Echo message round-trip delays T4
Determine the transmission overhead time T of routingS1-SN:(T2-T1)-T3+T4
Wherein, the N is the integer more than 1, and SN indicates the last one interchanger in tested routing.
Second aspect provides a kind of device for network monitoring, including:
Acquiring unit, the acquiring unit are used to obtain the bandwidth capacity of each link in network topology, the acquiring unit It is additionally operable to obtain the available bandwidth routeing in network topology;
Determination unit, the determination unit are used to determine road according to the available bandwidth and bandwidth capacity that route in network topology By bandwidth left rate;The determination unit is additionally operable to when the bandwidth left rate of routing is less than preset first threshold, Determine the transmission overhead time of routing;The determination unit is additionally operable to be more than preset second threshold when the transmission overhead time When, send out alarm signal.
In conjunction with second aspect, in the first possible realization method of second aspect,
The acquiring unit is specifically used for:
Controller periodically sends the Packet-Out message for carrying LLDP messages to the interchanger being attached thereto;
Interchanger sends the LLDP message broadcastings of reception, and returns to controller by Packet-In message;
It determines the linking relationship between two interchangers, and obtains the data surface ID and port numbers of corresponding interchanger.
In conjunction with second aspect and its above-mentioned realization method, in second of possible realization method of second aspect,
The acquiring unit is specifically used for:
Controller is by the PortStats-Request message in OpenFlow agreements with period of time T inquired switch Port obtains the byte number N (T) at T moment in counter;
Controller determines that this link has used bandwidth B at present according to the variation of a cycle inner port counter byte number:B =N (T)-N (T-T);
Controller calculates respective links with bandwidth B according to the bandwidth capacity C (Capacity) of link and this link Available bandwidth AB (Available BandWidth):AB=C-B;
Controller determines the available bandwidth ABP entirely routeing according to the available bandwidth of the upper each of the links of given routing (PathAvailable BandWidth):ABP=min AB ∈ PAB.
In conjunction with second aspect and its above-mentioned realization method, in the third possible realization method of second aspect,
The determination unit is specifically used for:
According to formula:Bandwidth left rate=available bandwidth/bandwidth capacity determines bandwidth left rate,
Wherein, the bandwidth capacity of routing is the minimum value of the bandwidth capacity of the upper all links of routing, the available bandwidth of routing To route the minimum value of the above available bandwidth of all links.
In conjunction with second aspect and its above-mentioned realization method, in the 4th kind of possible realization method of second aspect,
The determination unit also particularly useful for:
The forward rule of probe data packet is issued on corresponding interchanger by controller;
Controller is obtained by carrying system time stamp T1Probe data packet be sent to first exchange in tested routing Machine to detection data is coated with the time that controller after the last one interchanger is returned with Packet-In message receives this data packet T2
Controller is obtained using the time difference T for sending and receiving probe data packet3And controller is between interchanger Echo message round-trip delays T4
Determine the transmission overhead time T of routingS1-SN:(T2-T1)-T3+T4
Wherein, the N is the integer more than 1, and SN indicates the last one interchanger in tested routing.
The third aspect provides a kind of controlled terminal, including:
Processor, memory, wherein
The memory is for storing computer program, and the processor from memory for calling and running the computer journey Sequence so that the method that terminal device executes above-mentioned terminal device.
Fourth aspect provides a kind of computer storage media, instruction is stored in the computer readable storage medium, When run on a computer so that computer executes the method described in above-mentioned various aspects.
5th aspect provides a kind of computer program product including instruction, when run on a computer so that Computer executes the method described in above-mentioned various aspects.
Therefore, the application, which combines, actively measures and passive data sampling, using the characteristics of SDN network framework and OpenFlow The original type of message of agreement, is monitored the routing in SDN network extremely, reduces the abnormal shadow to network bottleneck of routing It rings, improves data center's fast and effectively managerial ability, and ensure the stabilization of operation system, reliability service.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is the schematic flow chart of the method for the application one embodiment.
Fig. 2 is the schematic block diagram of the device of the application one embodiment.
Fig. 3 is a kind of structural schematic diagram of controlled terminal provided in an embodiment of the present invention.
Specific implementation mode
In order to make those skilled in the art more fully understand the technical solution in the present invention, below in conjunction with of the invention real The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common The every other embodiment that technical staff is obtained without making creative work, should all belong to protection of the present invention Range.In order to make those skilled in the art more fully understand the technical solution in the present invention, below in conjunction with of the invention real The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common The every other embodiment that technical staff is obtained without making creative work, should all belong to protection of the present invention Range.
The Key Term occurred in the application is explained below.
LLDP(Link Layer Discovery Protocol):Link Layer Discovery Protocol, by the main energy of local device The information such as power, management address, device identification, interface identifier are organized into different TLV (Type/Length/Value, type/length Degree/value), and it is encapsulated in LLDPDU (Link Layer Discovery Protocol Data Unit, Link Layer Discovery Protocol Data cell) in be distributed to the neighbours direct-connected with oneself, neighbours receive it after these information with standard mib (Management Information Base, management information bank) form save, for Network Management System inquire and judge link lead to Letter situation.
It should be understood that the first, second of described in the text is intended merely to refer to and distinguish different signals, instruction etc., wherein the One, the second restriction without sequencing.
Fig. 1 is the schematic flow chart of the method for the application one embodiment.Wherein, Fig. 1 executive agents can be one kind The device of network monitoring.
As shown in Figure 1, this method 100 includes:
Step 110, the bandwidth capacity of each link in network topology is obtained;
Step 120, the available bandwidth being route in network topology is obtained;
Step 130, the bandwidth left rate of routing is determined according to the available bandwidth and bandwidth capacity being route in network topology;
Step 140, when the bandwidth left rate of routing is less than preset first threshold, the transmission expense of routing is determined Time;
Step 150, when transmitting the overhead time more than preset second threshold, alarm signal is sent out.
Optionally, as the application one embodiment, the bandwidth capacity C for obtaining each link in network topology (Capacity), including:
Controller periodically sends the Packet-Out message for carrying LLDP messages to the interchanger being attached thereto;
Interchanger sends the LLDP message broadcastings of reception, and returns to controller by Packet-In message;
It determines the linking relationship between two interchangers, and obtains the data surface ID and port numbers of corresponding interchanger.
Specifically, after controller and interchanger establish connection by OpenFlow agreements, controller can pass through FeatureRequest message inquires that its status information, interchanger provide after receiving this message according to agreement to interchanger, The state work and rest of oneself must be sent to controller.What controller obtained is the essential information of interchanger at this time, is not obtained The topology information of network.In order to obtain the topology information of network, the link discovery management module of controller can be periodically The Packet-Out that carrying LLDP (LinkLayerDiscoveryProtocol) message is sent to the interchanger being attached thereto disappears Breath can be carried out broadcast transmission after interchanger receives the LLDP messages from controller, when the interchanger being attached thereto is received Controller can be returned to after to LLDP messages by Packet-In message.By the process, link discovery module will know that this There is link between two interchangers, and the data surface ID and port numbers of corresponding interchanger are recorded, sends topology to Management module.The process is extended into whole network, controller obtains the topological structure of whole network by means of which.
Optionally, described to obtain the available bandwidth being route in network topology as the application one embodiment, including:
Controller is by the PortStats-Request message in OpenFlow agreements with period of time T inquired switch Port obtains the byte number N (T) at T moment in counter;
Controller determines that this link has used bandwidth B at present according to the variation of a cycle inner port counter byte number:B =N (T)-N (T-T);
Controller calculates respective links with bandwidth B according to the bandwidth capacity C (Capacity) of link and this link Available bandwidth AB (Available BandWidth):AB=C-B;
Controller determines the available bandwidth ABP (Path entirely routeing according to the available bandwidth of the upper each of the links of given routing Available BandWidth):ABP=min AB ∈ PAB.
Optionally, described according to the available bandwidth being route in network topology and with tolerance as the application one embodiment Amount determines the bandwidth left rate of routing, including:
According to formula:Bandwidth left rate=available bandwidth/bandwidth capacity determines bandwidth left rate,
Wherein, the bandwidth capacity of routing is the minimum value of the bandwidth capacity of the upper all links of routing, the available bandwidth of routing To route the minimum value of the above available bandwidth of all links.
Optionally, described to obtain the available bandwidth being route in network topology as the application one embodiment, including:
Controller is by the PortStats-Request message in OpenFlow agreements with period of time T inquired switch Port obtains the byte number N (T) at T moment in counter;
Controller determines that this link has used bandwidth B at present according to the variation of a cycle inner port counter byte number:B =N (T)-N (T-T);
Controller calculates respective links with bandwidth B according to the bandwidth capacity C (Capacity) of link and this link Available bandwidth AB (Available BandWidth):AB=C-B;
Controller determines the available bandwidth ABP (Path entirely routeing according to the available bandwidth of the upper each of the links of given routing Available BandWidth):ABP=min AB ∈ PAB.
Obtain the performance parameter of link in network and routing in traditional scheme as precisely as possible often through various modes (for example, the bandwidth capacity of link or link have used bandwidth), but few researchers are the work of measurement link bandwidth It focuses in the measurement of link available bandwidth.For this method by way of calculating link available bandwidth, routing can be used in completion The measurement work of bandwidth, and from different angles come reflect network routing operating status.
Optionally, described when the bandwidth left rate of routing is less than preset first as the application one embodiment When threshold value, the transmission overhead time of routing is determined, including:
The forward rule of probe data packet is issued on corresponding interchanger by controller;
Controller is obtained by carrying system time stamp T1Probe data packet be sent to first exchange in tested routing Machine to detection data is coated with the time that controller after the last one interchanger is returned with Packet-In message receives this data packet T2
Controller is obtained using the time difference T for sending and receiving probe data packet3And controller is between interchanger Echo message round-trip delays T4
Determine the transmission overhead time T of routingS1-SN:(T2-T1)-T3+T4
Wherein, the N is the integer more than 1, and SN indicates the last one interchanger in tested routing.
Specifically, the transmission expense measurement process of routing S1-S2-S3-S4 is as follows:
First, controller in advance advise on all interchangers for being measured routing by the forwarding of installation matching probe data packet Then, these rules ensure that probe data packet is transmitted to next interchanger by a upper exchange opportunity, last in this routing One exchange opportunity triggers Packet-In message, and probe data packet is transmitted to controller;
Then, carrying present system time can be stabbed T by controller1Probe data packet be sent in tested routing first A interchanger S1On, according to the matching rule being issued in advance on interchanger, probe data packet can be forwarded to along tested path A nearest interchanger S2On, further according to the last one interchanger S4The Packet-In message of return obtains this data packet, control The time that device receives this data packet is T2
Finally, controller is according to the time difference (controller to S for sending and receiving probe data packet1Two-way time T3) with And controller is to Echo message round-trip delay (the two-way time T of controller to S4 between interchanger4) calculate the transmission routeing Overhead time, then the transmission overhead time for routeing S1-S2-S3-S4 be:TS1-S4=(T2-T1)-T3+T4
This method has the advantage of the following aspects compared with expense measurement method is transmitted in existing routing:
(1) control data bag for utilizing SDN network intrinsic both need not carry out any modification to the hardware of interchanger, Terminal user need not be accessed;
(2) expense is transmitted in the routing that can be measured between any two OpenFlow interchangers;
(3) problem synchronized without the concern for system clock when the transmission expense for calculating routing on the controller, can be right The calculating that expense is concentrated is transmitted in measured routing.
Fig. 2 shows the schematic block diagrams of the device of the application one embodiment.
As shown in Fig. 2, the device 200 includes:
Acquiring unit 210, the acquiring unit are used to obtain the bandwidth capacity of each link in network topology, and the acquisition is single Member is additionally operable to obtain the available bandwidth routeing in network topology;
Determination unit 220, the determination unit are used for true according to the available bandwidth and bandwidth capacity that are route in network topology Surely the bandwidth left rate routeing;The determination unit is additionally operable to be less than preset first threshold when the bandwidth left rate of routing When, determine the transmission overhead time of routing;The determination unit is used to be more than preset second threshold when the transmission overhead time When value, alarm signal is sent out.
Optionally, as the application one embodiment, the acquiring unit is specifically used for:
Controller periodically sends the Packet-Out message for carrying LLDP messages to the interchanger being attached thereto;
Interchanger sends the LLDP message broadcastings of reception, and returns to controller by Packet-In message;
It determines the linking relationship between two interchangers, and obtains the data surface ID and port numbers of corresponding interchanger.
Optionally, as the application one embodiment, the acquiring unit is specifically used for:
Controller is by the PortStats-Request message in OpenFlow agreements with period of time T inquired switch Port obtains the byte number N (T) at T moment in counter;
Controller determines that this link has used bandwidth B at present according to the variation of a cycle inner port counter byte number:B =N (T)-N (T-T);
Controller calculates respective links with bandwidth B according to the bandwidth capacity C (Capacity) of link and this link Available bandwidth AB (Available BandWidth):AB=C-B;
Controller determines the available bandwidth ABP (Path entirely routeing according to the available bandwidth of the upper each of the links of given routing Available BandWidth):ABP=min AB ∈ PAB.
Optionally, as the application one embodiment, the determination unit is specifically used for:
According to formula:Bandwidth left rate=available bandwidth/bandwidth capacity determines bandwidth left rate,
Wherein, the bandwidth capacity of routing is the minimum value of the bandwidth capacity of the upper all links of routing, the available bandwidth of routing To route the minimum value of the above available bandwidth of all links.
Optionally, as the application one embodiment, the determination unit also particularly useful for:
The forward rule of probe data packet is issued on corresponding interchanger by controller;
Controller is obtained by carrying system time stamp T1Probe data packet be sent to first exchange in tested routing Machine to detection data is coated with the time that controller after the last one interchanger is returned with Packet-In message receives this data packet T2
Controller is obtained using the time difference T for sending and receiving probe data packet3And controller is between interchanger Echo message round-trip delays T4
Determine the transmission overhead time T of routingS1-SN:(T2-T1)-T3+T4
Wherein, the N is the integer more than 1, and SN indicates the last one interchanger in tested routing.
Fig. 3 is a kind of structural schematic diagram of controlled terminal 300 provided in an embodiment of the present invention, which can be with For executing the method shown in network technology provided by the embodiments of the present application
Wherein, which may include:Processor 310, memory 320 and communication unit 330.These components It is communicated by one or more bus, it will be understood by those skilled in the art that the structure of server shown in figure is not The restriction to the application is constituted, it, either busbar network, can also be hub-and-spoke configuration, can also include more than illustrating Or less component, either combine certain components or different components arrangement.
Wherein, which can be used for storing executing instruction for processor 310, and memory 320 can be by any class The volatibility or non-volatile memory device or combination thereof of type are realized, such as static RAM (SRAM), electricity Erasable Programmable Read Only Memory EPROM (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.When executing instruction in memory 320 When being executed by processor 310 so that terminal 300 some or all of is able to carry out in following above method embodiment step.
Processor 310 is the control centre of storage device, utilizes each of various interfaces and the entire electronic equipment of connection A part by running or execute the software program and/or module that are stored in memory 320, and calls and is stored in storage Data in device, to execute the various functions and/or processing data of electronic equipment.The processor can be by integrated circuit (Integrated Circuit, abbreviation IC) is formed, such as the IC that can be encapsulated by single is formed, can also be by more of connection The encapsulation IC of identical function or different function and form.For example, processor 310 can only include central processing unit (Central Processing Unit, abbreviation CPU).In the application embodiment, CPU can be single operation core, also may be used To include multioperation core.
Communication unit 330, for establishing communication channel, to allow the storage device and miscellaneous equipment to be led to Letter.Receive the user data or send user data to other equipment that other equipment is sent.
The application also provides a kind of computer storage media,
Wherein, which can have program stored therein, which may include each reality provided by the present application when executing Some or all of apply in example step.The storage medium can be magnetic disc, CD, read-only memory (English:read- Only memory, referred to as:ROM) or random access memory is (English:Random access memory, referred to as:RAM) etc..
Therefore, the embodiment of the present application can be in conjunction with actively measuring and passive data sampling, the characteristics of using SDN network framework With the original type of message of OpenFlow agreements, the routing in SDN network is monitored extremely, it is abnormal to net to reduce routing The influence of network bottleneck improves data center's fast and effectively managerial ability, and ensures the stabilization of operation system, reliability service, this The attainable technique effect of embodiment institute may refer to described above, and details are not described herein again.
It is required that those skilled in the art can be understood that the technology in the embodiment of the present application can add by software The mode of general hardware platform realize.Based on this understanding, the technical solution in the embodiment of the present application substantially or Say that the part that contributes to existing technology can be expressed in the form of software products, which is stored in Such as USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory in one storage medium The various media that can store program code such as (RAM, Random Access Memory), magnetic disc or CD, including it is several Instruction is used so that a computer equipment (can be personal computer, server or the second equipment, the network equipment etc.) is held Row all or part of the steps of the method according to each embodiment of the present invention.
The same or similar parts between the embodiments can be referred to each other in this specification.Implement especially for terminal For example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring in embodiment of the method Explanation.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.
Although by reference to attached drawing and combining the mode of preferred embodiment to the present invention have been described in detail, the present invention It is not limited to this.Without departing from the spirit and substance of the premise in the present invention, those of ordinary skill in the art can be to the present invention Embodiment carry out various equivalent modifications or substitutions, and these modifications or substitutions all should in the covering scope of the present invention/appoint What those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, answer It is included within the scope of the present invention.Therefore, protection scope of the present invention is answered described is with scope of the claims It is accurate.

Claims (10)

1. a kind of method for monitoring network based on OpenFlow, which is characterized in that including:
Obtain the bandwidth capacity of each link in network topology;
Obtain the available bandwidth being route in network topology;
The bandwidth left rate of routing is determined according to the available bandwidth and bandwidth capacity being route in network topology;
When the bandwidth left rate of routing is less than preset first threshold, the transmission overhead time of routing is measured;
When transmitting the overhead time more than preset second threshold, alarm signal is sent out.
2. according to the method described in claim 1, it is characterized in that, it is described obtain network topology in each link bandwidth capacity, Including:
Controller periodically sends the Packet-Out message for carrying LLDP messages to the interchanger being attached thereto;
Interchanger sends the LLDP message broadcastings of reception, and returns to controller by Packet-In message;
It determines the linking relationship between two interchangers, and obtains the data surface ID and port numbers of corresponding interchanger.
3. method according to claim 1 or 2, which is characterized in that it is described to obtain the available bandwidth being route in network topology, Including:
Controller is by the PortStats-Request message in OpenFlow agreements with period of time T inquired switch port Obtain the byte number N (T) at T moment in counter;
Controller determines that this link has used bandwidth B at present according to the variation of a cycle inner port counter byte number:B=N (T)-N(T-T);
Controller is according to the bandwidth capacity C of the link and available bandwidth AB for calculating respective links with bandwidth B of this link:AB= C-B;
Controller determines the available bandwidth ABP entirely routeing according to the available bandwidth of the upper each of the links of given routing:ABP=min AB∈PAB。
4. according to the method in any one of claims 1 to 3, which is characterized in that described according to routeing in network topology Available bandwidth and bandwidth capacity determine the bandwidth left rate of routing, including:
According to formula:Bandwidth left rate=available bandwidth/bandwidth capacity determines bandwidth left rate,
Wherein, the bandwidth capacity of routing is the minimum value of the bandwidth capacity of the upper all links of routing, and the available bandwidth of routing is road By the minimum value of the available bandwidth of upper all links.
5. method according to claim 1 to 4, which is characterized in that described when the bandwidth left rate of routing is small When preset first threshold, the transmission overhead time of routing is determined, including:
The forward rule of probe data packet is issued on corresponding interchanger by controller;
Controller is obtained by carrying system time stamp T1First interchanger being sent in tested routing of probe data packet to visiting Measured data is coated with the time T that controller after the last one interchanger is returned with Packet-In message receives this data packet2
Controller is obtained using the time difference T for sending and receiving probe data packet3And controller is to the Echo message between interchanger Round-trip delay T4
Determine the transmission overhead time T of routingS1-SN:(T2-T1)-T3+T4
Wherein, the N is the integer more than 1, and SN indicates the last one interchanger in tested routing.
6. a kind of device for the network monitoring based on OpenFlow, which is characterized in that including:
Acquiring unit, the acquiring unit are used to obtain the bandwidth capacity of each link in network topology, and the acquiring unit is also used In obtaining the available bandwidth being route in network topology;
Determination unit, the determination unit are used to determine routing according to the available bandwidth and bandwidth capacity routeing in network topology Bandwidth left rate;The determination unit is additionally operable to, when the bandwidth left rate of routing is less than preset first threshold, determine The transmission overhead time of routing;The determination unit is additionally operable to when transmitting the overhead time more than preset second threshold, Send out alarm signal.
7. device according to claim 6, which is characterized in that the acquiring unit is specifically used for:
Controller periodically sends the Packet-Out message for carrying LLDP messages to the interchanger being attached thereto;
Interchanger sends the LLDP message broadcastings of reception, and returns to controller by Packet-In message;
It determines the linking relationship between two interchangers, and obtains the data surface ID and port numbers of corresponding interchanger.
8. the device described according to claim 6 or 7, which is characterized in that the acquiring unit is specifically used for:
Controller is by the PortStats-Request message in OpenFlow agreements with period of time T inquired switch port Obtain the byte number N (T) at T moment in counter;
Controller determines that this link has used bandwidth B at present according to the variation of a cycle inner port counter byte number:B=N (T)-N(T-T);
Controller is according to the bandwidth capacity C of the link and available bandwidth AB for calculating respective links with bandwidth B of this link:AB= C-B;
Controller determines the available bandwidth ABP entirely routeing according to the available bandwidth of the upper each of the links of given routing:ABP=min AB∈PAB。
9. the device according to any one of claim 6 to 8, which is characterized in that the determination unit also particularly useful for:
The forward rule of probe data packet is issued on corresponding interchanger by controller;
Controller is obtained by carrying system time stamp T1First interchanger being sent in tested routing of probe data packet to visiting Measured data is coated with the time T that controller after the last one interchanger is returned with Packet-In message receives this data packet2
Controller is obtained using the time difference T for sending and receiving probe data packet3And controller is to the Echo message between interchanger Round-trip delay T4
Determine the transmission overhead time T of routingS1-SN:(T2-T1)-T3+T4
Wherein, the N is the integer more than 1, and SN indicates the last one interchanger in tested routing.
10. a kind of controlled terminal, which is characterized in that including:
Processor;
The memory executed instruction for storing processor;
Wherein, the processor is configured as perform claim and requires 1-5 any one of them methods.
CN201810541820.XA 2018-05-30 2018-05-30 A kind of method for monitoring network and device based on OpenFlow Pending CN108768776A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810541820.XA CN108768776A (en) 2018-05-30 2018-05-30 A kind of method for monitoring network and device based on OpenFlow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810541820.XA CN108768776A (en) 2018-05-30 2018-05-30 A kind of method for monitoring network and device based on OpenFlow

Publications (1)

Publication Number Publication Date
CN108768776A true CN108768776A (en) 2018-11-06

Family

ID=64004711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810541820.XA Pending CN108768776A (en) 2018-05-30 2018-05-30 A kind of method for monitoring network and device based on OpenFlow

Country Status (1)

Country Link
CN (1) CN108768776A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556054A (en) * 2020-04-28 2020-08-18 南京大学 Method for detecting wormhole attack aiming at SDN
CN113572654A (en) * 2020-04-29 2021-10-29 华为技术有限公司 Network performance monitoring method, network device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341346A (en) * 2016-09-08 2017-01-18 重庆邮电大学 Routing algorithm of guaranteeing QoS in data center network based on SDN
CN106533806A (en) * 2016-12-26 2017-03-22 上海交通大学 Method for providing cross-layer quality of service (QoS) based on application awareness in multi-tenant software defined network (SDN)
US20170142070A1 (en) * 2014-05-13 2017-05-18 Dell Software Inc. Method to enable deep packet inspection (dpi) in openflow-based software defined network (sdn)
CN106789648A (en) * 2016-12-15 2017-05-31 南京邮电大学 Software defined network route decision method based on content storage with network condition
US20170187780A1 (en) * 2014-10-15 2017-06-29 Fortinet, Inc. Optimizing multimedia streaming in wlans (wireless local access networks) with a remote sdn (software-defined networking) controller
CN107070714A (en) * 2017-04-10 2017-08-18 中国人民解放军国防科学技术大学 A kind of SDN abnormality monitoring method
CN107995121A (en) * 2017-11-27 2018-05-04 中国科学技术大学苏州研究院 Flow statistical method in software defined network based on asterisk wildcard

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170142070A1 (en) * 2014-05-13 2017-05-18 Dell Software Inc. Method to enable deep packet inspection (dpi) in openflow-based software defined network (sdn)
US20170187780A1 (en) * 2014-10-15 2017-06-29 Fortinet, Inc. Optimizing multimedia streaming in wlans (wireless local access networks) with a remote sdn (software-defined networking) controller
CN106341346A (en) * 2016-09-08 2017-01-18 重庆邮电大学 Routing algorithm of guaranteeing QoS in data center network based on SDN
CN106789648A (en) * 2016-12-15 2017-05-31 南京邮电大学 Software defined network route decision method based on content storage with network condition
CN106533806A (en) * 2016-12-26 2017-03-22 上海交通大学 Method for providing cross-layer quality of service (QoS) based on application awareness in multi-tenant software defined network (SDN)
CN107070714A (en) * 2017-04-10 2017-08-18 中国人民解放军国防科学技术大学 A kind of SDN abnormality monitoring method
CN107995121A (en) * 2017-11-27 2018-05-04 中国科学技术大学苏州研究院 Flow statistical method in software defined network based on asterisk wildcard

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556054A (en) * 2020-04-28 2020-08-18 南京大学 Method for detecting wormhole attack aiming at SDN
CN111556054B (en) * 2020-04-28 2021-04-06 南京大学 Method for detecting wormhole attack aiming at SDN
CN113572654A (en) * 2020-04-29 2021-10-29 华为技术有限公司 Network performance monitoring method, network device and storage medium
CN113572654B (en) * 2020-04-29 2023-11-14 华为技术有限公司 Network performance monitoring method, network equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107528870B (en) A kind of collecting method and its equipment
CN106340176B (en) Information sharing method of intelligent electric meter, intelligent electric meter and acquisition router
CN104521199B (en) For the adaptation method of the distributed virtual switch, device and equipment
CN109496416A (en) Future authentication and prototype are carried out to Internet of Things network
CN114143203A (en) Kubernetes container network data packet index acquisition method and system based on dynamic service topological mapping
CN109155744A (en) Dynamic experience management in communication
CN104221327A (en) Network availability analytics
CN104065398B (en) A kind of electric power communication network network merges method for designing and the system of test platform
CN104702462A (en) Network test system
US7894361B1 (en) System and method for network capacity engineering
CN109194617A (en) The automatically parsing of XML message, packaging method and device
CN103795575B (en) A kind of system monitoring method towards multiple data centers
EP3703316A1 (en) Frame aggregation method, network setup frame sending method, and device
CN113411221B (en) Power communication network fault simulation verification method, device, equipment and storage medium
CN108604995A (en) Method, network and the coordinator used in this method for operating network
CN108282351A (en) Network is sliced the performance management method and device of example
CN104283802A (en) Neighbor discovery method and device
CN101145977A (en) A QoS monitoring system and its measuring method of IP data network
CN114915995A (en) Network slice monitoring method, system and storage medium based on in-band network telemetry
CN108768776A (en) A kind of method for monitoring network and device based on OpenFlow
CN113036930A (en) Power grid data communication management system
CN110519103A (en) A kind of Fault Locating Method of heterogeneous network, device and terminal
US20220247651A1 (en) System and method for network and computation performance probing for edge computing
US7940729B2 (en) Analysis and control of traffic based on identified packet control functions
CN108494625A (en) A kind of analysis system on network performance evaluation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181106

RJ01 Rejection of invention patent application after publication