CN109842503A - Link-quality test method and system - Google Patents

Link-quality test method and system Download PDF

Info

Publication number
CN109842503A
CN109842503A CN201711202175.0A CN201711202175A CN109842503A CN 109842503 A CN109842503 A CN 109842503A CN 201711202175 A CN201711202175 A CN 201711202175A CN 109842503 A CN109842503 A CN 109842503A
Authority
CN
China
Prior art keywords
switch
packet
test
interchanger
ethernet frame
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
CN201711202175.0A
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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201711202175.0A priority Critical patent/CN109842503A/en
Publication of CN109842503A publication Critical patent/CN109842503A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This disclosure relates to which a kind of link-quality test method and system, are related to field of communication technology.Disclosed method includes: that the first interchanger receives the OpenFlow Packet-out message that corresponding controller is sent, and Packet-out message includes test ethernet frame, and testing includes sending time and serial number in ethernet frame;First interchanger is sent to second switch for ethernet frame is tested;Second switch is encapsulated ethernet frame is tested to OpenFlow Packet-in message, and is sent to corresponding controller;The corresponding controller of second switch determines the first interchanger to the link-quality between second switch according to test ethernet frame.Since disclosed method is based on OpenFlow agreement, it does not need in data forwarding level to be that interchanger configures special IP address, the expense for increasing additional CPU for test is not needed yet, test can be completed while handling normal OpenFlow agreement, and the test of link individual event quality may be implemented, the longitude and efficiency for improving link-quality test, reduce the waste of resource.

Description

Link-quality test method and system
Technical field
This disclosure relates to field of communication technology, in particular to a kind of link-quality test method and system.
Background technique
With the development of internet, Internet service proposes higher and higher transmission quality requirements to internet.It is based on This demand is a kind of, and new network exchange model --- OpenFlow is suggested.OpenFlow network is by OpenFlow interchanger (OpenFlow Switch), network virtualization layer (Flow Visor) and controller (Controller) three parts composition.Control The agreement of device (Controller) Configuration network interchanger, interchanger safeguard a flow table (Flow Table), according to flow table into Row forwarding, the generation of flow table itself are safeguarded, issue and realized completely by controller.
Network quality test is maintenance personnel's awareness network situation, thus a kind of important means safeguarded accordingly. Currently, the network quality based on OpenFlow interchanger is tested, traditional ping test is mainly also relied on,
Summary of the invention
Inventor's discovery: ping test needs to configure additional loopback (loopback address) for interchanger, consumes simultaneously Cpu resource, and cannot achieve the test of the unidirectional quality of link.
A disclosure technical problem to be solved is: proposing chain in the new network based on OpenFlow agreement of one kind Road quality detecting method does not need to configure the additional address loopback, reduces cpu resource consumption, and can be directed to link list Item quality is tested.
According to some embodiments of the present disclosure, a kind of link-quality test method for providing, comprising: the first interchanger receives The OpenFlow Packet-out message that corresponding controller is sent, Packet-out message include test ethernet frame, test It include sending time and serial number in ethernet frame;First interchanger is sent to second switch for ethernet frame is tested;Second hands over It changes planes and encapsulates test ethernet frame to OpenFlow Packet-in message, and be sent to corresponding controller;Second exchange The corresponding controller of machine determines the first interchanger to the link-quality between second switch according to test ethernet frame.
In some embodiments, in Packet-out message Buffer_id sections be configured as -1, action column table segment is configured For ALL;It includes: that the first interchanger parsing Packet-out disappears that first interchanger, which will test ethernet frame and be sent to second switch, Test ethernet frame is sent to and removes in the case where Buffer_id sections of identification are configured as ALL for -1 action column table segment by breath Other all of the port other than input port, other all of the port other than input port include the port of second switch.
In some embodiments, in Packet-out message Buffer_id sections be configured as -1, action column table segment is configured For TABLE;It includes: the first interchanger parsing Packet-out that first interchanger, which will test ethernet frame and be sent to second switch, Message, in the case where Buffer_id sections of identification are configured as TABLE for -1 action column table segment, according to Packet-out message Middle input port information, inquiry are pre-configured flow table, and test ethernet frame is sent to second switch.
In some embodiments, the corresponding controller of second switch determines that the first interchanger arrives according to test ethernet frame Link-quality between second switch includes: the corresponding controller parsing test ethernet frame of second switch, determines test The serial number of ethernet frame;The corresponding controller of second switch determines according to the serial number of each test ethernet frame received Packet loss of one interchanger to the link between second switch.
In some embodiments, the corresponding controller of second switch determines that the first interchanger arrives according to test ethernet frame Link-quality between second switch includes: the corresponding controller parsing test ethernet frame of second switch, determines test The sending time of ethernet frame;The corresponding controller of second switch is according to sending time and receives Packet-in message Time, determine the first interchanger to the link between second switch propagation delay time.
In some embodiments, the corresponding controller of second switch determines that the first interchanger arrives according to test ethernet frame Link-quality between second switch includes: the corresponding controller parsing test ethernet frame of second switch, determines test The sending time and serial number of ethernet frame;The corresponding controller of second switch is according to sending time and receives Packet-in The time of message determines the propagation delay time of each Packet-in message;The corresponding controller of second switch is according to adjacent The serial number difference of the difference of the propagation delay time of Packet-in message and the adjacent Packet-in message, determines the first exchange Shake of the machine to the link between second switch.
In some embodiments, this method further include: corresponding in the corresponding controller of the first interchanger and second switch Controller be not the same controller in the case where, to the corresponding controller of the first interchanger and the corresponding control of second switch Device processed carries out time synchronization.
In some embodiments, Packet-out message is constructed by testing service device and passes through surface layer state transfer REST and answered The first interchanger, which is sent to, with Program Interfaces receives corresponding controller.
According to some embodiments of the present disclosure, a kind of link-quality test macro for providing, comprising: the first interchanger, quilt Be configured to receive the OpenFlow Packet-out message that corresponding controller is sent, Packet-out message include test with Too net frame, testing includes sending time and serial number in ethernet frame, and test ethernet frame is sent to second switch;Second hands over It changes planes, ethernet frame will be tested by, which being configured as, encapsulates to OpenFlow Packet-in message, and is sent to corresponding controller; The corresponding controller of second switch is configured as determining the first interchanger between second switch according to test ethernet frame Link-quality.
In some embodiments, in Packet-out message Buffer_id sections be configured as -1, action column table segment is configured For ALL;First interchanger is configured as parsing Packet-out message, is -1 at Buffer_id sections of identification, action column table segment quilt In the case where being configured to ALL, test ethernet frame is sent to other all of the port in addition to input port, input port with Other outer all of the port include the port of second switch.
In some embodiments, in Packet-out message Buffer_id sections be configured as -1, action column table segment is configured For TABLE;First interchanger is configured as parsing Packet-out message, is -1 at Buffer_id sections of identification, action column table segment In the case where being configured as TABLE, according to input port information in Packet-out message, inquiry is pre-configured flow table, will test Ethernet frame is sent to second switch.
In some embodiments, the corresponding controller of second switch is configured as parsing test ethernet frame, determines and surveys The serial number for trying ethernet frame, determines the first interchanger to second switch according to the serial number of each test ethernet frame received Between link packet loss.
In some embodiments, the corresponding controller of second switch is configured as parsing test ethernet frame, determines and surveys The sending time of examination ethernet frame determines that the first interchanger arrives according to sending time and the time for receiving Packet-in message The propagation delay time of link between second switch.
In some embodiments, the corresponding controller of second switch is configured as parsing test ethernet frame, determines and surveys The sending time and serial number of examination ethernet frame determine each according to sending time and the time for receiving Packet-in message The propagation delay time of Packet-in message, according to the difference of the propagation delay time of adjacent Packet-in message and this is adjacent The serial number difference of Packet-in message determines the shake of the first interchanger to the link between second switch.
In some embodiments, system further include: the corresponding controller of the first interchanger;It is corresponding in the first interchanger In the case that controller and the corresponding controller of second switch are not the same controller, the corresponding controller of the first interchanger Controller corresponding with second switch is configured as time synchronization.
In some embodiments, the system further include: testing service device is configured to Packet-out message, and REST application programming interface, which is shifted, by surface layer state is sent to the corresponding controller of the first interchanger reception.
The present disclosure proposes a kind of link in network quality detecting methods based on OpenFlow agreement, pass through construction OpenFlow Packet-out message carries test ethernet frame, makes the message according to particular way by the first interchanger and the It is sent and received between two interchangers, further, by second switch according to the sending time and serial number in test ethernet frame Etc. information determine the first interchanger to the link-quality between second switch.Since disclosed method is assisted based on OpenFlow View does not need in data forwarding level to be that interchanger configures special IP address, does not need to increase additional CPU for test yet Expense, test can be completed while handling normal OpenFlow agreement, and the survey of link individual event quality may be implemented Examination improves the longitude and efficiency of link-quality test, reduces the waste of resource.
By the detailed description referring to the drawings to the exemplary embodiment of the disclosure, the other feature of the disclosure and its Advantage will become apparent.
Detailed description of the invention
In order to illustrate more clearly of the embodiment of the present disclosure or technical solution in the prior art, 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 Disclosed some embodiments for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 shows the flow diagram of the link-quality test method of some embodiments of the present disclosure.
Fig. 2 shows the flow diagrams of the link-quality test method of other embodiments of the disclosure.
Fig. 3 shows the structural schematic diagram of the link-quality test macro of some embodiments of the present disclosure.
Fig. 4 shows the structural schematic diagram of the link-quality test macro of other embodiments of the disclosure.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present disclosure, the technical solution in the embodiment of the present disclosure is carried out clear, complete Site preparation description, it is clear that described embodiment is only disclosure a part of the embodiment, instead of all the embodiments.Below Description only actually at least one exemplary embodiment be it is illustrative, never as to the disclosure and its application or making Any restrictions.Based on the embodiment in the disclosure, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, belong to the disclosure protection range.
It needs to configure the additional address loopback for interchanger for ping test, while consuming cpu resource, and nothing Method realizes the problem of test of the unidirectional quality of link, proposes a kind of new link in network quality based on OpenFlow agreement Test method.
The link-quality test method of the disclosure is described below with reference to Fig. 1.
Fig. 1 is the flow chart of some embodiments of disclosure link-quality test method.As shown in Figure 1, the side of the embodiment Method includes: step S102~S108.
Step S102, the first interchanger receive the OpenFlow Packet-out message that corresponding controller is sent.
Packet-out message includes test ethernet frame, and testing includes sending time and serial number in ethernet frame.
Controller, for example, OpenDaylight software can manage multiple OpenFlow interchangers.Controller externally mentions For operation interface, api interface etc..Packet-out message can be to be constructed by testing service device, and testing service device and first is handed over It changes planes to receive and API (Application Programming Interface, using journey can be set between corresponding controller Sequence programming interface), for example, REST (Representational State Transfer, the transfer of surface layer state) API, test Server inserts the address of the first interchanger by API, and the Packet-out message of construction is sent to the first interchanger and is received Packet-out message is sent to the first interchanger by corresponding controller, further, controller.
The parameter of Packet-out message is as shown in table 1.Test ethernet frame can be filled in Packet-out message In Data (data) section.Buffer_id segment table shows buffer area ID number in interchanger.In_port indicates input port, Action_len indicates the length of action (movement) list, for distinguishing actions and Data sections, Ofp_action_ Action (movement) is specified in header actions [0].Struct ofp_header header is message header.
Table 1
Packet-out message parameter Setting
Struct ofp_header header
Buffer_id
In_port
Action_len
Ofp_action_header actions[0]
Data[0] Test ethernet frame
Step S104, the first interchanger are sent to second switch for ethernet frame is tested.
First interchanger, which receives Packet-out message, will do it parsing, read the content of each parameter section.Pass through setting Each parameter can make the first interchanger be forwarded to second switch for ethernet frame is tested.
For example, in Packet-out message Buffer_id sections be configured as _ 1, action lists (actions) section is configured For ALL.First interchanger parses Packet-out message, is -1 at Buffer_id sections of identification, action column table segment is configured as In the case where ALL, test ethernet frame is sent to other all of the port in addition to input port, its other than input port His all of the port just includes the port of second switch.
In another example in Packet-out message Buffer_id sections be configured as -1, action lists (actions) section is matched It is set to TABLE.First interchanger parses Packet-out message, is -1 at Buffer_id sections of identification, action column table segment is configured In the case where for TABLE, according to input port (in_port) information in Packet-out message, inquiry is pre-configured flow table, will survey Examination ethernet frame is sent to second switch.- 1 is configured as at Buffer_id sections, action column table segment is configured as TABLE's In the case of, the additional match information as Data segment data packet is carried out flow table inquiry by in_port.
The method of above two setting Packet-out message, action column table segment is configured as the mode of ALL by the first The processes such as flow table inquiry can be saved, it is more efficient.And the second way reduces transinformation content, saves resource.
Step S106, second switch is encapsulated ethernet frame is tested to OpenFlow Packet-in message, and is sent To corresponding controller.
Flow table includes data packet matched feature and data package processing method.Data packet matched feature includes: one layer: interchanger Inbound port (Ingress Port), two layers: source MAC (Ether source), target MAC (Media Access Control) address (Ether dst), ether Net type (EtherType), VLAN tag (VLAN id), VLAN priority (VLAN priority), three layers: source IP (IP Src), destination IP (IP dst), IP agreement field (IP proto), IP type of service (IP ToS bits), four layers: TCP/UDP Source port number (TCP/UDP src port), TCP/UDP destination slogan (TCP/UDP dst port).
Second switch can match it with flow table after receiving test ethernet frame, in the feelings of not occurrence Under condition, test ethernet frame can be packaged into Packet-in message and be sent to corresponding controller.
Step S108, the corresponding controller of second switch determine that the first interchanger is handed over to second according to test ethernet frame Link-quality between changing planes.
Link-quality generally includes three indexs: packet loss, propagation delay time and shake.
In some embodiments, the corresponding controller parsing test ethernet frame of second switch, determines test Ethernet The serial number of frame;The corresponding controller of second switch determines the first exchange according to the serial number of each test ethernet frame received Packet loss of the machine to the link between second switch.In case of packet loss, then controller can not receive second switch transmission Packet-in message, the test ethernet frame of corresponding serial number can not then receive.Controller receives a certain amount of Packet-in message can identify the quantity for the data packet lost according to the serial number of test ethernet frame, and then obtain link Packet loss.
In some embodiments, the corresponding controller parsing test ethernet frame of second switch, determines test Ethernet The sending time of frame;The corresponding controller of second switch is according to sending time and the time for receiving Packet-in message, really Propagation delay time of fixed first interchanger to the link between second switch.Controller utilizes and receives Packet-in message Time subtracts the sending time filled in test ethernet frame, the propagation delay time of the available Packet-in message, into one Step counts the propagation delay time of multiple Packet-in message then available link.
In some embodiments, the corresponding controller parsing test ethernet frame of second switch, determines test Ethernet The sending time and serial number of frame;The corresponding controller of second switch is according to sending time and receives Packet-in message Time determines the propagation delay time of each Packet-in message;The corresponding controller of second switch is according to adjacent Packet- The serial number difference of the difference of the propagation delay time of in message and the adjacent Packet-in message determines the first interchanger to The shake of link between two interchangers.Controller can calculate the equal of the propagation delay time of each adjacent two Packet-in message The mean value of the serial number difference of value and each adjacent two Packet-in message, using the mean value of propagation delay time divided by serial number difference Mean value obtains shake index.
In the various embodiments described above, the corresponding controller of the first interchanger and the corresponding controller of second switch be can be together One controller is also possible to different controllers.In the corresponding controller of the first interchanger and the corresponding control of second switch In the case that device is not the same controller, it is also necessary to the corresponding controller of the first interchanger and the corresponding control of second switch Device processed carries out time synchronization, guarantees the accuracy of test.
The corresponding controller of second switch returns the first determining interchanger to the link-quality between second switch It is back to testing service device, so that maintenance personnel checks.
The method of above-described embodiment provides a kind of link in network quality detecting method based on OpenFlow agreement, leads to Construction OpenFlow Packet-out message is crossed, test ethernet frame is carried, makes the message according to particular way by the first exchange It is sent and received between machine and second switch, further, by second switch according to the sending time in test ethernet frame And the information such as serial number determine the first interchanger to the link-quality between second switch.Since the method for above-described embodiment is based on OpenFlow agreement does not need in data forwarding level to be that interchanger configures special IP address, does not need to increase for test yet Add the expense of additional CPU, test can be completed while handling normal OpenFlow agreement, and link list may be implemented The test of item quality improves the longitude and efficiency of link-quality test, reduces the waste of resource.
Other embodiments of disclosure link-quality test method are described below with reference to Fig. 2.
Fig. 2 is the flow chart of other embodiments of disclosure link-quality test method.As shown in Fig. 2, the embodiment Method includes: step S202~S214.
Step S202, testing service device construct OpenFlow Packet-out message, are sent to the reception pair of the first interchanger The controller answered.
Packet-out message includes test ethernet frame, and testing includes sending time and serial number in ethernet frame.
Step S204, the first interchanger receive corresponding controller and Packet-out message are sent to the first interchanger.
Step S206, the first interchanger parse Packet-out message, extract test ethernet frame and are sent to the second exchange Machine.
The method that the setting of Packet-out message parameter refers to Fig. 1 embodiment.
Step S208, second switch test ethernet frame there is no occurrence in flow table in the case where, will test with Too net frame is encapsulated as Packet-in message.
Packet-in message is sent to corresponding controller by step S210, second switch.
Step S212, the corresponding controller of second switch parse Packet-in message, are determined according to test ethernet frame First interchanger is to the link-quality between second switch.
Step S214, the corresponding controller of second switch is by the first interchanger to the link-quality between second switch Test result be sent to testing service device.
The disclosure also provides a kind of link-quality test macro, is described below with reference to Fig. 3 and 4.
Fig. 3 is the structure chart of some embodiments of disclosure link-quality test macro.As shown in figure 3, the system 30 includes: First interchanger 302, second switch 304, the corresponding controller 306 of second switch.
First interchanger 302 is configured as receiving the OpenFlow Packet-out message that corresponding controller is sent.
Packet-out message includes test ethernet frame, and testing in ethernet frame includes sending time and serial number, will be surveyed Examination ethernet frame is sent to second switch.
In some embodiments, in Packet-out message Buffer_id sections be configured as -1, action column table segment is configured For ALL.First interchanger 302 is configured as parsing Packet-out message, is -1 at Buffer_id sections of identification, action lists In the case that section is configured as ALL, test ethernet frame is sent to other all of the port in addition to input port, input terminal Other all of the port other than mouthful include the port of second switch.
In some embodiments, in Packet-out message Buffer_id sections be configured as -1, action column table segment is configured For TABLE.First interchanger 302 is configured as parsing Packet-out message, is -1 at Buffer_id sections of identification, action column In the case that table segment is configured as TABLE, according to input port information in Packet-out message, inquiry is pre-configured flow table, will Test ethernet frame is sent to second switch.
Second switch 304 is configured as testing ethernet frame and encapsulates to OpenFlow Packet-in message, concurrently It send to corresponding controller.
The corresponding controller 306 of second switch is configured as determining the first interchanger to the according to test ethernet frame Link-quality between two interchangers.
In some embodiments, the corresponding controller 306 of second switch is configured as parsing test ethernet frame, determines The serial number for testing ethernet frame determines the first interchanger to the second exchange according to the serial number of each test ethernet frame received The packet loss of link between machine.
In some embodiments, the corresponding controller 306 of second switch is configured as parsing test ethernet frame, determines The sending time of test ethernet frame determines the first interchanger according to sending time and the time for receiving Packet-in message To the propagation delay time of the link between second switch.
In some embodiments, the corresponding controller 306 of second switch is configured as parsing test ethernet frame, determines The sending time and serial number of test ethernet frame determine each according to sending time and the time for receiving Packet-in message The propagation delay time of Packet-in message, according to the difference of the propagation delay time of adjacent Packet-in message and this is adjacent The serial number difference of Packet-in message determines the shake of the first interchanger to the link between second switch.
Further, link-quality test macro 30 can also include: the corresponding controller 308 of the first interchanger, be configured To send OpenFlow Packet-out message to the first interchanger 302.The corresponding controller of first interchanger in the present embodiment 308 controllers 306 corresponding with second switch are not the same controller, the corresponding controller 308 of the first interchanger and The corresponding controller 306 of two interchangers is configured as time synchronization.
Further, link-quality test macro 30 can also include: testing service device 310, be configured to Packet- Out message, and REST application programming interface is shifted by surface layer state and is sent to the corresponding control of the first interchanger reception Device.
Fig. 4 is the structure chart of other embodiments of disclosure link-quality test macro.As shown in figure 4, the system 40 is wrapped Include: the first interchanger 402, second switch 404, controller 406, the first interchanger 402 and second switch 404 belong to Controller 406.
First interchanger 402 is configured as realizing the function similar with the first interchanger 302 in Fig. 3, second switch 404 It is configured as realizing the function similar with second switch 304 in Fig. 3.Controller 406 is configured as realizing and hand over in Fig. 3 first The similar function of the corresponding controller 308 of changing planes controller 306 corresponding with second switch.
Further, which can also include: testing service device 408, be configured as realizing and testing service device in Fig. 3 310 similar functions.
Those skilled in the art should be understood that embodiment of the disclosure can provide as method, system or computer journey Sequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the disclosure The form of embodiment.Moreover, it wherein includes the calculating of computer usable program code that the disclosure, which can be used in one or more, Machine can use the meter implemented in non-transient storage medium (including but not limited to magnetic disk storage, CD_ROM, optical memory etc.) The form of calculation machine program product.
The disclosure is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present disclosure Figure and/or block diagram describe.It is interpreted as to be realized by computer program instructions each in flowchart and/or the block diagram The combination of process and/or box in process and/or box and flowchart and/or the block diagram.It can provide these computer journeys Sequence instruct to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor with A machine is generated, so that the instruction generation executed by computer or the processor of other programmable data processing devices is used for Realize the dress for the function of specifying in one or more flows of the flowchart and/or one or more blocks of the block diagram It sets.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is merely the preferred embodiments of the disclosure, not to limit the disclosure, all spirit in the disclosure and Within principle, any modification, equivalent replacement, improvement and so on be should be included within the protection scope of the disclosure.

Claims (16)

1. a kind of link-quality test method, comprising:
First interchanger receives the OpenFlow Packet-out message that corresponding controller is sent, and the Packet-out disappears Breath includes test ethernet frame, includes sending time and serial number in the test ethernet frame;
The test ethernet frame is sent to second switch by first interchanger;
The second switch encapsulates the test ethernet frame to OpenFlow Packet-in message, and is sent to correspondence Controller;
The corresponding controller of the second switch determines the first interchanger to second switch according to the test ethernet frame Between link-quality.
2. link-quality test method according to claim 1, wherein
- 1 is configured as Buffer_id sections in the Packet-out message, and action column table segment is configured as ALL;
The test ethernet frame is sent to second switch by first interchanger
First interchanger parses the Packet-out message, is identifying that described Buffer_id sections is -1, action column table segment In the case where being configured as ALL, the test ethernet frame is sent to other all of the port in addition to input port, it is described Other all of the port other than input port include the port of second switch.
3. link-quality test method according to claim 1, wherein
- 1 is configured as Buffer_id sections in the Packet-out message, and action column table segment is configured as TABLE;
The test ethernet frame is sent to second switch by first interchanger
First interchanger parses the Packet-out message, is identifying that described Buffer_id sections is -1, action column table segment In the case where being configured as TABLE, according to input port information in the Packet-out message, inquiry is pre-configured flow table, will The test ethernet frame is sent to second switch.
4. link-quality test method according to claim 1, wherein the corresponding controller of the second switch according to The test ethernet frame determines that the first interchanger includes: to the link-quality between second switch
The second switch corresponding controller parsing test ethernet frame, determines the sequence of the test ethernet frame Number;
The corresponding controller of the second switch determines the first exchange according to the serial number of each test ethernet frame received Packet loss of the machine to the link between second switch.
5. link-quality test method according to claim 1, wherein the corresponding controller of the second switch according to The test ethernet frame determines that the first interchanger includes: to the link-quality between second switch
The second switch corresponding controller parsing test ethernet frame, determines the transmission of the test ethernet frame Time;
The corresponding controller of the second switch according to the sending time and receive the Packet-in message when Between, determine the first interchanger to the link between second switch propagation delay time.
6. link-quality test method according to claim 1, wherein the corresponding controller of the second switch according to The test ethernet frame determines that the first interchanger includes: to the link-quality between second switch
The second switch corresponding controller parsing test ethernet frame, determines the transmission of the test ethernet frame Time and serial number;
The corresponding controller of the second switch according to the sending time and receive the Packet-in message when Between, determine the propagation delay time of each Packet-in message;
The corresponding controller of the second switch is according to the difference and the phase of the propagation delay time of adjacent Packet-in message The serial number difference of adjacent Packet-in message, determines the shake of the first interchanger to the link between second switch.
7. link-quality test method according to claim 1-6, further includes:
It is not the same controller in the corresponding controller of first interchanger and the corresponding controller of the second switch In the case where, is carried out to the corresponding controller of first interchanger and the corresponding controller of the second switch same the time Step.
8. link-quality test method according to claim 1-6, wherein
The Packet-out message is constructed by testing service device and passes through surface layer state transfer REST application programming interface It is sent to first interchanger and receives corresponding controller.
9. a kind of link-quality test macro, comprising:
First interchanger is configured as receiving the OpenFlow Packet-out message that corresponding controller is sent, described Packet-out message includes test ethernet frame, includes sending time and serial number in the test ethernet frame, by the survey Examination ethernet frame is sent to second switch;
Second switch is configured as encapsulating the test ethernet frame to OpenFlow Packet-in message, and sends To corresponding controller;
The corresponding controller of second switch is configured as determining that the first interchanger is handed over to second according to the test ethernet frame Link-quality between changing planes.
10. link-quality test macro according to claim 9, wherein
- 1 is configured as Buffer_id sections in the Packet-out message, and action column table segment is configured as ALL;
First interchanger is configured as parsing the Packet-out message, is identifying that described Buffer_id sections is -1, is moved Make in the case that list section is configured as ALL, other for being sent in addition to input port by the test ethernet frame own Port, other all of the port other than the input port include the port of second switch.
11. link-quality test macro according to claim 9, wherein
- 1 is configured as Buffer_id sections in the Packet-out message, and action column table segment is configured as TABLE;
First interchanger is configured as parsing the Packet-out message, is identifying that described Buffer_id sections is -1, is moved Make in the case that list section is configured as TABLE, according to input port information in the Packet-out message, inquiry is pre-configured The test ethernet frame is sent to second switch by flow table.
12. link-quality test macro according to claim 9, wherein
The corresponding controller of the second switch is configured as parsing the test ethernet frame, determines the test Ethernet The serial number of frame determines the first interchanger to the chain between second switch according to the serial number of each test ethernet frame received The packet loss on road.
13. link-quality test macro according to claim 9, wherein
The corresponding controller of the second switch is configured as parsing the test ethernet frame, determines the test Ethernet The sending time of frame determines that the first interchanger arrives according to the sending time and the time for receiving the Packet-in message The propagation delay time of link between second switch.
14. link-quality test macro according to claim 9, wherein
The corresponding controller of the second switch is configured as parsing the test ethernet frame, determines the test Ethernet The sending time and serial number of frame determine each according to the sending time and the time for receiving the Packet-in message The propagation delay time of Packet-in message, according to the difference of the propagation delay time of adjacent Packet-in message and this is adjacent The serial number difference of Packet-in message determines the shake of the first interchanger to the link between second switch.
15. according to the described in any item link-quality test macros of claim 9-14, further includes: the corresponding control of the first interchanger Device processed;
It is not the same controller in the corresponding controller of first interchanger and the corresponding controller of the second switch In the case where, it is same that the corresponding controller of the first interchanger and the corresponding controller of the second switch are configured as the time Step.
16. according to the described in any item link-quality test macros of claim 9-14, further includes:
Testing service device is configured to the Packet-out message, and shifts REST application program by surface layer state Programming interface is sent to first interchanger and receives corresponding controller.
CN201711202175.0A 2017-11-27 2017-11-27 Link-quality test method and system Pending CN109842503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711202175.0A CN109842503A (en) 2017-11-27 2017-11-27 Link-quality test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711202175.0A CN109842503A (en) 2017-11-27 2017-11-27 Link-quality test method and system

Publications (1)

Publication Number Publication Date
CN109842503A true CN109842503A (en) 2019-06-04

Family

ID=66879881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711202175.0A Pending CN109842503A (en) 2017-11-27 2017-11-27 Link-quality test method and system

Country Status (1)

Country Link
CN (1) CN109842503A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285782A (en) * 2021-12-22 2022-04-05 深圳电器公司 Data processing method and related device
CN114826978A (en) * 2022-04-07 2022-07-29 中国联合网络通信集团有限公司 Link quality testing method, device and storage medium
CN115361315A (en) * 2022-08-25 2022-11-18 超越科技股份有限公司 Openflow switch reliability testing method and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530194A (en) * 2014-09-29 2016-04-27 中国电信股份有限公司 Method and system for controlling message forwarding on the basis of quality sensing
KR20160072718A (en) * 2014-12-15 2016-06-23 주식회사 케이티 System and method for neighbor discovery based on ethernet in the software defined networks
CN105933184A (en) * 2016-06-17 2016-09-07 中国人民解放军国防科学技术大学 SDN (Software Defined Network) link delay measuring method based on LLDP (Link Layer Discovery Protocol)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530194A (en) * 2014-09-29 2016-04-27 中国电信股份有限公司 Method and system for controlling message forwarding on the basis of quality sensing
KR20160072718A (en) * 2014-12-15 2016-06-23 주식회사 케이티 System and method for neighbor discovery based on ethernet in the software defined networks
CN105933184A (en) * 2016-06-17 2016-09-07 中国人民解放军国防科学技术大学 SDN (Software Defined Network) link delay measuring method based on LLDP (Link Layer Discovery Protocol)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘一童: "SDN网络测量系统的研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285782A (en) * 2021-12-22 2022-04-05 深圳电器公司 Data processing method and related device
CN114826978A (en) * 2022-04-07 2022-07-29 中国联合网络通信集团有限公司 Link quality testing method, device and storage medium
CN114826978B (en) * 2022-04-07 2023-10-31 中国联合网络通信集团有限公司 Link quality testing method, equipment and storage medium
CN115361315A (en) * 2022-08-25 2022-11-18 超越科技股份有限公司 Openflow switch reliability testing method and storage medium
CN115361315B (en) * 2022-08-25 2024-04-26 超越科技股份有限公司 Openflow switch reliability test method and storage medium

Similar Documents

Publication Publication Date Title
CN101656677B (en) Message diversion processing method and device
CN1937541B (en) Network performance test method
CN108809857A (en) A method of the traffic monitoring based on SDN and service quality securing strategy
CN111769998B (en) Method and device for detecting network delay state
CN105556916B (en) The information statistical method and device of network flow
CN103929368B (en) Load balance method and device for multiple service units
CN112866075A (en) In-band network telemetering method, system and related device for Overlay network
CN110167084A (en) Multi-channel data transmission method and device
CN106603550B (en) A kind of Network Isolation method and device
CN107181663A (en) A kind of message processing method, relevant device and computer-readable recording medium
CN104704779A (en) Method and apparatus for accelerating forwarding in software-defined networks
EP3720075B1 (en) Data transmission method and virtual switch
CN104852828B (en) A kind of network delay detection method, apparatus and system
CN109842503A (en) Link-quality test method and system
CN112422679A (en) Communication method and device
CN112105056B (en) Code stream transmission method and device based on 5GSA network
CN109889444A (en) A kind of methods, devices and systems of planning path
CN103067278A (en) Data frame transmission processing method, equipment and system
US11032184B2 (en) Method and device for collecting traffic flow value of BGP community attribute or BGP extended community attribute
CN106034071A (en) Data message transmission method and edge routing bridge equipment
CN104506369B (en) A kind of detection method and equipment of packet loss position
CN103716378B (en) Method for on-line migration of virtual machine in wide area network under future network serval
CN112532468B (en) Network measurement system, method, device and storage medium
CN106713158B (en) The method and device of load balancing in Clos network
CN107809387A (en) A kind of method of message transmissions, equipment and network system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190604