CN105763347B - For method getparms, the network equipment and system - Google Patents

For method getparms, the network equipment and system Download PDF

Info

Publication number
CN105763347B
CN105763347B CN201410778050.2A CN201410778050A CN105763347B CN 105763347 B CN105763347 B CN 105763347B CN 201410778050 A CN201410778050 A CN 201410778050A CN 105763347 B CN105763347 B CN 105763347B
Authority
CN
China
Prior art keywords
message
packet
controller
forwarding device
address
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.)
Active
Application number
CN201410778050.2A
Other languages
Chinese (zh)
Other versions
CN105763347A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410778050.2A priority Critical patent/CN105763347B/en
Priority to PCT/CN2015/092940 priority patent/WO2016095611A1/en
Publication of CN105763347A publication Critical patent/CN105763347A/en
Application granted granted Critical
Publication of CN105763347B publication Critical patent/CN105763347B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/34Signalling channels for network management communication

Abstract

The embodiment of the present invention provides a kind of for method, apparatus and system getparms, the network isolated applied to control forwarding, comprising: controller obtains the first IP packet;First IP packet is encapsulated in first message by the controller, and is sent in the first message to the forwarding device;The first message includes type of action value, the type of action value is used to indicate after the forwarding device receives the first message, first IP packet is obtained by decapsulation, and first IP packet is replicated to obtain two parts of first IP packets, first part in two part of first IP packet is sent to the target device direction, second part in two part of first IP packet is passed back to the controller;The controller records T1, at the time of the T1 indicates that the controller sends the first message.Help to accurately calculate time delay and judges failure.

Description

For method getparms, the network equipment and system
Technical field
The present invention relates to fields of communication technology, and in particular to one kind is used for method getparms, the network equipment and system.
Background technique
Software defined network (Software Defined Networking, SDN) frame based on control forwarding separating thought Structure is a kind of new network exchange model, plays preferable impetus to the innovation and development of network, key component includes Open flows OpenFlow interchanger and controller.Pass through OpenFlow protocol specification between controller and OpenFlow interchanger Control channel completes the interaction of message and the transmitting of information.Controller realizes control function by whole network view, is OpenFlow interchanger generates forwarding flow table;OpenFlow interchanger forwards data packet according to flow table.
The network architecture based on SDN, because control plane and Forwarding plane are separated into independent controller and forwarding device, And distance is farther out, so network delay can be made to become larger, user can not determine time delay all consume where and can not determine It is forwarding device to the network delay between target device is big or the control channel time delay of controller to forwarding device is big.When When message is unreachable, control channel failure between controller and forwarding device or forwarding device can not be determined to target The network failure of equipment.Therefore, parameter needed for how obtaining time delay detection, to help to accurately calculate time delay and judgement Network failure is that isolated network problem to be solved is forwarded based on control.
Summary of the invention
Acquisition methods, the network equipment and the system of parameter needed for time delay detection provided in an embodiment of the present invention, can solve Forwarded based on control can not be obtained on isolated network can be for parameter needed for carrying out time delay detection the problem of.
To solve the above-mentioned problems, first aspect of the embodiment of the present invention provides a kind of for method getparms, comprising: Controller obtains the first Internet protocol (Internet Protocol, IP) message, and the source IP address of first IP packet is The IP address of forwarding device, the purpose IP address of first IP packet are the IP address of target device, and the target device is Other forwarding devices or application server in addition to the forwarding device;The controller encapsulates first IP packet In first message, and the first message is sent to the forwarding device, wherein the first message includes type of action Value, the type of action value are used to indicate after the forwarding device receives the first message, obtain described the by decapsulation One IP packet, and first IP packet is replicated to obtain two parts of first IP packets, two part of the first IP is reported First part in text sends to the target device direction, and second part in two part of first IP packet is passed back to institute State controller;The controller records T1, at the time of the T1 indicates that the controller sends the first message.
In the first possible implementation of the first aspect, further includes: the controller receives the forwarding device The second message of transmission, the second message carry T2;The controller obtains T2, the T2 instruction from the second message At the time of the forwarding device receives the first message, or the instruction forwarding device sends described the to the controller At the time of two message;The controller determines the controller to the first time delay of the forwarding device, and first time delay is The difference of the T2 and the T1;Alternatively, the controller is determining that the controller is not received by first time period P1 After the second message that the forwarding device is sent, the control channel hair between the controller and the forwarding device is determined Raw failure.
The possible implementation of with reference to first aspect the first, in second of possible implementation of first aspect In, further includes: the controller receives the third message that the forwarding device is sent, and the third message carries T3;It is described Controller obtains T3 from the third message, and the T3 indicates that the forwarding device receives the target device returns second At the time of IP packet, or at the time of the instruction forwarding device sends the third message to the controller, wherein described The source IP address of second IP packet is the IP address of the target device, and the purpose IP address of second IP packet is described turns Send out the IP address of equipment;The controller determines from the forwarding device to the target device, returns the forwarding device The second time delay, second time delay is the difference of the T3 and the T2;Alternatively, the controller is determining that the controller exists After being not received by the third message that the forwarding device is sent in second time period P2, the forwarding device is determined Network failure between the target device, the P2 are greater than the P1.
The possible implementation of second with reference to first aspect, in the third possible implementation of first aspect In, further includes: the controller records T4, at the time of the T4 indicates that the controller receives the third message;The control Device processed determines the third time delay from the forwarding device to the controller, and the third time delay is the T4 and the T3 Difference;And/or the controller is determined from the sending first message to the 4th time delay for receiving the third message, the described 4th Time delay is the difference of the T4 and the T1.
With reference to first aspect or first aspect the first to the third any possible implementation, in first aspect The 4th kind of possible implementation in, the first message is that the expanded packet of open flows OpenFLow agreement goes out Packet- Out message, the extension Packet-Out message include the type of action value;And/or the first IP packet carrying is because of spy Net Internet Control Message Protocol ICMP echoes request message, and the ICMP echo request is that Ping is requested.
With reference to first aspect or first aspect the first to the 4th kind of any possible implementation, in first aspect The 5th kind of possible implementation in, the third message is that the expanded packet of OpenFlow agreement enters Packet-In message, It include timestamp field in the extension Packet-In message, the timestamp field is for carrying a time information;With/ Or the second IP packet carrier Internet Internet Control Message Protocol icmp echo reply message, the icmp echo reply are Ping Response.
With reference to first aspect or first aspect the first to the 5th kind of any possible implementation, in first aspect The 6th kind of possible implementation in, the extension Packet-In message specifically further includes reason reason field, described The value of reason field, which is used to indicate in the extension Packet-In message, carries timestamp.
To solve the above-mentioned problems, second aspect of the embodiment of the present invention provides a kind of for method getparms, comprising: What the forwarding device received that the controller sends is packaged with the first message of the first Internet protocol IP packet, and parses institute First message is stated, type of action value is obtained, the type of action value is used to indicate the forwarding device and receives the first message Afterwards, first IP packet is obtained by decapsulation, and first IP packet is replicated to obtain two parts of the first IP Message sends first part in two part of first IP packet to the target device direction, by described two part first Second part in IP packet is passed back to the controller;The forwarding device obtains first IP packet, institute by decapsulation The source IP address for stating the first IP packet is the IP address of the forwarding device, and the purpose IP address of first IP packet is target The IP address of equipment, the target device are other forwarding devices or the application server in addition to the forwarding device;Institute It states forwarding device and replicates first IP packet, and be encapsulated in the second message and be sent to the controller, described second T2 is carried in message, at the time of the T2 indicates that the forwarding device receives the first message, or the instruction forwarding is set At the time of the standby transmission second message to the controller;The forwarding device sends the first IP to the target device Message.
In the first possible implementation of the second aspect, further includes: the forwarding device receives the target and sets Standby the second IP packet returned, the source IP address of second IP packet are the IP address of the target device, the IP packet Purpose IP address be the forwarding device IP address;The forwarding device is by second IP packet, and third disappears in encapsulation Breath, is sent to the controller, and T3 is carried in the third message, and the T3 indicates that the forwarding device receives the target and sets At the time of standby the second IP packet returned, or the instruction forwarding device to the controller send the third message when It carves.
In conjunction with the possible implementation of the first of second aspect or second aspect, second in second aspect may Implementation in, the first message is that the expanded packet of open flows OpenFLow agreement goes out Packet-Out message, described Extending Packet-Out message includes the type of action value;And/or the first IP packet carrier Internet control message association It discusses ICMP and echoes request message, the ICMP echo request is that Ping is requested.
In conjunction with the first of second aspect or second aspect to second of any possible implementation, in second aspect The third possible implementation in, the third message is that the expanded packet of OpenFlow agreement enters Packet-In message, It include timestamp field in the extension Packet-In message, the timestamp field is for carrying a time information;With/ Or the second IP packet carrier Internet Internet Control Message Protocol icmp echo reply message, the icmp echo reply are Ping Response.
In conjunction with the first of second aspect or second aspect to the third any possible implementation, in second aspect The 4th kind of possible implementation in, the extension Packet-In message specifically further includes reason reason field, described The value of reason field, which is used to indicate in the extension Packet-In message, carries timestamp.
To solve the above-mentioned problems, the third aspect of the embodiment of the present invention provides a kind of controller, comprising: acquiring unit is used In obtaining the first Internet protocol IP packet, the source IP address of first IP packet is the IP address of the forwarding device, institute The purpose IP address for stating the first IP packet is the IP address of target device, and the target device is in addition to the forwarding device Other forwarding devices or application server;Encapsulation unit, it is described for first IP packet to be encapsulated in first message First message includes type of action value, and the type of action value is used to indicate after the forwarding device receives the first message, First IP packet is obtained by decapsulation, and first IP packet is replicated to obtain two parts of the first IP reports Text sends first part in two part of first IP packet to the target device direction, by two part of the first IP Second part in message is passed back to the controller;Communication unit, for sending the first message to the forwarding device; Processing unit, for recording T1, at the time of the T1 indicates that the controller sends the first message.
In the first possible implementation of the third aspect, further includes: the communication unit receives the forwarding The second message that equipment is sent, the second message carry T2, then the processing unit acquisition T2, described in the T2 instruction At the time of forwarding device receives the first message, or the instruction forwarding device sends described second to the controller and disappears At the time of breath;The processing unit determines that the first time delay from the controller to the forwarding device, first time delay are The difference of the T2 and the T1;Alternatively, the communication unit is determining that the communication unit do not connect in first time period P1 After receiving the second message that the forwarding device is sent, the processing unit is determined between the controller and the forwarding device Control channel break down.
In conjunction with the first possible implementation of the third aspect, in second of possible implementation of the third aspect In, further includes: the communication unit receives the third message that the forwarding device is sent, and the third message carries T3, then The processing unit obtains the T3, and the T3 indicates that the forwarding device receives the second IP packet that the target device returns At the time of, or at the time of the instruction forwarding device sends the third message to the controller;Second IP packet Source IP address be the target device IP address, the purpose IP address of second IP packet is the IP of the forwarding device Address;The processing unit determine from the forwarding device to the target device, return the second of the forwarding device when Prolong, second time delay is the difference of the T3 and the T2;Alternatively, the communication unit is determining the communication unit second After being not received by the third message that the forwarding device is sent in period P2, the processing unit determines described Network failure between forwarding device and the target device, the P2 are greater than the P1.
In conjunction with second of possible implementation of the third aspect, in the third possible implementation of the third aspect In, further includes: the processing unit records T4, at the time of the T4 indicates that the controller receives the third message;It is described Processing unit determines the third time delay from the forwarding device to the controller, and the third time delay is the T4 and the T3 Difference;And/or the processing unit is determined from the first message is issued to the 4th time delay for receiving the third message, it is described 4th time delay is the difference of the T4 and the T1.
In conjunction with the first of the third aspect or the third aspect to the third any possible implementation, in the third aspect The 4th kind of possible implementation in, the first message is that the expanded packet of open flows OpenFLow agreement goes out Packet- Out message, the extension Packet-Out message include the type of action value;And/or
The first IP packet carrier Internet Internet Control Message Protocol ICMP echoes request message, the ICMP echo request For Ping request.
In conjunction with the first of the third aspect or the third aspect to the 4th kind of any possible implementation, in the third aspect The 5th kind of possible implementation in, the third message is that the expanded packet of OpenFlow agreement enters Packet-In message, It include timestamp field in the extension Packet-In message, the timestamp field is for carrying a time information;With/ Or the second IP packet carrier Internet Internet Control Message Protocol icmp echo reply message, the icmp echo reply are Ping Response.
In conjunction with the first of the third aspect or the third aspect to the 5th kind of possible implementation, the of the third aspect In six kinds of possible implementations, the extension Packet-In message specifically further includes reason reason field, the Reason The value of field, which is used to indicate in the extension Packet-In message, carries timestamp.
To solve the above-mentioned problems, fourth aspect of the embodiment of the present invention provides a kind of forwarding device, comprising: receiving unit, The first message sent for receiving the controller;Resolution unit obtains type of action for parsing the first message Value, the type of action value are used to indicate after the forwarding device receives the first message, obtain first mutually by decapsulation Networking protocol IP packet, and first IP packet is replicated to obtain two parts of first IP packets, by described two part First part in one IP packet sends to the target device direction, and second part in two part of first IP packet is returned Give the controller;Decapsulation unit, for obtaining first IP packet, the source of first IP packet by decapsulation IP address is the IP address of the forwarding device, and the purpose IP address of first IP packet is the IP address of target device, institute Stating target device is other forwarding devices or the application server in addition to the forwarding device;Copied cells, for institute The first IP packet is stated to be replicated to obtain two parts of first IP packets;Encapsulation unit is used for two part of first IP packet In second part be encapsulated in the second message, carry T2 in the second message, the T2 indicates that the forwarding device is received At the time of to the first message, or at the time of the instruction forwarding device sends the second message to the controller; Transmission unit, for sending first part of message in two part of first IP packet to the target device and to the controller Send the second message.
In the first possible implementation of the fourth aspect, further includes: the receiving unit receives the target and sets Standby the second IP packet returned;The source IP address of second IP packet is the IP address of the target device, the IP packet Purpose IP address be the forwarding device IP address;The encapsulation unit is by second IP packet, and third disappears in encapsulation It ceases, T3 is carried in the third message, the T3 indicates that the forwarding device receives the 2nd IP report that the target device returns At the time of literary, or at the time of the instruction forwarding device sends the third message to the controller;The transmission unit The controller is sent by the third message.
In conjunction with the possible implementation of the first of fourth aspect or fourth aspect, second in fourth aspect may Implementation in, the first message is that the expanded packet of open flows OpenFLow agreement goes out Packet-Out message, described Extending Packet-Out message includes the type of action value;And/or the first IP packet carrier Internet control message association It discusses ICMP and echoes request message, the ICMP echo request is that Ping is requested.
In conjunction with the first of fourth aspect or fourth aspect to second of any possible implementation, in fourth aspect The third possible implementation in, the third message is that the expanded packet of OpenFlow agreement enters Packet-In message, It include timestamp field in the extension Packet-In message, the timestamp field is for carrying a time information;With/ Or the second IP packet carrier Internet Internet Control Message Protocol icmp echo reply message, the icmp echo reply are Ping Response.
In conjunction with the first of fourth aspect or fourth aspect to the third any possible implementation, in fourth aspect The 4th kind of possible implementation in, the extension Packet-In message specifically further includes reason reason field, described The value of reason field, which is used to indicate in the extension Packet-In message, carries timestamp.
To solve the above-mentioned problems, the 5th aspect of the embodiment of the present invention provides a kind of for system getparms, application Isolated network is forwarded in control, comprising: controller and forwarding device, the controller are controller described in the third aspect; The forwarding device is forwarding device described in fourth aspect.
The embodiment of the present invention obtains the first IP packet by controller, and first IP packet is encapsulated in first message In, and the first message is sent to the forwarding device, wherein the first message includes type of action value, the movement Types value is used to indicate after the forwarding device receives the first message, obtains first IP packet by decapsulation, and First IP packet is replicated to obtain two parts of first IP packets, by first part in two part of first IP packet It is sent to the target device direction, second part in two part of first IP packet is passed back to the controller;Institute Controller record T1 is stated, at the time of the T1 indicates that the controller sends the first message.Help can be used for Parameter needed for carrying out time delay detection, to accurately calculate time delay and judge failure.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application can also be obtained according to these attached drawings other for those of ordinary skill in the art Attached drawing.
Fig. 1 is a kind of networking schematic diagram getparms of the embodiment of the present invention;
Fig. 2 is a kind of flow diagram for method getparms in the embodiment of the present invention;
Fig. 3 is the flow diagram that another in the embodiment of the present invention is used for method getparms;
Fig. 4 is a kind of structural schematic diagram of controller of the embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of forwarding device of the embodiment of the present invention;
Fig. 6 is a kind of schematic diagram for system getparms of the embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of controller of the embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of forwarding device of the embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawing with embodiment to this Inventive embodiments are described in further detail.Obviously, described embodiments are some of the embodiments of the present invention, rather than complete The embodiment in portion.Based on the embodiments of the present invention, those of ordinary skill in the art are without making creative work All other embodiment obtained, shall fall within the protection scope of the present invention.
Before introducing technical solution of the embodiment of the present invention, first the concrete application scene of the embodiment of the present invention is explained Explanation.
Referring to Figure 1, it is the networking schematic diagram of the embodiment of the present invention, applies and forwarding isolated SDN network based on control The middle scene for needing to perceive time delay, including controller, forwarding device and target device, for example, being routed for Ping and tracking The network levels such as Traceroute operation management maintainance (Operation Administration and Maintenance, OAM) Message issues inspection by controller to detect the accessibility and delay between the forwarding device and the target device Text is observed and predicted to the forwarding device, re-sends to the target device, backhaul is also equally that the forwarding device receives the mesh After the detection response message that marking device is sent back to, then on send the controller to handle.The forwarding device and the target device it Between can be directly connected, be also possible to by several other forwarding devices be connected.The target device can be forwarding and set The standby network equipments such as (such as interchanger, router), application server, the target device can receive the control of the controller System, can not also receive the control of the controller.
It is worth noting that the networking schematic diagram of the embodiment of the present invention is only used for schematically illustrating an application of the invention Scene is not regarded as the limitation to the embodiment of the present invention.
The detail of the OpenFlow protocol specification involved in description of the embodiment of the present invention please refers to ONF publication " open flow switch specification " version 1.x (OpenFlow Switch Specification 1.x).
Embodiment one
Referring to FIG. 2, showing flow diagram of the embodiment of the present invention for method getparms, this method application Isolated network is forwarded in control, it includes controller and forwarding device, the controller control that the control, which forwards isolated network, Make the forwarding device.This method comprises:
201, the controller obtains the first Internet protocol IP (Internet Protocol) message, the first IP The source IP address of message is the IP address of the forwarding device, and the purpose IP address of first IP packet is the IP of target device Address, the target device are other forwarding devices or the application server in addition to the forwarding device.
Specifically, the controller obtains the mode of the first IP packet, and can be the controller is the forwarding device First IP packet is constructed, is also possible to the controller and receives first IP packet that the network equipment is sent, it is described First IP packet is formed by the Network Device Construction, and the network equipment can be other controls in addition to the controller Management equipment or application server.
Optionally, the first IP packet carrier Internet Internet Control Message Protocol ICMP (Internet Control Message Protocol) echo request message, the ICMP echo request is that Ping is requested.
202, first IP packet is encapsulated in first message by the controller, and sends the first message to institute State forwarding device, wherein the first message includes type of action value, and the type of action value is used to indicate the forwarding device After receiving the first message, first IP packet is obtained by decapsulation, and replicate to first IP packet To two parts of first IP packets, first part in two part of first IP packet is sent out to the target device direction It goes, second part in two part of first IP packet is passed back to the controller.
Optionally, the first message is that the expanded packet of open flows OpenFLow agreement goes out Packet-Out message, institute Stating extension Packet-Out message includes the type of action value.For example, can be defined in OpenFlow protocol specification In the existing type of action value of Packet-Out message, increase a new type of action value, as follows, in ofp_ Action_type increase OFPAT_RETURN_COPY type, be used to indicate by the message of the Packet-Out message bearing into Row duplication obtains two parts of messages, first part of lookup flow table in two parts of messages is normally forwarded, by described two Second part in part message is encapsulated in Packet-In message and is transmitted back to the controller.
203, the controller records T1, at the time of the T1 indicates that the controller sends the first message.
Further, this method further include:
204, the controller receives the second message that the forwarding device is sent, and the second message carries T2, goes forward side by side First time-delay calculation or breakdown judge of the row from the controller to the forwarding device.
Specifically,
2041, the controller receives the second message that the forwarding device is sent, then obtains T2, and the T2 indicates institute At the time of stating forwarding device and receive the first message, or the instruction forwarding device sends described second to the controller At the time of message;
The controller determines that first time delay from the controller to the forwarding device, first time delay are The difference of the T2 and the T1.
If T2 is at the time of indicating that the forwarding device receives the first message, first time delay includes from institute State controller to the forwarding device the control channel delivery time.
If T2 is at the time of indicating that the forwarding device sends the second message to the controller described first Time delay includes from the controller to the forwarding device, and in the time of the forwarding device inter-process.
Alternatively,
2042, the controller is determining that the controller is not received by the forwarding device in first time period P1 After the second message sent, it is determined that the control channel between the controller and the forwarding device breaks down.Institute Stating first time period P1 is a time value, for identifying a period of time, can rule of thumb be set, such as 10 seconds.
Optionally, the second message is that the expanded packet of OpenFlow agreement enters Packet-In message, the extension It include timestamp field in Packet-In message, the timestamp field is for carrying a time information.For example, can be Increase a timestamp field in the Packet-In message that OpenFlow protocol specification defines, as follows, in ofp_ In packet_in structural body increase by one 32 without symbol shaping variable timeStamp, for carrying a time information, Such as the T2.
Further, optionally, the extension Packet-In message specifically further includes reason reason field, described The value of reason field, which is used to indicate in the extension Packet-In message, carries timestamp.For example, to described The definition of reason field of the reason of Packet-In message is extended, and increases OFPR_ in ofp_packet_in_reason TIME_STAMP type.
Further, this method further include:
205, the controller receives the third message that the forwarding device is sent, and the third message carries T3, goes forward side by side Row is from the forwarding device to the target device, the calculating for the second time delay for returning the forwarding device, or carries out institute State the breakdown judge between forwarding device and the target device.
Specifically,
2051, the controller receives the third message that the forwarding device is sent, then obtains T3, and the T3 indicates institute At the time of stating forwarding device and receive the second IP packet that the target device returns, or the instruction forwarding device is to the control At the time of device processed sends the third message;The source IP address of second IP packet is the IP address of the target device, institute The purpose IP address for stating the second IP packet is the IP address of the forwarding device;
The controller determines from the forwarding device to the target device, returns described the of the forwarding device Two time delays, second time delay are the difference of the T3 and the T2.
If T3 indicates that the forwarding device receives the second IP packet that the target device returns, described the Two time delays include from the controller to the forwarding device, again to the target device, return the forwarding device when Between.
If T3 indicates that the forwarding device sends the third message to the controller, when described second Prolong including from the controller to the forwarding device, again to the target device, return time of the forwarding device, with And the time in the forwarding device inter-process.
2052, the controller is determining that the controller is not received by the forwarding device in second time period P2 After the third message sent, it is determined that the network failure between the forwarding device and the target device, it is described P2 is greater than the P1.The second time period P2 is a time value, for mark a period of time, can rule of thumb be set, Such as 20 seconds.
At this point, the network failure can be on from the forwarding device to the two-way approach the target device Link breaks down and/or nodes break down.
Optionally, second IP packet carries icmp echo reply message, and the icmp echo reply is Ping response.
Optionally, the third message is the extension Packet-In message of OpenFlow agreement, the extension Packet- It include timestamp field in In message, the timestamp field is for carrying a time information.
Further, optionally, the extension Packet-In message specifically further includes reason reason field, described The value of reason field, which is used to indicate in the extension Packet-In message, carries timestamp.
It is worth noting that the third message and the second message are all based on to the OpenFlow protocol specification The specific message instance that the Packet-In message format of definition is extended, obtains, detailed trellis expansion description, please refers to To the corresponding portion that the second message is described, details are not described herein.
Further, this method further include:
206, the controller records T4, at the time of the T4 indicates that the controller receives the third message;
The controller determines the third time delay from the forwarding device to the controller, and the third time delay is described The difference of T4 and the T3;And/or
The controller is determining from the sending first message to the 4th time delay for receiving the third message, and the described 4th Time delay is the difference of the T4 and the T1.
Further, different phase can also can be presented to user according to the complete moment of record in the embodiment of the present invention Time delay and connectivity.For example, the IP address of target device is 10.3.1.2, FP1 is the forwarding device, on the controller Ping operation is carried out, the controller can be set to the forwarding device, again from the target device back to the forwarding Time that is standby, arriving each stage cost of the controller again all shows that display format is as follows:
It further illustrates, all in the embodiment of the present invention are not limited to lift for example, a kind of only signal Format and pattern described in example.
The acquisition methods of parameter needed for the time delay detection that the embodiment of the present invention one provides, by described in controller acquisition First IP packet is encapsulated in first message, is sent on the forwarding device by the first IP packet, and records and send institute State the T1 of first message;It receives the second message that the forwarding device is sent and obtains T2;Receive that the forwarding device sends the The method that three message obtain T3 and T4 helps to accurately calculate time delay in isolated network forwarding based on control, and according to being It is no to receive the second message and the third message judges network failure position.
Embodiment two
Referring to FIG. 3, showing the embodiment of the present invention, another is used for the flow diagram of method getparms, the party Method is applied to control and forwards isolated network, and the isolated network of the control forwarding includes controller and forwarding device, and described turn Hair equipment receives the control of the controller, comprising:
301, the forwarding device receives be packaged with the first Internet protocol IP packet first that the controller is sent Message, and the first message is parsed, type of action value is obtained, the type of action value is used to indicate the forwarding device and receives After the first message, first IP packet is obtained by decapsulation, and replicated to obtain two to first IP packet Part first IP packet, first part in two part of first IP packet is sent to the target device direction, will Second part in two part of first IP packet is passed back to the controller.
The first message, first IP packet in the present embodiment, please refer to and describe accordingly in embodiment one, This is repeated no more.
302, the forwarding device obtains first IP packet, the source IP address of first IP packet by decapsulation For the IP address of the forwarding device, the purpose IP address of first IP packet is the IP address of target device, the target Equipment is other forwarding devices or the application server in addition to the forwarding device.
303, the forwarding device replicates first IP packet, and is encapsulated in the second message and is sent to the control Device processed carries T2 in the second message, at the time of the T2 indicates that the forwarding device receives the first message, or refers to At the time of showing that the forwarding device sends the second message to the controller.
The second message in the present embodiment, please refers to and describes accordingly in embodiment one, details are not described herein.
304, the forwarding device sends first IP packet to the target device.
Further, optionally, further includes:
305, the forwarding device receives the second IP packet that the target device returns, the source IP of second IP packet Address is the IP address of the target device, and the purpose IP address of the IP packet is the IP address of the forwarding device.
306, for the forwarding device by second IP packet, third message in encapsulation is sent to the controller, described Carry T3 in third message, the T3 indicate the forwarding device receive the second IP packet that the target device returns when At the time of carving, or indicate that the forwarding device sends the third message to the controller.
The third message, second IP packet in the present embodiment, please refer to and describe accordingly in embodiment one, This is repeated no more.
The embodiment of the present invention two is packaged with the first IP packet by what the forwarding device received that the controller sends First message parses the first message, obtains type of action value;First IP packet is obtained by decapsulation;Duplication institute The first IP packet is stated, and is encapsulated in the second message and is sent to the controller, the T2 is carried in the second message; The mode that first IP packet is sent to the target device helps to accurately calculate time delay and judges failure.
Embodiment three,
Referring to FIG. 4, one embodiment of the present of invention provides a kind of controller 400, the control of controller 400 forwarding is set It is standby, it applies and is forwarded in control in isolated network, comprising:
Acquiring unit 401, for obtaining the first IP packet, the source IP address of first IP packet is the forwarding device IP address, the purpose IP address of first IP packet is the IP address of target device, and the target device is turned except described Send out the other forwarding devices or application server other than equipment;
Encapsulation unit 402, for first IP packet to be encapsulated in first message, the first message includes movement Types value, the type of action value are used to indicate after the forwarding device receives the first message, obtain institute by decapsulation The first IP packet is stated, and first IP packet is replicated to obtain two parts of first IP packets, by described two part first First part in IP packet sends to the target device direction, by second part of loopback in two part of first IP packet To the controller;
Communication unit 403, for sending the first message to the forwarding device;
Processing unit 404, for recording T1, at the time of the T1 indicates that the controller sends the first message.
Further, optionally, the controller further include:
The communication unit 403 receives the second message that the forwarding device is sent, and the second message carries T2, described Processing unit 404 carries out the first time-delay calculation or breakdown judge from the controller to the forwarding device.
Specifically,
The communication unit 403 receives the second message that the forwarding device is sent, then the processing unit 404 obtains T2 at the time of the T2 indicates that the forwarding device receives the first message, or indicates the forwarding device to the control At the time of device processed sends the second message;
Determining first time delay from the controller to the forwarding device of the processing unit 404, described first Time delay is the difference of the T2 and the T1.
Alternatively,
The communication unit 403 is determining that the controller is not received by the forwarding device in first time period P1 The second message of transmission, then the processing unit 404 determines the control channel hair between the controller and the forwarding device Raw failure.
The first message, the second message, first IP packet, the T2 and the P1 in the present embodiment, It please refers to and is described accordingly in embodiment one, details are not described herein.
Further, optionally, the controller further include:
The communication unit 403 receives the third message that the forwarding device is sent, and the third message carries T3, described Processing unit 404 is carried out from the forwarding device to the target device, the meter for the second time delay for returning the forwarding device It calculates, or carries out the breakdown judge between the forwarding device and the target device.
Specifically,
The communication unit 403 receives the third message that the forwarding device is sent, then the processing unit 404 obtains At the time of T3, the T3 indicate that the forwarding device receives the second IP packet that the target device returns, or described in instruction At the time of forwarding device sends the third message to the controller;The source IP address of second IP packet is the target The IP address of equipment, the purpose IP address of second IP packet are the IP address of the forwarding device;
The processing unit 404 determines from the forwarding device to the target device, returns the forwarding device Second time delay, second time delay are the difference of the T3 and the T2.
Alternatively,
The communication unit 403 is determining that the controller is not received by the forwarding device in second time period P2 After the third message sent, the processing unit 404 is determined between the forwarding device and the target device Network failure.The P2 is greater than the P1.
At this point, the network failure can be on from the forwarding device to the two-way approach the target device Link breaks down and/or nodes break down.
The third message, second IP packet, the T3 and the P2 in the present embodiment, please refer to embodiment one In describe accordingly, details are not described herein.
Further, optionally, the controller further include:
The processing unit 404 records the T4 for receiving the third message, and it is described that the T4 indicates that the controller receives At the time of third message;
The processing unit 404 determines the third time delay from the forwarding device to the controller, the third time delay It is the difference of the T4 and the T3;And/or
The processing unit 404 is determined from the first message is issued to the 4th time delay for receiving the third message, institute State the difference that the 4th time delay is the T4 and the T1.
It is worth noting that each functional unit for the control equipment that the embodiment of the present invention three provides, is based on embodiment one The specific implementation of the method for offer, the definition of term and explanation are consistent with embodiment one, and details are not described herein again.
The embodiment of the present invention three provides a kind of controller, obtains the first IP packet by acquiring unit 401;It is single by encapsulation First IP packet is encapsulated in first message by member 402, and the first message includes type of action value;Pass through communication unit 403 send in the first message to the forwarding device;404 records send the T1 of the first message through the processing unit, Help to accurately calculate time delay, and judges network failure position.
Example IV,
Referring to FIG. 5, one embodiment of the present of invention provides a kind of forwarding device 500, the forwarding device 500 is controlled Device is controlled, and is applied and is forwarded in isolated network in control, comprising:
Receiving unit 501, the first message sent for receiving the controller;
Resolution unit 502 obtains type of action value, the type of action value is for referring to for parsing the first message After showing that the forwarding device receives the first message, the first IP packet is obtained by decapsulation, and to first IP packet It is replicated to obtain two parts of first IP packets, by first part in two part of first IP packet to the target device side To sending, second part in two part of first IP packet is passed back to the controller;
Decapsulation unit 503, for obtaining first IP packet by decapsulating, the source IP of first IP packet Location is the IP address of the forwarding device, and the purpose IP address of first IP packet is the IP address of target device, the mesh Marking device is other forwarding devices or the application server in addition to the forwarding device;
Copied cells 504 obtain two parts of first IP packets for being replicated to first IP packet;
Encapsulation unit 505, for second part in two part of first IP packet to be encapsulated in the second message, institute It states and carries T2 in second message, at the time of the T2 indicates that the forwarding device receives the first message, or described in instruction At the time of forwarding device sends the second message to the controller;
Transmission unit 506, for sent to the target device first part of message in two part of first IP packet and The second message is sent to the controller.
The first message, the second message, first IP packet and the T2 in the present embodiment, please refer to reality It applies and is described accordingly in example one, details are not described herein.
Further, optionally, the forwarding device further include:
The receiving unit 501 receives the second IP packet that the target device returns, the source IP of second IP packet Address is the IP address of the target device, and the purpose IP address of the IP packet is the IP address of the forwarding device;
The encapsulation unit 503 is by second IP packet, third message in encapsulation, carries T3 in the third message, At the time of the T3 indicates that the forwarding device receives the second IP packet that the target device returns, or the instruction forwarding At the time of equipment sends the third message to the controller;
The third message is sent the controller by the transmission unit 506.
The third message, second IP packet and the T3 in the present embodiment please refer to corresponding in embodiment one Description, details are not described herein.
It is worth noting that each functional unit for the forwarding device that the embodiment of the present invention four provides, is based on embodiment two The specific implementation of the method for offer, the definition of term and explanation are consistent with embodiment two, and details are not described herein again.
The embodiment of the present invention four provides a kind of forwarding device, receives that the controller is sent by receiving unit 501 One message;The first message is parsed by resolution unit 502, obtains type of action value;Institute is obtained by decapsulation unit 503 State the first IP packet;First IP packet is replicated by copied cells 504 to obtain two parts of first IP packets;It is logical It crosses encapsulation unit 505 second part in two part of first IP packet is encapsulated in the second message, the second message It is middle to carry the T2;First part in two part of first IP packet is sent to the target device by transmission unit 506 to report Text and the second message is sent to the controller, helps to accurately calculate time delay and judge failure.
Embodiment five,
Referring to FIG. 6, one embodiment of the present of invention provides one kind for system getparms, it is applied to control forwarding Isolated network, comprising: controller 601 and forwarding device 602;
The controller 601, comprising:
Controller described in embodiment three;
The forwarding device 602, comprising:
Forwarding device described in example IV.
It is worth noting that each functional unit of controller and forwarding device that the embodiment of the present invention five provides, is to be based on The combination of three to four device of specific implementation and embodiment for the method that embodiment one to two provides, the definition of term and asking for solution Topic is consistent with embodiment one to four, and details are not described herein again.
The system that the embodiment of the present invention five provides, the controller described by embodiment three and example IV description The combination of the forwarding device realizes by extending Packet-In and Packet-Out message and collects detection messages in network When middle transmission at the time of each stage, to help to accurately calculate time delay and judge failure.
Embodiment six,
Referring to FIG. 7, one embodiment of the present of invention provides a kind of controller 700, which can be micro process Computer.Such as: the controller 700 can be the portable equipments such as general purpose computer, customization machine, mobile phone terminal or purl machine One of.The controller 700 includes: processor 704, memory 706, communication interface 702 and bus 708.Processor 704, Memory 706 and communication interface 702 connect by bus 708 and complete mutual communication.
The bus 708 can be industry standard architecture (Industry Standard Architecture, abbreviation For ISA) bus or external equipment interconnection (Peripheral Component, referred to as PCI) bus or extension industrial standard body Architecture (Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus can be with Including one of address bus, data/address bus, control bus or a variety of.For convenient for indicating, only with a thick line table in Fig. 7 Show, it is not intended that an only bus or a type of bus.
For memory 706 for storing executable program code, which includes computer operation instruction.Work as controller When 700 execution program code, the controller 700 can complete step 201~206 of embodiment one, and reality also may be implemented The institute for applying controller 400 described in example three is functional.Memory 706 may include high-speed RAM (Ramdom Access Memory) memory.Optionally, memory 706 can also include nonvolatile memory (non-volatile memory). Such as memory 706 may include magnetic disk storage.
Processor 704 can be central processing unit (Central Processing Unit, referred to as CPU), or processing Device 704 can be specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), Or processor 704 can be arranged to implement one or more integrated circuits of the embodiment of the present invention.
Processor 704, for reading the instruction stored in memory 706, thereby executing in embodiment one and embodiment three It obtains the first IP packet, first IP packet is encapsulated in first message and is recorded the behaviour for sending the T1 of the first message Make.
Communication interface 702, for execute sent in embodiment one and embodiment three first message to it is described forwarding set Standby upper operation.
Optionally, the communication interface 702 is also used to receive the second message that the forwarding device is sent.
Optionally, processor 704 is also used to obtain T2, when determining from the controller first to the forwarding device Prolong;Or determine that the control channel between the controller and the forwarding device breaks down.
Optionally, the communication interface 702 is also used to receive the third message that the forwarding device is sent.
Optionally, processor 704 is also used to obtain T3, determines from the forwarding device to the target device, returns Second time delay of the forwarding device;Or determine that event occurs for the network between the forwarding device and the target device Barrier.
Optionally, processor 704 is also used to record the T4 for receiving the third message, determines from the forwarding device to institute The third time delay of controller is stated, and/or from the first message is issued to the 4th time delay for receiving the third message.
The first message, the second message, the third message, first IP packet, institute in the present embodiment T2 and the T3 are stated, please refers to and is described accordingly in embodiment one, details are not described herein.
It is worth noting that each functional unit for the control equipment that the embodiment of the present invention six provides, can be based on implementation The specific implementation of function that the device that the method and embodiment three that example one provides provide has, the definition of term and explanation with it is real It applies example one and embodiment three is consistent, details are not described herein again.
The embodiment of the present invention six provides a kind of controller, and by obtaining the first IP packet, first IP packet is encapsulated It in first message, sends in the first message to the forwarding device, record sends the T1 of the first message, facilitates Time delay is accurately calculated, and judges network failure position.
Embodiment seven,
Referring to FIG. 8, one embodiment of the present of invention provides a kind of forwarding device 800, which can be micro- Handle computer.Such as: the network equipment 800 can be general purpose computer, customization machine, mobile phone terminal or purl machine etc. just Take one of equipment.The forwarding device 800 includes: processor 804, memory 806, communication interface 802 and bus 808.Place Reason device 804, memory 806 and communication interface 802 connect by bus 808 and complete mutual communication.
The bus 808 can be industry standard architecture (Industry Standard Architecture, abbreviation For ISA) bus or external equipment interconnection (Peripheral Component, referred to as PCI) bus or extension industrial standard body Architecture (Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus can be with It is divided into one of address bus, data/address bus, control bus or a variety of.For convenient for indicating, only with a thick line table in Fig. 8 Show, it is not intended that an only bus or a type of bus.
For memory 806 for storing executable program code, which includes computer operation instruction.When forwarding is set When standby 800 execution program code, the forwarding device 800 can complete step 301~306 of embodiment two, can also be real The institute of forwarding device 500 described in current embodiment four is functional.Memory 806 may include high-speed RAM (Ramdom Access Memory) memory.Optionally, memory 806 can also further include nonvolatile memory (non-volatile memory).Such as memory 806 may include magnetic disk storage.
Processor 804 can be a central processing unit (Central Processing Unit, referred to as CPU), or Be processor 804 can with specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC) or processor 804 can be arranged to implement one or more integrated circuits of the embodiment of the present invention.
Communication interface 802, what the reception controller for executing in embodiment two and example IV was sent first disappears Breath, Xiang Suoshu target device send first part of message in two part of first IP packet and send described the to the controller The operation of two message.
Processor 804, for reading the instruction stored in memory 806, thereby executing in embodiment two and example IV It parses the first message, obtain type of action value, first IP packet is obtained by decapsulation, to first IP packet It is replicated to obtain two parts of first IP packets, second part in two part of first IP packet is encapsulated in described second and is disappeared Operation in breath.
Optionally, the communication interface 802 is also used to receive the second IP packet that the target device returns.
Optionally, the processor 804 is also used to second IP packet, third message in encapsulation.
Optionally, the communication interface 802 is also used to send the controller for the third message.
The first message, the second message, the third message, first IP packet and institute in the present embodiment The second IP packet is stated, please refers to and is described accordingly in embodiment one, details are not described herein.
It is worth noting that each functional unit for the control equipment that the embodiment of the present invention seven provides, can be based on implementation The specific implementation of function that the device that the method and example IV that example two provides provide has, the definition of term and explanation with it is real It applies example two and example IV is consistent, details are not described herein again.
The forwarding device that the embodiment of the present invention seven provides, the first message sent by receiving the controller;Parsing institute First message is stated, type of action value is obtained;Decapsulation obtains first IP packet;First IP packet replicate To two parts of first IP packets;Second part in two part of first IP packet is encapsulated in the second message, it is described The T2 is carried in second message;First part of message in two part of first IP packet is sent to the target device and to institute It states controller and sends the second message, help to accurately calculate time delay and judge failure.
The present invention program can describe in the general context of computer-executable instructions executed by a computer, such as Program unit.Generally, program unit include routines performing specific tasks or implementing specific abstract data types, it is program, right As, component, data structure etc..The present invention program can also be practiced in a distributed computing environment, in these distributed computings In environment, by executing task by the connected remote processing devices of communication network.In a distributed computing environment, program Unit can be located in the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and the highlights of each of the examples are differences from other embodiments.Especially for device reality For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separate part description Unit may or may not be physically separated, component shown as a unit may or may not be Physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to the actual needs Some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying In the case where creative work, it can understand and implement.
The embodiment of the present invention has been described in detail above, and specific embodiment used herein carries out the present invention It illustrates, the above description of the embodiments is only used to help understand the method and apparatus of the present invention;Meanwhile for the one of this field As technical staff, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, to sum up institute It states, the contents of this specification are not to be construed as limiting the invention.

Claims (25)

1. one kind is used for method getparms characterized by comprising
Controller obtains the first Internet protocol IP packet, and the source IP address of first IP packet is the IP of forwarding device Location, the purpose IP address of first IP packet are the IP address of target device, and the target device is except the forwarding device Other forwarding devices or application server in addition;
First IP packet is encapsulated in first message by the controller, and is sent the first message to the forwarding and set It is standby, wherein the first message includes type of action value, the type of action value be used to indicate the forwarding device receive it is described After first message, first IP packet is obtained by decapsulation, and replicated to obtain two parts of institutes to first IP packet The first IP packet is stated, first part in two part of first IP packet is sent to the target device direction, it will be described Second part in two part of first IP packet is passed back to the controller;
The controller records T1, at the time of the T1 indicates that the controller sends the first message.
2. the method according to claim 1, wherein further include:
The controller receives the second message that the forwarding device is sent, and the second message carries T2;
The controller obtains T2 from the second message, and the T2 indicates that the forwarding device receives the first message Moment, or at the time of the instruction forwarding device sends the second message to the controller;
The controller determines the controller to the first time delay of the forwarding device, and first time delay is the T2 and institute State the difference of T1;
Alternatively,
The controller is in the institute for determining the controller in first time period P1 and being not received by that the forwarding device is sent After stating second message, determine that the control channel between the controller and the forwarding device breaks down.
3. according to the method described in claim 2, it is characterized by further comprising:
The controller receives the third message that the forwarding device is sent, and the third message carries T3;
The controller obtains T3 from the third message, and the T3 indicates that the forwarding device receives the target device and returns At the time of the second IP packet returned, or at the time of the instruction forwarding device sends the third message to the controller, Wherein, the source IP address of second IP packet is the IP address of the target device, the destination IP of second IP packet Location is the IP address of the forwarding device;
The controller determines the second time delay for from the forwarding device to the target device, returning the forwarding device, Second time delay is the difference of the T3 and the T2;
Alternatively,
The controller is in the institute for determining the controller in second time period P2 and being not received by that the forwarding device is sent After stating third message, determine that the network failure between the forwarding device and the target device, the P2 are greater than described P1。
4. according to the method described in claim 3, it is characterized by further comprising:
The controller records T4, at the time of the T4 indicates that the controller receives the third message;
The controller determines the third time delay from the forwarding device to the controller, the third time delay be the T4 and The difference of the T3;And/or
The controller is determined from the first message is issued to the 4th time delay for receiving the third message, the 4th time delay It is the difference of the T4 and the T1.
5. method according to any one of claims 1 to 4, which is characterized in that the first message is open flows OpenFLow The expanded packet of agreement goes out Packet-Out message, and the extension Packet-Out message includes the type of action value;And/or
The first IP packet carrier Internet Internet Control Message Protocol ICMP echoes request message, and the ICMP echo request is Ping request.
6. the method according to claim 3 or 4, which is characterized in that the third message is the extension of OpenFlow agreement It is grouped into Packet-In message, includes timestamp field in the extension Packet-In message, the timestamp field is used for Carry a time information;And/or
The second IP packet carrier Internet Internet Control Message Protocol icmp echo reply message, the icmp echo reply are Ping response.
7. according to the method described in claim 6, it is characterized in that, the extension Packet-In message specifically further includes reason Reason field, the value of the reason field, which is used to indicate in the extension Packet-In message, carries timestamp.
8. one kind is used for method getparms characterized by comprising
What forwarding device received that controller sends is packaged with the first message of the first Internet protocol IP packet, and parses described the One message, obtains type of action value, and the type of action value is used to indicate after the forwarding device receives the first message, leads to It crosses decapsulation and obtains first IP packet, and the first IP message is replicated to obtain two parts of first IP packets, First part in two part of first IP packet is sent to target device direction, it will be in two part of first IP packet Second part is passed back to the controller;
The forwarding device obtains first IP packet by decapsulation, and the source IP address of first IP packet is described turns The IP address of equipment is sent out, the purpose IP address of first IP packet is the IP address of target device, and the target device is to remove Other forwarding devices or application server other than the forwarding device;
The forwarding device replicates first IP packet, and is encapsulated in second message and is sent to the controller, and described the T2 is carried in two message, at the time of the T2 indicates that the forwarding device receives the first message, or the instruction forwarding At the time of equipment sends the second message to the controller;
The forwarding device sends first IP packet to the target device.
9. according to the method described in claim 8, it is characterized by further comprising:
The forwarding device receives the second IP packet that the target device returns, and the source IP address of second IP packet is institute The IP address of target device is stated, the purpose IP address of the IP packet is the IP address of the forwarding device;
For the forwarding device by second IP packet, third message in encapsulation is sent to the controller, the third message At the time of middle carrying T3, the T3 indicate that the forwarding device receives the second IP packet that the target device returns, or refer to At the time of showing that the forwarding device sends the third message to the controller.
10. method according to claim 8 or claim 9, which is characterized in that the first message is open flows OpenFLow agreement Expanded packet go out Packet-Out message, the extension Packet-Out message includes the type of action value;And/or
The first IP packet carrier Internet Internet Control Message Protocol ICMP echoes request message, and the ICMP echo request is Ping request.
11. according to the method described in claim 9, it is characterized in that, the third message is the extension point of OpenFlow agreement Group enters Packet-In message, includes timestamp field in the extension Packet-In message, the timestamp field is for taking One time information of band;And/or
The second IP packet carrier Internet Internet Control Message Protocol icmp echo reply message, the icmp echo reply are Ping response.
12. according to the method for claim 11, which is characterized in that the extension Packet-In message specifically further includes original Because of reason field, the value of the reason field, which is used to indicate in the extension Packet-In message, carries timestamp.
13. a kind of controller characterized by comprising
Acquiring unit, for obtaining the first Internet protocol IP packet, the source IP address of first IP packet is forwarding device IP address, the purpose IP address of first IP packet is the IP address of target device, and the target device is turned except described Send out the other forwarding devices or application server other than equipment;
Encapsulation unit, for first IP packet to be encapsulated in first message, the first message includes type of action value, The type of action value is used to indicate after the forwarding device receives the first message, obtains the first IP by decapsulation Message, and first IP packet is replicated to obtain two parts of first IP packets, it will be in two part of first IP packet First part sent to the target device direction, second part in two part of first IP packet is passed back to the control Device processed;
Communication unit, for sending the first message to the forwarding device;
Processing unit, for recording T1, at the time of the T1 indicates that the controller sends the first message.
14. controller according to claim 13, which is characterized in that further include:
The communication unit receives the second message that the forwarding device is sent, and the second message carries T2, then the place It manages unit and obtains the T2, turn at the time of the T2 indicates that the forwarding device receives the first message, or described in instruction At the time of hair equipment sends the second message to the controller;
The processing unit determines the first time delay from the controller to the forwarding device, and first time delay is described The difference of T2 and the T1;
Alternatively,
The communication unit is sent determining the communication unit in first time period P1 and be not received by the forwarding device Second message after, the processing unit determines that the control channel between the controller and the forwarding device breaks down.
15. controller according to claim 14, which is characterized in that further include:
The communication unit receives the third message that the forwarding device is sent, and the third message carries T3, then the place Manage unit and obtain the T3, the T3 indicate the forwarding device receive the second IP packet that the target device returns when At the time of carving, or indicate that the forwarding device sends the third message to the controller;The source of second IP packet IP address is the IP address of the target device, and the purpose IP address of second IP packet is the IP of the forwarding device Location;
The processing unit determine from the forwarding device to the target device, return the second of the forwarding device when Prolong, second time delay is the difference of the T3 and the T2;
Alternatively,
The communication unit is sent determining the communication unit in second time period P2 and be not received by the forwarding device The third message after, the processing unit determine the network between the forwarding device and the target device occur therefore Barrier, the P2 are greater than the P1.
16. controller according to claim 15, which is characterized in that further include:
The processing unit records T4, at the time of the T4 indicates that the controller receives the third message;
The processing unit determines the third time delay from the forwarding device to the controller, and the third time delay is the T4 With the difference of the T3;And/or
The processing unit determines from the first message is issued to the 4th time delay for receiving the third message, when the described 4th Prolong be the T4 and the T1 difference.
17. 3 to 16 any controller according to claim 1, which is characterized in that the first message is open flows The expanded packet of OpenFLow agreement goes out Packet-Out message, and the extension Packet-Out message includes the type of action Value;And/or
The first IP packet carrier Internet Internet Control Message Protocol ICMP echoes request message, and the ICMP echo request is Ping request.
18. controller according to claim 15 or 16, which is characterized in that the third message is OpenFlow agreement Expanded packet enters Packet-In message, includes timestamp field, the timestamp field in the extension Packet-In message For carrying a time information;And/or
The second IP packet carrier Internet Internet Control Message Protocol icmp echo reply message, the icmp echo reply are Ping response.
19. controller according to claim 18, which is characterized in that the extension Packet-In message specifically further includes Reason reason field, the value of the reason field, which is used to indicate in the extension Packet-In message, carries the time Stamp.
20. a kind of forwarding device characterized by comprising
Receiving unit, the first message sent for receiving controller;
Resolution unit obtains type of action value, the type of action value is used to indicate described turn for parsing the first message After hair equipment receives the first message, the first Internet protocol IP packet is obtained by decapsulation, and report to the first IP Text is replicated to obtain two parts of first IP packets, by first part in two part of first IP packet to target device direction It sends, second part in two part of first IP packet is passed back to the controller;
Decapsulation unit, for obtaining first IP packet by decapsulation, the source IP address of first IP packet is institute The IP address of forwarding device is stated, the purpose IP address of first IP packet is the IP address of target device, the target device It is other forwarding devices or the application server in addition to the forwarding device;
Copied cells obtain two parts of first IP packets for being replicated to first IP packet;
Encapsulation unit, for second part in two part of first IP packet to be encapsulated in second message, the second message At the time of middle carrying T2, the T2 indicate that the forwarding device receives the first message, or the instruction forwarding device to At the time of the controller sends the second message;
Transmission unit, for sending first part of message in two part of first IP packet to the target device and to the control Device processed sends the second message.
21. forwarding device according to claim 20, which is characterized in that further include:
The receiving unit receives the second IP packet that the target device returns;The source IP address of second IP packet is institute The IP address of target device is stated, the purpose IP address of the IP packet is the IP address of the forwarding device;
The encapsulation unit is by second IP packet, third message in encapsulation, carries T3 in the third message, the T3 refers to At the time of showing that the forwarding device receives the second IP packet that the target device returns, or indicate the forwarding device to institute At the time of stating the controller transmission third message;
The third message is sent the controller by the transmission unit.
22. the forwarding device according to claim 20 or 21, which is characterized in that the first message is open flows The expanded packet of OpenFLow agreement goes out Packet-Out message, and the extension Packet-Out message includes the type of action Value;And/or
The first IP packet carrier Internet Internet Control Message Protocol ICMP echoes request message, and the ICMP echo request is Ping request.
23. forwarding device according to claim 21, which is characterized in that the third message is the expansion of OpenFlow agreement Exhibition is grouped into Packet-In message, includes timestamp field in the extension Packet-In message, the timestamp field use In one time information of carrying;And/or
The second IP packet carrier Internet Internet Control Message Protocol icmp echo reply message, the icmp echo reply are Ping response.
24. forwarding device according to claim 23, which is characterized in that the extension Packet-In message is specifically also wrapped Reason reason field is included, when the value of the reason field is used to indicate to be carry in the extension Packet-In message Between stab.
25. a kind of acquisition system of parameter needed for time delay detection forwards isolated network applied to control, which is characterized in that packet Include: controller and forwarding device, the controller are any controller of claim 13 to 19;The forwarding device is Any forwarding device of claim 20 to 24.
CN201410778050.2A 2014-12-15 2014-12-15 For method getparms, the network equipment and system Active CN105763347B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410778050.2A CN105763347B (en) 2014-12-15 2014-12-15 For method getparms, the network equipment and system
PCT/CN2015/092940 WO2016095611A1 (en) 2014-12-15 2015-10-27 Parameter acquiring method, network device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410778050.2A CN105763347B (en) 2014-12-15 2014-12-15 For method getparms, the network equipment and system

Publications (2)

Publication Number Publication Date
CN105763347A CN105763347A (en) 2016-07-13
CN105763347B true CN105763347B (en) 2019-03-26

Family

ID=56125856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410778050.2A Active CN105763347B (en) 2014-12-15 2014-12-15 For method getparms, the network equipment and system

Country Status (2)

Country Link
CN (1) CN105763347B (en)
WO (1) WO2016095611A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737207A (en) * 2017-04-25 2018-11-02 华为技术有限公司 Propagation delay time detection method, equipment and system
CN113765721B (en) * 2021-09-14 2024-02-09 北京左江科技股份有限公司 Ethernet remote configuration device based on FPGA
CN114726762B (en) * 2022-03-24 2023-11-03 新华三技术有限公司 Time delay measurement method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030947A (en) * 2007-04-29 2007-09-05 华为技术有限公司 Method and apparatus for transmitting message
CN103152223A (en) * 2013-03-15 2013-06-12 华为技术有限公司 Network performance monitoring method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8661116B2 (en) * 2008-12-15 2014-02-25 Verizon Patent And Licensing Inc. Network testing
US8918502B2 (en) * 2011-11-28 2014-12-23 Nec Laboratories America, Inc. FlowSense: light-weight networking sensing with openflow

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030947A (en) * 2007-04-29 2007-09-05 华为技术有限公司 Method and apparatus for transmitting message
CN103152223A (en) * 2013-03-15 2013-06-12 华为技术有限公司 Network performance monitoring method and device

Also Published As

Publication number Publication date
CN105763347A (en) 2016-07-13
WO2016095611A1 (en) 2016-06-23

Similar Documents

Publication Publication Date Title
US10686671B1 (en) Methods, systems, and computer readable media for testing network elements of an in-band network telemetry capable network
CN104852828B (en) A kind of network delay detection method, apparatus and system
CN103401726B (en) Network path detection method and device, system
US8848544B2 (en) Event correlation using network data flow simulation over unmanaged network segments
CN112422498A (en) In-band network remote measuring method, system and computer readable storage medium
CN101778113B (en) Method for detection of RP state in multicast network, device, RP device and multicast system
US20190036802A1 (en) System and method for packet tracing within a packet switching asic
CN107453884A (en) The service quality detection method and device of a kind of network equipment
CN103475654B (en) Network path optimization method, equipment and network system
CN101383822A (en) Router virtual machine for aviation telecommunication network
CN108123824A (en) A kind of network fault detecting method and device
WO2014202026A1 (en) Method and system for virtual network mapping protection and computer storage medium
CN106789264B (en) A kind of method and apparatus that link aggregation group channel is switched fast
CN104660469B (en) A kind of method for detecting connectivity and relevant device of double layer network
US10862735B2 (en) Method and apparatus for implementing operation, administration, and maintenance function
CN105991347A (en) Redirection method of DNS request message and device
US20160299958A1 (en) Method and apparatus for visual logging in networking systems
WO2015184771A1 (en) Method and node device for operation, administration, and maintenance of service function chaining
CN101808021A (en) Fault detection method, device and system, message statistical method and node equipment
CN105763347B (en) For method getparms, the network equipment and system
CN104852887A (en) Network flow tracing system and method based on OpenFlow technology
Zopellaro Soares et al. SDN‐based teleprotection and control power systems: A study of available controllers and their suitability
CN108199913A (en) A kind of method and apparatus for realizing delay testing
CN105897580B (en) A kind of unrelated forwarding network quick fault testing of agreement and traffic protection switching method
CN104506369B (en) A kind of detection method and equipment of packet loss position

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant