CN106487572A - The processing method and processing device of message - Google Patents

The processing method and processing device of message Download PDF

Info

Publication number
CN106487572A
CN106487572A CN201510559479.7A CN201510559479A CN106487572A CN 106487572 A CN106487572 A CN 106487572A CN 201510559479 A CN201510559479 A CN 201510559479A CN 106487572 A CN106487572 A CN 106487572A
Authority
CN
China
Prior art keywords
message
field
action
receiving terminal
transmitting terminal
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
CN201510559479.7A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510559479.7A priority Critical patent/CN106487572A/en
Priority to PCT/CN2016/082357 priority patent/WO2017036180A1/en
Publication of CN106487572A publication Critical patent/CN106487572A/en
Pending legal-status Critical Current

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/02Standardisation; Integration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • 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

Landscapes

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

Abstract

The invention provides a kind of processing method and processing device of message, wherein, the method:In software defined network SDN framework, the autonomy function AF example pre-set by execution is processed to message and is forwarded;Wherein, AF example includes at least one of field:AF identifier field, AF type field, AF index time field, instruction field, cycle time field, count area, mode field.By the present invention, solve the problems, such as that autonomy function AF example can not complete the forward process of OAM association message, meet its functional requirement in terms of protection recovery and OAM.

Description

The processing method and processing device of message
Technical field
The present invention relates to the communications field, in particular to a kind of processing method and processing device of message.
Background technology
As present network exposes the raising of increasing disadvantage and people to network performance demand, then grind Study carefully personnel to have to a lot of sophisticated functions to be added in the middle of the architecture of router, such as ospf (Open Shortest Path First, abbreviation OSPF), and Border Gateway Protocol (Border Gateway Protocol, referred to as For BGP), multicast, Differentiated Services, traffic engineering, network address translation (Network Address Translation, Abbreviation NAT), fire wall, multiprotocol label switching (Multi-Protocol Label Switching, referred to as MPLS) Etc..The space that this allows for the more and more too fat to move and performance boost of the switching equipment such as router is less and less.
But completely different with the predicament of network field, computer realm achieves development with rapid changepl. never-ending changes and improvements.Carefully return The development of computer realm is turned round and look at, it is seen that, computer realm have found a simply available hardware bottom layer, and (x86 is instructed Collection).Because of such a public hardware bottom layer, so in software aspects, whether application program or operate System all achieves development at full speed.A lot of personages for advocating to redesign computer network architectures think now:Net Network can replicate the success of computer realm to solve all problems run into by present network.Under the guidance of this thought, The network in future will be such:The data path (switch, router) of bottom is " mute, simple, most Little ", and define the public application programming interface (Application with regard to flow table of an opening Programming Interface, abbreviation API), while controlling whole network using controller.Following researcher Just can freely call the API of bottom on the controller to program, so as to realize the innovation of network.
Based on above-mentioned theory, software defined network (Software Defined Network, abbreviation SDN) is occurred in that, Which is initially a kind of new network of Emulex network innovation framework proposed by clean slate seminar of Stanford Univ USA.At present, its Core technology OpenFlow agreement is by separating network equipment chain of command and data surface, it is achieved thereby that network flow The flexible control of amount, is that core network and innovating for application provide good platform.
Originally, SDN framework is only applied in Ethernet scene, but with temperature more and more higher, the scene of application is handed over from bag Switching network extends to optical switching network.Currently, the standardization effort of optical switching network SDN framework is by ONF OTWG Working group mainly includes optical transport network (Optical Transport Network, referred to as OTN) photosphere control being responsible for System, electric layer control, neighbor uni-cast, cross-layer technology, pretection switch technology, Operations, Administration and Maintenance (Operation Administration and Maintenance, referred to as OAM) etc. several research topics.ONF issues OpenFlow 1.0 version of protocol extension, completes photosphere control, electric layer control, the protocol scheme of three kinds of technology of neighbor uni-cast.Which can The protocol solutions of remaining three research topics, wherein pretection switch and OAM can be added in 1.1 follow-up versions Technology is realized using autonomy function (Autonomous Function, abbreviation AF).
One AF autonomy function is used to represent the functional object of flow table pattern, and the logic for writing AF autonomy function is exchanged Machine is able to carry out a series of related action in paths.When controller cannot control or change exchange using existing stream entry During machine behavior, it is possible to use AF autonomy function is completing these data path behaviors;When controller cannot be to specific thorn Sharp factor is made a response or is made a response in time, it is also desirable to these control functions are delegated to switch execute.Control Device does function treatment by adding index that message is passed to AF autonomy function in flow table.Fig. 1 is in correlation technique AF autonomy function occupation mode schematic diagram, as shown in Figure 1.
AF autonomy function example is present in AF autonomy function table, and the definition of AF is including name and the type phase of type The configuration of pass, mainly parameter and internal state data.AF example is present in AF table, has unique AF ID, and one Individual AF has following function:
(1) stream entry points to certain AF example, and AF example receives message and processes, and changes message data or relaying Data (metadata), change forward-path;
(2) message is sent to controller using packet-in;
(3) according to given parameters, message is produced by timer or other times triggering;
(4) operated according to the motivator of OpenFlow flow waterline or outside;
(5) operated according to the information of OF-Switch or configuration protocol configuration;
(6) provide some motivators (for example to monitor AF by watch, link is provided to OpenFlow flow waterline Activated information is to group group);
(7) with other AF associations, for example, configuration and the process in different polymerization levels is supported.
Autonomy function AF example in above-mentioned correlation technique is not met by AF in terms of protection recovery and OAM Functional requirement.
For in the related, autonomy function AF example can not complete the problem of the forward process of OAM association message, Effective solution is not yet proposed at present.
Content of the invention
The invention provides a kind of processing method and processing device of message, at least to solve in the related, autonomy function AF example can not complete the problem of the forward process of OAM association message.
According to one embodiment of present invention, there is provided a kind of processing method of message, including:Software defined network SDN In framework, message is forwarded by executing the autonomy function AF example for pre-setting;Wherein, wrap in AF example Include at least one of field:AF identifier field, AF type field, AF index time field, instruction field, Cycle time field, count area, mode field.
In embodiments of the present invention, AF identifier field, for one AF example of unique mark;AF type field, For identifying the type of AF example;AF index time field, for indicating number of times that AF example is cited;Coding line Section, for indicating the pipeline processes performed by AF example and action;Cycle time field, for indicating AF example The time of message or the time of periodic receipt message are periodically sent;Count area, for indicating that AF example receives Message number;Mode field, for indicating whether AF example is effective.
In embodiments of the present invention, before autonomy function AF example is forwarded to message, method also includes:By with At least one lower mode obtains message:Receive, by executing AF example, the message that controller is issued;Connect by AF example Receive the message sent on switch;Message is produced by AF example.
In embodiments of the present invention, before AF case-based system message, method includes:Pre-set the dynamic of AF example Make.
In embodiments of the present invention, when AF example is used for realizing continuity verification function, message is connectivity verification message (Continuity Check Message, abbreviation CCM) message;When AF example is transmitting terminal AF example, send The action of end AF example:Output equity Maintenance Entity end points (Output Peer Maintenance entity assembly End Point, abbreviation Output Peer MEP) action, setting-domain Set Field action, output port Output port Action;When AF example is receiving terminal AF example, the action of receiving terminal AF example includes:Export to external software Module, wherein, the external software module is reverse in triggering receiving terminal Maintenance Entity end points MEP for judging whether AF example produces the CCM message for being provided with that remote bug indicates RDI.
In embodiments of the present invention, Set-Field action includes at least one of:Setting source medium education (Media Access Control, abbreviation MAC);Purpose MAC is set;Ethernet type field is set;Maintenance Entity is set Level;Operation Administration and Maintenance OAM protocol version is set;CCM type of message is set;Flag is set;Class is set The side-play amount of type length value (Type Length Value, abbreviation TLV);Sequence number is set;Arrange transmitting terminal to safeguard in fact The mark of body group end points (Maintenance entity assembly End Point, abbreviation MEP);Maintenance Entity is set (Maintenance entity assembly, abbreviated as MEG) is identified.
In embodiments of the present invention, when AF example is used for realizing Ethernet Loopback, message is loopback message;In AF When example is transmitting terminal AF example, the action of transmitting terminal AF example includes:It is sent to port;In AF example for connecing When receiving end AF example or intermediate ends AF example, the action of AF example includes:Source address and destination address is exchanged, if The operation coding OpCode for putting loopback message is 2, arranges output port.
In embodiments of the present invention, when AF example is used for realizing Ethernet path trace facility, message is path trace Message (Link Trace Message, abbreviation LTM) message;When AF example is transmitting terminal AF example, transmitting terminal The action of AF example includes:It is sent to port;It is receiving terminal AF example or the AF in intermediate node in AF example During example, the action of AF example includes:Lifetime value (Time To Line, abbreviation TTL) subtracts 1, by source address The MAC address of AF example place Maintenance Entity intermediate node or tail node is set to, by LTM Outlet identity type length value TLV value field is set to the node identification of current hop LTM message, output port.
In embodiments of the present invention, when AF example is used for realizing Ethernet path trace facility, message is path trace Message LTM message;When AF example is receiving terminal AF example or the AF example in intermediate node, AF example Action include:OpCode field in OAM message is set, source MAC field is copied to ether net head The target MAC (Media Access Control) address field in portion, deletes source MAC field target MAC (Media Access Control) address field, adds the next one and goes out Mouthful identification field in mark TLV, output port.
In embodiments of the present invention, when AF example is used for realizing fault indication function, message is alarm indication signal AIS Message;When AF example is transmitting terminal AF example, the action of transmitting terminal AF example includes:Produce new message; Ethernet type field is set;It is AIS message to arrange OAM message type;OAM protocol version field is set;If Put flag;Setting source MAC;Purpose MAC is set;Maintenance Entity MEG level is set.
When AF example is receiving terminal AF example, the action of receiving terminal AF example includes:Will be through receiving terminal AF reality AIS message after example place MEP is proved to be successful is sent to external software module;Wherein, the external software module is used for Judge whether that the reverse AF example triggered in the receiving terminal Maintenance Entity end points MEP is produced and be provided with remote bug Indicate the AIS message of RDI.
According to another embodiment of the present invention, there is provided a kind of processing meanss of message, including:Forwarding module, is used for In software defined network SDN framework, message is forwarded by executing the autonomy function AF example for pre-setting; Wherein, AF example includes at least one of field:AF identifier field, AF type field, AF index number of times Field, instruction field, cycle time field, count area, mode field.
In embodiments of the present invention, AF identifier field, for one AF example of unique mark;AF type field, For identifying the type of AF example;AF index time field, for indicating number of times that AF example is cited;Coding line Section, for indicating the action performed by AF example;Cycle time field, reports for indicating that AF example periodically sends The time of text or the time of periodic receipt message;Count area, for indicating the number of message that AF example is received; Mode field, for indicating whether AF example is effective.
In embodiments of the present invention, device also includes:Acquisition module, for obtaining message by least one of mode: Receive, by executing AF example, the message that controller is issued;By the message sent on AF example desampler;Logical Cross AF example and produce message.
In embodiments of the present invention, device also includes:Setup module, for pre-setting the action of AF example.
In embodiments of the present invention, when AF example is used for realizing far-end fault detection, message is connectivity verification message CCM message;When AF example is transmitting terminal AF example, the action of transmitting terminal AF example:Output equity is safeguarded Group of entities end points Output Peer MEP action, the Set Field action of setting-domain, output port Output port action; When AF example is receiving terminal AF example, the action of receiving terminal AF example includes:Export to external software module.
In embodiments of the present invention, Set-Field action includes at least one of:Setting source media access control MAC; Purpose MAC is set;Ethernet type field is set;Maintaining entity group hierarchy is set;Operation Administration and Maintenance OAM is set Protocol version;CCM type of message is set;Flag is set;The side-play amount of type lengths values TLV is set;Sequence is set Row number;The mark of transmitting terminal MEP is set;Maintenance Entity MEG mark is set.
In embodiments of the present invention, when AF example is used for realizing Ethernet Loopback, message is loopback message;In AF When example is transmitting terminal AF example, the action of transmitting terminal AF example includes:It is sent to port;In AF example for connecing When receiving end AF example or intermediate ends AF example, the action of AF example includes:Source address and destination address is exchanged, if The operation coding OpCode for putting loopback message is 2, arranges output port.
In embodiments of the present invention, when AF example is used for realizing Ethernet path trace facility, message is path trace Message LTM message;When AF example is transmitting terminal AF example, the action of transmitting terminal AF example includes:It is sent to Port;When AF example is receiving terminal AF example or the AF example in intermediate node, the action of AF example includes: Lifetime value TTL subtracts 1, and source address is set to AF example place Maintenance Entity intermediate node or tail node MAC address, LTM outlet identity type length value TLV value field is set to current hop LTM The node identification of message, output port.
In embodiments of the present invention, when AF example is used for realizing Ethernet path trace facility, message is path trace Message LTM message;When AF example is receiving terminal AF example or the AF example in intermediate node, AF example Action include:OpCode field in OAM message is set, source MAC field is copied to ether net head The target MAC (Media Access Control) address field in portion, deletes source MAC field target MAC (Media Access Control) address field, adds the next one and goes out Mouthful identification field in mark TLV, output port.
In embodiments of the present invention, when AF example is used for realizing fault indication function, message is alarm indication signal AIS Message;When AF example is transmitting terminal AF example, the action of transmitting terminal AF example includes:Produce new message; Ethernet type field is set;It is AIS message to arrange OAM message type;OAM protocol version field is set;If Put flag;Setting source MAC;Purpose MAC is set;MEG level is set.
By the present invention, using the AF autonomy function example of new definition, message is forwarded, so can complete right The forwarding of OAM association message, solves the forward process that autonomy function AF example can not complete OAM association message Problem, meets its functional requirement in terms of protection recovery and OAM.
Description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, the present invention Schematic description and description be used for explain the present invention, do not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the occupation mode of the AF autonomy function in correlation technique;
Fig. 2 is the flow chart one of the processing method of message according to embodiments of the present invention;
Fig. 3 is the flowchart 2 of the processing method of message according to embodiments of the present invention;
Fig. 4 is the flow chart 3 of the processing method of message according to embodiments of the present invention;
Fig. 5 is the structured flowchart one of the processing meanss of message according to embodiments of the present invention;
Fig. 6 is the structured flowchart two of the processing meanss of message according to embodiments of the present invention;
Fig. 7 is the structured flowchart three of the processing meanss of message according to embodiments of the present invention;
Fig. 8 is the schematic diagram of the AF autonomy function example of the new definition provided according to the preferred embodiment of the present invention;
Fig. 9 is the schematic diagram of the related message field (MFLD) of OAM according to the preferred embodiment of the invention;
Figure 10 is connectivity verification functional sequence schematic diagram according to the preferred embodiment of the invention;
Figure 11 is the schematic diagram of a CCM message format according to the preferred embodiment of the invention;
Figure 12 is loop fuction schematic flow sheet according to the preferred embodiment of the invention;
Figure 13 is path trace facility schematic flow sheet according to the preferred embodiment of the invention;
Figure 14 is fault indication function schematic flow sheet according to the preferred embodiment of the invention.
Specific embodiment
Below with reference to accompanying drawing and in conjunction with the embodiments describing the present invention in detail.It should be noted that in the feelings that does not conflict Under condition, the embodiment in the application and the feature in embodiment can be mutually combined.
It should be noted that description and claims of this specification and the term " first " in above-mentioned accompanying drawing, " second " Etc. be for distinguishing similar object, without for describing specific order or precedence.
A kind of processing method of message is provided in the present embodiment, Fig. 2 is the process of message according to embodiments of the present invention The flow chart one of method, as shown in Fig. 2 the flow process comprises the steps:
Step S202, in software defined network SDN framework, by executing the autonomy function AF example pair for pre-setting Message is forwarded;Wherein, AF example includes at least one of field:AF identifier field, AF class type-word Section, AF index time field, instruction field, cycle time field, count area, mode field.
It should be noted that above-mentioned AF identifier field, for one AF example of unique mark;AF type field, For identifying the type of AF example;AF index time field, for indicating number of times that AF example is cited, if quilt It is 0 to quote number of times, then switch deletes the AF example, if this quotes number of times is set to maximum, then it represents that the AF Forever effectively, switch will not delete the AF example to example;Instruction field, for indicating the stream performed by AF example Waterline is processed and action;Cycle time field, for indicating the time of AF example periodically transmission message;Count area, For indicating the number of message that AF example is received;Mode field, for indicating whether AF example is effective.
Above-mentioned message can be OAM message, or the message of other forms.
By above-mentioned steps, message is forwarded by the AF example of new definition, report related to OAM can be realized The forwarding of text, and then solve in the related, autonomy function AF example can not complete turning for OAM association message The problem for processing is sent out, meets its functional requirement in terms of protection recovery and OAM.
In an alternate embodiment of the present invention where, Fig. 3 is the flow process of the processing method of message according to embodiments of the present invention Figure two, as shown in figure 3, before step S202, said method also includes:
Step S302, obtains message by least one of mode:Receive what controller was issued by executing AF example Message;By the message sent on AF example desampler;Message is produced by AF example.
It should be noted that AF example can be the AF example (i.e. transmitting terminal AF example) in first node, it is also possible to For the AF example in intermediate node, or the AF example in tail node (i.e. receiving terminal AF example), above-mentioned logical Cross AF example generation message mainly to stress to refer to produce message by the AF example in first node, other two ways are to AF Example does not do any restriction, i.e., which can both be the AF example of transmitting terminal AF example, or intermediate node, It can also be receiving terminal AF example.
In embodiments of the present invention, Fig. 4 is the flow chart 3 of the processing method of message according to embodiments of the present invention, such as schemes Shown in 4, before step S302, said method includes:
Step S402, pre-sets the action of AF example.
It should be noted that the action of above-mentioned AF example can refer to expand the instruction field in AF example, i.e., Action in extension AF example indicated by instruction field, and then can further complete the forwarding of OAM association message Process, and then better meet functional requirement of the AF in terms of protection recovery and OAM.
Above-mentioned AF example can realize different functions, such as realize far-end fault detecting function, Ethernet Loopback function, Path trace facility, fault indication function, when different functions are completed, to the action of AF example extension also not With.
In an optional embodiment, when AF example is used for realizing far-end fault detection, message disappears for connectivity verification Breath CCM message;When AF example is transmitting terminal AF example, the action of transmitting terminal AF example includes:Output is right Etc. Maintenance Entity end points Output Peer MEP action, the Set Field action of setting-domain, output port Output port Action;When AF example is receiving terminal AF example, the action of receiving terminal AF example includes:Export to external software Module, wherein, the external software module is reverse in triggering receiving terminal Maintenance Entity end points MEP for judging whether AF example produces the CCM message for being provided with that remote bug indicates RDI.
It should be noted that be not received by transmitting terminal AF in cooler cycle time in outside software module sending over Message in the case of, then can periodically trigger reverse AF example and send reverse CCM message to transmitting terminal, wherein, RDI flag is provided with the reverse CCM message.
It should be noted that the setting of the action of above-mentioned transmitting terminal AF example can have certain order, such as, first set The reciprocity Maintenance Entity end points Output Peer MEP action of output is put, then Set Field action is set, finally arrange Output port action.Wherein, Output Peer MEP action needs to produce a new message for instruction, and sends To opposite end MEP.
Above-mentioned Set-Field action includes at least one of:Setting source media access control MAC;Purpose MAC is set; Ethernet type field is set;Maintaining entity group hierarchy is set;Operation Administration and Maintenance OAM protocol version is set;Arrange CCM type of message;Flag is set;The side-play amount of type lengths values TLV is set;Sequence number is set;Arrange and send The mark of end MEP;Maintenance Entity MEG mark is set.It should be noted that CCM type of message is set, if It is 1 to put its corresponding field value,;Above-mentioned flag can include two, and one identifies for RDI, and one is the transmission cycle Whether mark, break down for identification path.
In embodiments of the present invention, when AF example is used for realizing Ethernet Loopback, message is loopback message;In AF When example is transmitting terminal AF example, the action of transmitting terminal AF example includes:It is sent to port;In AF example for connecing When receiving end AF example or intermediate ends AF example, the action of AF example includes:Source address and destination address is exchanged, if The operation coding OpCode for putting loopback message is 2, arranges output port.It should be noted that by loopback message OpCode is set to 2, and the type for indicating above-mentioned OAM message is loopback response LBR message.
In embodiments of the present invention, when AF example is used for realizing Ethernet path trace facility, message is path trace Message LTM message;When AF example is transmitting terminal AF example, the action of transmitting terminal AF example includes:It is sent to Port;When AF example is receiving terminal AF example or the AF example in intermediate node, the action of AF example includes: Lifetime value TTL subtracts 1, and source address is set to AF example place Maintenance Entity intermediate node or tail node MAC address, LTM outlet identity type length value TLV value field is set to current hop LTM The node identification of message, output port.
In addition, when AF example is receiving terminal AF example or the AF example in intermediate node, above-mentioned AF example Action can also include:OpCode field in OAM message is set, source MAC field is copied to ether The target MAC (Media Access Control) address field in net head portion, deletes source MAC field target MAC (Media Access Control) address field, adds next Individual outlet identification field to mark TLV in, output port.
In embodiments of the present invention, when AF example is used for realizing fault indication function, message is alarm indication signal AIS Message;When AF example is transmitting terminal AF example, the action of transmitting terminal AF example includes:Produce new message; Ethernet type field is set;It is AIS message to arrange OAM message type;OAM protocol version field is set;If Put flag;Setting source MAC;Purpose MAC is set;MEG level is set.
When the AF example is receiving terminal AF example, the action of the receiving terminal AF example includes:Will through institute State the AIS message after receiving terminal AF example place MEP is proved to be successful and be sent to external software module;Wherein, described External software module is used for judging whether that the reverse AF example triggered in the receiving terminal Maintenance Entity end points MEP is produced Life is provided with the AIS message that remote bug indicates RDI.
It should be noted that the external software module no longer periodically triggers the repercussion according to the information for receiving AIS message AF example produces the AIS message for being provided with RDI.
Through the above description of the embodiments, those skilled in the art is can be understood that according to above-described embodiment Method can add the mode of required general hardware platform by software to realize, naturally it is also possible to by hardware, but a lot In the case of the former is more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing The part for having technology to contribute can be embodied in the form of software product, and the computer software product is stored in one In storage medium (as ROM/RAM, magnetic disc, CD), use so that a station terminal equipment (can including some instructions To be mobile phone, computer, server, or the network equipment etc.) execute method described in each embodiment of the present invention.
A kind of processing meanss of message are additionally provided in the present embodiment, and the device is used for realizing above-described embodiment and preferred reality Mode is applied, had carried out repeating no more for explanation.As used below, term " module " can realize predetermined work( The software of energy and/or the combination of hardware.Device although described by following examples is preferably realized with software, but Hardware, or the realization of the combination of software and hardware is also may and to be contemplated.
Fig. 5 is the structured flowchart one of the processing meanss of message according to embodiments of the present invention, as shown in figure 5, the device bag Include:
Forwarding module 52, in software defined network SDN framework, by executing the autonomy function AF for pre-setting Example is forwarded to message;Wherein, AF example includes at least one of field:AF identifier field, AF Type field, AF index time field, instruction field, cycle time field, count area, mode field.
It should be noted that above-mentioned AF identifier field, for one AF example of unique mark;AF type field, For identifying the type of AF example;AF index time field, for indicating number of times that AF example is cited, if quilt It is 0 to quote number of times, then switch deletes the AF example, if this quotes number of times is set to maximum, then it represents that the AF Forever effectively, switch will not delete the AF example to example;Instruction field, for indicating the stream performed by AF example Waterline is processed and action;Cycle time field, for indicating the time of AF example periodically transmission message;Count area, For indicating the number of message that AF example is received;Mode field, for indicating whether AF example is effective.
Above-mentioned message can be with defeated OAM message, or the message of other forms.
By said apparatus, message is forwarded by the AF example of new definition, report related to OAM can be realized The forwarding of text, and then solve in the related, autonomy function AF example can not complete turning for OAM association message The problem for processing is sent out, meets its functional requirement in terms of protection recovery and OAM.
In an alternate embodiment of the present invention where, Fig. 6 is the structure of the processing meanss of message according to embodiments of the present invention Block diagram two, as shown in fig. 6, said apparatus also include:
Acquisition module 62, is connected with above-mentioned forwarding module 52, for obtaining message by least one of mode:Logical Cross the message for executing that AF example reception controller is issued;By the message sent on AF example desampler;Pass through AF example produces message.
It should be noted that AF example can be the AF example (i.e. transmitting terminal AF example) in first node, it is also possible to For the AF example in intermediate node, or the AF example in tail node (i.e. receiving terminal AF example), above-mentioned logical Cross AF example generation message mainly to stress to refer to produce message by the AF example in first node, other two ways are to AF Example does not do any restriction, i.e., which can both be the AF example of transmitting terminal AF example, or intermediate node, It can also be receiving terminal AF example.
Fig. 7 is the structured flowchart three of the processing meanss of message according to embodiments of the present invention, as shown in fig. 7, said apparatus Also include:
Setup module 72, is connected with above-mentioned acquisition module 62, for pre-setting the action of AF example.
It should be noted that the action of above-mentioned AF example can refer to expand the instruction field in AF example, i.e., Action in extension AF example indicated by instruction field, and then can further complete the forwarding of OAM association message Process, and then better meet functional requirement of the AF in terms of protection recovery and OAM.
Above-mentioned AF example can realize different functions, such as realize far-end fault detecting function, Ethernet Loopback function, Path trace facility, fault indication function, when different functions are completed, to the action of AF example extension also not With.
In an optional embodiment, when AF example is used for realizing far-end fault detection, message disappears for connectivity verification Breath CCM message;When AF example is transmitting terminal AF example, the action of transmitting terminal AF example includes:Output is right Etc. Maintenance Entity end points Output Peer MEP action, the Set Field action of setting-domain, output port Output port Action;When AF example is receiving terminal AF example, the action of receiving terminal AF example includes:Export to external software Module, wherein, the external software module is reverse in triggering receiving terminal Maintenance Entity end points MEP for judging whether AF example produces the CCM message for being provided with that remote bug indicates RDI.
It should be noted that be not received by transmitting terminal AF in cooler cycle time in outside software module sending over Message in the case of, then can periodically trigger reverse AF example and send reverse CCM message to transmitting terminal, wherein, RDI flag is provided with the reverse CCM message.
It should be noted that the setting of the action of above-mentioned transmitting terminal AF example can have certain order, such as, first set The reciprocity Maintenance Entity end points Output Peer MEP action of output is put, then Set Field action is set, finally arrange Output port action.Wherein, Output Peer MEP action needs to produce a new message for instruction, and sends To opposite end MEP.
Above-mentioned Set-Field action includes at least one of:Setting source media access control MAC;Purpose MAC is set; Ethernet type field is set;Maintaining entity group hierarchy is set;Operation Administration and Maintenance OAM protocol version is set;Arrange CCM type of message;Flag is set;The side-play amount of type lengths values TLV is set;Sequence number is set;Arrange and send The mark of end MEP;Maintenance Entity MEG mark is set.It should be noted that CCM type of message is set, if It is 1 to put its corresponding field value,;Above-mentioned flag can include two, and one identifies for RDI, and one is the transmission cycle Whether mark, break down for identification path.
In embodiments of the present invention, when AF example is used for realizing Ethernet Loopback, message is loopback message;In AF When example is transmitting terminal AF example, the action of transmitting terminal AF example includes:It is sent to port;In AF example for connecing When receiving end AF example or intermediate ends AF example, the action of AF example includes:Source address and destination address is exchanged, if The operation coding OpCode for putting loopback message is 2, arranges output port.It should be noted that by loopback message OpCode is set to 2, and the type for indicating above-mentioned OAM message is loopback response LBR message.
In embodiments of the present invention, when AF example is used for realizing Ethernet path trace facility, message is path trace Message LTM message;When AF example is transmitting terminal AF example, the action of transmitting terminal AF example includes:It is sent to Port;When AF example is receiving terminal AF example or the AF example in intermediate node, the action of AF example includes: Lifetime value TTL subtracts 1, and source address is set to AF example place Maintenance Entity intermediate node or tail node MAC address, LTM outlet identity type length value TLV value field is set to current hop LTM The node identification of message, output port.
In addition, when AF example is receiving terminal AF example or the AF example in intermediate node, above-mentioned AF example Action can also include:OpCode field in OAM message is set, source MAC field is copied to ether The target MAC (Media Access Control) address field in net head portion, deletes source MAC field target MAC (Media Access Control) address field, adds next Individual outlet identification field to mark TLV in, output port.
In embodiments of the present invention, when AF example is used for realizing fault indication function, message is alarm indication signal AIS Message;When AF example is transmitting terminal AF example, the action of transmitting terminal AF example includes:Produce new message; Ethernet type field is set;It is AIS message to arrange OAM message type;OAM protocol version field is set;If Put flag;Setting source MAC;Purpose MAC is set;MEG level is set.
When the AF example is receiving terminal AF example, the action of the receiving terminal AF example includes:Will through institute State the AIS message after receiving terminal AF example place MEP is proved to be successful and be sent to external processing module;Wherein, described External software module is used for judging whether that the reverse AF example triggered in the receiving terminal Maintenance Entity end points MEP is produced Life is provided with the AIS message that remote bug indicates RDI.
It should be noted that the external software module no longer periodically triggers the repercussion according to the information for receiving AIS message AF example produces the AIS message for being provided with RDI.
It should be noted that above-mentioned modules can be by software or hardware to realize, for the latter, Ke Yitong Cross in the following manner to realize, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or, above-mentioned module distinguishes position In multiple processors.
In order to be better understood from the present invention, the present invention is further explained below in conjunction with preferred embodiment.
The embodiment of the present invention defines a kind of autonomy function AF solution based on pattern, i.e., by current standardized OpenFlow object and some new objects are defined, recover and OAM side in protection for meeting AF autonomy function The functional requirement in face.
Fig. 8 is the schematic diagram of the AF autonomy function example of the new definition provided according to the preferred embodiment of the present invention, such as Fig. 8 It is shown,
Wherein, each field is defined as follows:
AF identifier:For one AF autonomy function example of unique mark
AF type:For identifying the type of AF autonomy function
AF index number of times:It is a count area, for calculating the number of times that this AF is cited, if be not cited, This AF is then deleted;If provided as maximum, then it represents that forever effectively, switch will not delete this AF to this example Autonomy function example.
Instruction:Instruction (Instructions) field, continues to use the definition in original OpenFlow standard, i.e. each stream Entry includes one or more Instructions field, when there is message to mate this stream entry, these Instructions words Section will be performed, equally in an AF autonomy function example, it is also possible to by multiple Instructions fields, here When bar AF autonomy function example is cited, these Instructions will be performed.The embodiment of the present invention is enriched Original structure, increased the data structure of AF, using Instructions and add some new actions can be complete Become the OAM(Operation Administration Maintenance) that some are complicated, such as, (this can pass through similar to control for the action of the new packet of generation The reserved port of device (CONTROLLER) defines the related action for producing message to realize), specifically The expansion of Instructions instruction field is further described through in embodiment in detail below.
Cycle time:Periodic time field, sends time or the periodic receipt report of message for record period The time of text.
Count:Counter field, for recording the number of the message being currently received, can be used for follow-up packet loss statistics.
State:Status field, for current AF autonomy function example being described whether effectively, if invalid, no Execute corresponding instruction.
In the preferred embodiment of the invention, the AF autonomy function based on pattern of new definition is existing by combining OpenFlow flow table and group table, the protection for completing the complexity that some current flow table patterns cannot be completed recover and some OAM behavior, can be specifically following three kinds of scenes:
1), OpenFlow logical switch (OpenFlow Logic Switch, abbreviation OFLS) is mated to message Flow table is mated, and the message that will match to is forwarded to specific AF example and processed, AF example after processing, Message can be gone to flow table and do matching treatment, it is also possible to go to group table and forward, port can be more passed directly to by message Forward.Under this situation, AF autonomy function is only processed to receiving message, then does corresponding forwarding. This kind of AF example can be applied in first node, intermediate node.
2), AF example periodically produces message (such as CCM message) or according to OpenFlow flow waterline and one A little external drive factors produce message, then according to the flow table forward-path that configured in advance is good, forward the packet to specific Flow table does further forward process.This kind of AF autonomy function example is mainly used in first node.
3), AF example supports the outer configuration mode of band, in terms of this is mainly based upon some AF behavior complexities and configuration Consideration, object that AF pointed to outside a band can be configured processing.Specifically, can be by a character string ginseng Count external object is pointed to, message is delivered to external object to do more complicated process.
Above-mentioned AF can use the chip with programmable ability, it is also possible to using the chip of fixing rules of arrangement.
AF be applied primarily to protection recover and OAM scene in, based on this, the embodiment of the present invention is according in Y.1731 The OAM(Operation Administration Maintenance) of definition is illustrating the occupation mode of AF.The AF example that introduces in embodiment, mainly from transmitting terminal MEP AF, receiving terminal MEP AF, and intermediate node Maintenance Entity intermediate point (MA Intermediate Point, referred to as MIP) illustrate in terms of AF etc. three.
For Ethernet OAM message, head message is the same, in addition to Ethernet header, Fig. 9 It is the schematic diagram of the related message field (MFLD) of OAM according to the preferred embodiment of the invention, as shown in figure 9, specifically each field Implication as follows:
MEL (MEG level):Using an integer numeral, the level that MEG is located is identified.
Version (version):Integer number is used for identifying the version of OAM agreement.
OpCode (operation coding):Integer number is used for identifying the type of OAM message.
Flags (is identified):Related with specific OAM message.
TLV offset (TLV side-play amount):The side-play amount of first TLV in OAM message.
Extend firstly the need of doing to existing flow table so as to the OpCode field of OAM message can be mated, namely obtained The type of OAM message is taken, then according to the type of specific OAM message, OAM message is indexed others AF is further being processed.Behavior in examples below and accompanying drawing be all clear and definite OAM message type it The behavior that is done afterwards.
Embodiment one:Ethernet connectivity verification function and far-end fault detection
Ethernet connectivity verification function be used for active OAM scene, its function be for detect a MEG in two MEP Between connecting fault, Figure 10 is connectivity verification functional sequence schematic diagram according to the preferred embodiment of the invention, as Figure 10 institute Show, MEP1 periodically sends CCM message to MEP2, detects for connecting fault, when MEP2 is in unit week The CCM message that MEP1 is sended over is not detected by time phase, can be sent and is provided with far-end fault flag (Remote Defect Indication, abbreviation RDI) CCM message to MEP1, for representing that connection breaks down.Ethernet Connectivity verification function may apply to fault management, performance monitoring and pretection switch application.
1), MEP1 transmitting terminal MEP Source CC AF (Maintenance Entity end points source connectivity verification message autonomy function): Transmitting terminal MEP needs periodically to produce and send CCM (connectivity verification message) message to receiving terminal MEP, This AF autonomy function example can be referred to by external software module, this AF is activated certainly by periodically triggering Function example is controlled, periodically to send CCM message.The CCM message of transmitting terminal is produced by MEP Source CC AF Raw, and corresponding port is sent to, it is sent to next node.In MEP Source CC AF autonomy function example, The survival duration is set to the time for periodically sending, i.e., every this time period, need to send a CCM message. Instruction (Instructions) field needs execute encapsulation CCM message, and the behavior such as forwards from corresponding port, Specifically, instruction (Instructions) field is by specific Apply-Actions action (s) or Write-Actions Action (s) completes these functions, but the action defined in existing OpenFlow agreement e insufficient to meet these row above-mentioned For needing to be defined as follows the action of several new extensions:
A), newly a reserved port is defined, Peer MEP (reciprocity MEP), using action Output MIP/Peer MEP Representing needs to produce a new message, and is sent to opposite end MEP.
B), after new message is produced, need to be configured specific field by extending Set-Field action, Figure 11 is the schematic diagram of a CCM message format according to the preferred embodiment of the invention, as shown in figure 11, so tool The Set-Field action of body includes:
Set-Field Source MAC:Setting source MAC
Set-Field Destination MAC:Purpose MAC is set
Set-Field Eth-Type:Ethernet type field is set, illustrates that this is an OAM message
Set-Field MEL:MEG level is set;
Set-Field Version:OAM protocol version is set;
Set-Field OpCode:CCM type of message is set, is currently set for 1;
Set-Field Flags:Flag is set, currently only two flags, i.e. RDI identifies and send cycle Period Mark, RDI are arranged by transmitting terminal MEP, and whether identification path breaks down.
Set-Field TLV Offset:The side-play amount of TLV is set, for CCM message, is fixed as 70;
Set-Field Sequence Number:Currently 0 is set to entirely;
Set-Field MEP ID:The mark of transmitting terminal MEP is set;
Set-Field MEG ID:MEG ID is set;
Remaining field wouldn't be arranged.
Or by the way of another setting field, i.e.,:
The mode of Set-Field (fields offset amount, field length, field value) is given an example and arranging each field Say, for above-mentioned front two Set-Field, could be arranged to as follows:
Set-Field (0,48, source MAC)
Set-Field (48,96, target MAC (Media Access Control) address)
Set-Field (96,112, message load type)
Set-Field (112,3, specific MEG level value)
Set-Field (115,5, current OAM protocol version)
(for the hardware programming for becoming increasingly complex, replicated by the way of above-mentioned side-play amount, length and can bring unification Coded system.)
Forwarding model in addition to the above-mentioned mode that OAM message field is set by AF autonomy function example, also separately A kind of outer mode, i.e., using each message identical field of AF autonomy function example setting, such as setting ethernet type, OAM protocol version etc. is set, and then group table is using multicast attribute come the field different to arrange message, such as sets Source address is put, the information such as destination address, and it is forwarded to different opposite end MEP.
C), for transmitting terminal MEP, the setting order of its action is:
The all of Set Field action Output port of Output MIP/Peer MEP
If by the way of above-mentioned group of table, then the setting of action order is:
Output MIP/Peer MEP Set Field arranges packet identical field and redirects group table setting data The different field Output port of bag
Mode field is set to 1, represents and enables the function of periodically sending message, and if provided as 0, this AF is autonomous Function example does not work.
Count area is set to the quantity of the CCM message being currently received.
2), intermediate node MIP:Intermediate node need not be concerned about CCM message.
3), MEP2 receiving terminal MEP CC Sink AF (Maintenance Entity end points place connectivity verification message autonomy function): Receiving terminal MEP wishes to receive periodic CCM message, during the cycle of MEP Sink CC AF autonomy function example Between field be set to a desired value, i.e. receiving terminal MEP and wish that receiving opposite end MEP in the range of this time is transmitted across The CCM message packet for coming, if be not received by, illustrates that path has been broken down.Receiving terminal MEP is first The destination address of matching message, then mates specific OAM message type field, namely OpCode field, determines It is CCM message packet, message is delivered to specific receiving terminal AF autonomy function example and is processed.
Message is sent to outside software module by the following actions of extension to remember by the AF autonomy function example of receiving terminal Record state, external software module mainly maintain a timer, if in the cooler cycle time (transmission of usually three times Time) in be not received by the message that MEP Sink CC AF example is sended over, then periodically can trigger reversely MEP Source CC AF example (equivalent to the reverse AF example in above-described embodiment), namely the MEP of MEP2 Source CC AF example, triggers the transmission of reverse CCM message.
The action of extension is:Output external software module
External software module completes the positioning of external software module by a string XML or JSON character.
4), MEP2 transmitting terminal MEP Source CC AF (Maintenance Entity end points source connectivity verification message autonomy function): This CCM message is different from aforesaid CCM message to be to have exchanged source address and destination address, and is provided with RDI Flag.
5), MEP1 receiving terminal MEP Sink CC AF (Maintenance Entity end points place connectivity verification message autonomy function): MEP1 is receiving the CCM message for being provided with RDI flag that MEP2 is sended over, and message is given outside soft Part module is processed, and, after analyzing to message, reporting fault is to controller for external software module, while trigger protection Switch, data flow is switched on standby path.
Embodiment two:Ethernet Loopback function
The Main Function of Ethernet Loopback function is to detect the connectivity between MEP and MIP or equity MEP.Have The message of the Ethernet Loopback function of the following two kinds form:
Unicast Ethernet Loopback and multicast Ethernet Loopback.
Ethernet Loopback function is a kind of function on demand, and need not response speed faster, traditional side can be passed through Formula, i.e., by controller come encapsulated message, be then sent to transmitting terminal MEP, complete loopback message by transmitting terminal MEP Forwarding;There can also be the external software module on switch to carry out packaging ring return text, be sent to AF autonomy function example Complete the forwarding of loopback message;The generation of message, this enforcement can also be triggered using the mode similar to CCM message Example employs second method.
Figure 12 is loop fuction schematic flow sheet according to the preferred embodiment of the invention, as shown in figure 12:
1), MEP transmitting terminal MEP Source LBM (Loop Back Message) AF (Maintenance Entity end points source ring Return message autonomy function):The loopback message that controller or external software module are sended over is received, and is sent to concrete Exit port.Comprising action have:It is sent to port.
2), MIP/MEP LBR (Loop Back Request) AF (Maintenance Entity end points loopback response autonomy function): The loopback message that distal end sends over is received, if this autonomy function example is that unicast message is processed, executes following expansion Action after exhibition:
Swap source MAC address and destination MAC address:Exchange source address and destination address.
Set Field OpCode:2 are set to, explanation is LBR message.
Output port:Forward from certain port and go back.
Or by the way of another is general, i.e. the mode of (fields offset amount, field length, field value), tool Body is as follows:
Swap (0,48,48), here the implication of three fields be not equal to above-mentioned (fields offset amount, field length, Field value), implication is changed to (1 initial bits position of exchange area, the initial bits position of exchange area 2, zone length)
Set-Field (120,8,2)
Output port
3), MEP transmitting terminal MEP Sink LBM AF (Maintenance Entity end points place loopback message autonomy function):Receive The LBR message of return, and local external software module is given, there is external software module further to be processed, if Response message is not received in certain time, external software module can be sent a notification message to controller.
Embodiment three:Path trace facility
Ethernet path trace facility is a kind of function on demand, is mainly used to do syntople inquiry and fault location, Figure 13 is path trace facility schematic flow sheet according to the preferred embodiment of the invention, as shown in figure 13.
1), MEP transmitting terminal MEP Source LTM AF (Maintenance Entity end points source path tracks message autonomy function): The LTM path trace message that external software module sends is received, is forwarded from the port that had both set.Comprising action Have:It is sent to exit port.
2), MIP intermediate node MIP LTM AF (Maintenance Entity intermediate node path trace message autonomy function): Intermediate node after coupling, LTM path trace message message is forwarded after LTR path trace message is received Further processed to MIP LTM AF autonomy function example, the major function of MIP LTM AF autonomy function example It is to copy ttl field and Target MAC field in metadata to, then packet and metadata is passed It is delivered to flow table further to be mated;If flow table coupling TTL is 0, packet discard, if TTL is not 0, And Target MAC Address can be matched, then data are forwarded a packet to group table and the process that forwards is done, otherwise abandon;Group table After the LTM message for sending over is received, two kinds of different forward process can be done, one kind is gone out to hold from corresponding Mouth forwards LTM path trace message message to next-hop switch, and action now to be done includes:TTL subtracts one, source Address is set to the MAC Address of current MIP, and it is current hop to arrange LTM egress identifier TLV value field The node identification of this LTM path trace message, comprising action as follows:
Set Field (176,8, currency -1)
Set Field (0,48, the MAC Address of present node)
Set Field (296,48, the MAC Address of present node)
Output port
Another kind of process is based on the LTM path trace message message for receiving, and sends LTR path trace response message To sending node, action now to be done includes:Corresponding OpCode field is set, copies original MAC address To the destination address field of Ethernet head, original MAC address and Target MAC is deleted Address field, adds Next egress identifier field in identifier TLV, and concrete action is as follows:
Set Field (120,8,4), is set to LTR message
Copy Field (184,48,48), three field meanings are for (copy source region side-play amount, copies purpose region Side-play amount, copies bit length)
Delete Field (184,96), the implication of two fields is (deleting zone shift amount, delete zone length)
Add Field (264,48, value) value here is the MAC ground that will be added to next egress identifier field Location.
Output Port
Action in above two processing mode be for programmable AF autonomy function example, if using fixation compile The chip of row's rule, the action for needing definition related.
3), tail node MIP/MEP LT AF:Tail node MIP/MEP LTM AF is receiving LTM path trace report After text, the operation similar with intermediate node is executed, except for the difference that, tail node only does LTR path trace response.
Example IV:Fault indication function
One MEP, when service layer's fault is detected, is notified that the generation of client trail compacting alarm, this Sample can avoid the path switching that large-scale fault warning causes.Figure 14 is fault according to the preferred embodiment of the invention Function schematic flow sheet is indicated, as shown in figure 14, two nodes are service node layer in the middle of in figure, and other are client layer Node, service node layer can send alarm indication signal (Alarm to the introductory path of service layer after fault is detected Indication Signal, abbreviation AIS) message, suppress the transmission of fault and alarm information.
1), external software module is not received by CCM message within cycle time, then assert that event occurs in service layer path Barrier, now external software module inspires ETH-AIS AF, periodically produces AIS message and is sent to client layer, then Message is delivered to the table of specific group all types, then forwards the packet to specific MEG level (MEG layer Secondary).Now, the action of ETH-AIS AF:
Output MIP/Peer MEP:Produce new message
Set-Field Eth-Type:Ethernet type field is set, illustrates that this is an OAM message
Set-Field OpCode:It is AIS message to arrange OAM message type
Set-Field Version:Version field is set
Set-Field Flags:Flag is set, the transmission cycle is mainly set.
Group table is receiving what ETH-AIS AF was sended over
Set-Field Source MAC:Setting source MAC
Set-Field Destination MAC:Purpose MAC is set
Set-Field MEL:MEG level is set
2), in receiving terminal, need flow table verifying purpose MAC Address is first passed through, confirm that node is to receive AIS message Node, then mates OpCode, after confirmation is AIS message, after being proved to be successful, is given to corresponding AIS AF Further to be processed, this message is given external software module by AIS AF, and external software module is according to AIS message In information, periodically do not triggering corresponding MEP CC Source AF (equivalent to the reverse AF example in above-described embodiment) Produce the message for being provided with RDI flag.
Inventive point in the present invention, cannot only be applied in the Ethernet scene in embodiment, it is also possible to be applied to In the scenes such as MPLS/MPLS-TP, optical switching network.
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can To be arranged to store the program code for executing following steps:
S1, in software defined network SDN framework, is entered to message by executing the autonomy function AF example for pre-setting Row is forwarded;Wherein, AF example includes at least one of field:AF identifier field, AF type field, AF Index time field, instruction field, cycle time field, count area, mode field.
Alternatively, in the present embodiment, above-mentioned storage medium can be included but is not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, Magnetic disc or CD etc. are various can be with the medium of store program codes.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment and optional embodiment Example, the present embodiment will not be described here.
Obviously, those skilled in the art should be understood that each module of the above-mentioned present invention or each step can be with general Realizing, they can concentrate on single computing device computing device, or be distributed in multiple computing devices and constituted Network on, alternatively, they can be realized with the executable program code of computing device, it is thus possible to by they Storage is executed by computing device in the storage device, and in some cases, can be held with the order being different from herein The shown or described step of row, or they are fabricated to each integrated circuit modules respectively, or will be many in them Individual module or step are fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware Combine with software.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for the technology of this area For personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made any Modification, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (20)

1. a kind of processing method of message, it is characterised in that include:
In software defined network SDN framework, by executing the autonomy function AF example for pre-setting to the message Processed and forwarded;Wherein, the AF example includes at least one of field:AF identifier field, AF type field, AF index time field, instruction field, cycle time field, count area, mode field.
2. method according to claim 1, it is characterised in that
The AF identifier field, for one AF example of unique mark;
The AF type field, for identifying the type of the AF example;
The AF index time field, for indicating number of times that the AF example is cited;
The instruction field, for indicating the pipeline processes performed by the AF example and action;
The cycle time field, for indicating that the AF example periodically sends time or the week of the message Phase property receives the time of the message;
The count area, for indicating the number of message that the AF example is received;
Whether the mode field is effective for indicating the AF example.
3. method according to claim 1, it is characterised in that before autonomy function AF example is forwarded to message, Methods described also includes:The message is obtained by least one of mode:
Receive, by executing the AF example, the message that controller is issued;
The message sent by the AF example desampler;
The message is produced by the AF example.
4. method according to claim 3, it is characterised in that before message described in the AF case-based system, institute The method of stating includes:
Pre-set the action of the AF example.
5. method according to claim 4, it is characterised in that be used for realizing continuity verification work(in the AF example During energy, the message is connectivity verification message CCM message;
When the AF example is transmitting terminal AF example, the action of the transmitting terminal AF example:Output equity dimension Shield group of entities end points Output Peer MEP action, the Set Field action of setting-domain, output port Output port Action;
When the AF example is receiving terminal AF example, the action of the receiving terminal AF example includes:Export to External software module, wherein, the external software module is used for judging whether to trigger receiving terminal Maintenance Entity end points Reverse AF example in MEP produces the CCM message for being provided with that remote bug indicates RDI.
6. method according to claim 5, it is characterised in that the Set-Field action includes at least one of:
Setting source media access control MAC;Purpose MAC is set;Ethernet type field is set;Arrange and safeguard Entity assembly level;Operation Administration and Maintenance OAM protocol version is set;CCM type of message is set;Flag is set; The side-play amount of type lengths values TLV is set;Sequence number is set;Arrange transmitting terminal Maintenance Entity end points MEP's Mark;Maintenance Entity MEG mark is set.
7. method according to claim 4, it is characterised in that when the AF example is used for realizing Ethernet Loopback, The message is loopback message;
When the AF example is transmitting terminal AF example, the action of the transmitting terminal AF example includes:It is sent to Port;
When the AF example is receiving terminal AF example or intermediate ends AF example, the action bag of the AF example Include:Source address and destination address is exchanged, the operation coding OpCode for arranging the loopback message is 2, arranges defeated Exit port.
8. method according to claim 4, it is characterised in that the AF example be used for realizing Ethernet path with During track function, the message is path trace message LTM message;
When the AF example is transmitting terminal AF example, the action of the transmitting terminal AF example includes:It is sent to Port;
When the AF example is receiving terminal AF example or the AF example in intermediate node, the AF example Action includes:Lifetime value TTL subtracts 1, and source address is set in the AF example place Maintenance Entity Intermediate node or the MAC address of tail node, LTM is exported identity type length value TLV value Field is set to the node identification of LTM message described in current hop, output port.
9. method according to claim 4, it is characterised in that the AF example be used for realizing Ethernet path with During track function, the message is path trace message LTM message;
When the AF example is receiving terminal AF example or the AF example in intermediate node, the AF example Action includes:OpCode field in the OAM message is set, source MAC field is copied to ether The target MAC (Media Access Control) address field in net head portion, deletes target MAC (Media Access Control) address field described in the source MAC field, Add next outlet identification field in mark TLV, output port.
10. method according to claim 4, it is characterised in that be used for realizing fault indication function in the AF example When, the message is alarm indication signal AIS message;
When the AF example is transmitting terminal AF example, the action of the transmitting terminal AF example includes:Produce new Message;Ethernet type field is set;It is the AIS message to arrange OAM message type;OAM association is set View version field;Flag is set;Setting source MAC;Purpose MAC is set;Maintenance Entity MEG layer is set Secondary;
When the AF example is receiving terminal AF example, the action of the receiving terminal AF example includes:To pass through AIS message after the receiving terminal AF example place MEP is proved to be successful is sent to external processing module;Wherein, The external processing module is used for judging whether to trigger the reverse AF in the receiving terminal Maintenance Entity end points MEP Example produces the AIS message for being provided with that remote bug indicates RDI.
11. a kind of processing meanss of message, it is characterised in that include:
Processing module, in software defined network SDN framework, by executing the autonomy function for pre-setting AF example is processed to message and is forwarded;Wherein, the AF example includes at least one of field:AF Identifier field, AF type field, AF index time field, instruction field, cycle time field, count word Section, mode field.
12. devices according to claim 11, it is characterised in that
The AF identifier field, for one AF example of unique mark;
The AF type field, for identifying the type of the AF example;
The AF index time field, for indicating number of times that the AF example is cited;
The instruction field, for indicating the pipeline processes performed by the AF example and action;
The cycle time field, for indicating that the AF example periodically sends time or the week of the message Phase property receives the time of the message;
The count area, for indicating the number of message that the AF example is received;
Whether the mode field is effective for indicating the AF example.
13. devices according to claim 11, it is characterised in that described device also includes:Acquisition module, for leading to Cross at least one of mode and obtain the message:
Receive, by executing the AF example, the message that controller is issued;
By the message sent on the AF example desampler;
The message is produced by the AF example.
14. devices according to claim 13, it is characterised in that described device also includes:
Setup module, for pre-setting the action of the AF example.
15. devices according to claim 14, it is characterised in that be used for realizing far-end fault detection in the AF example When, the message is connectivity verification message CCM message;
When the AF example is transmitting terminal AF example, the action of the transmitting terminal AF example:Output equity dimension Shield group of entities end points Output Peer MEP action, the Set Field action of setting-domain, output port Output port Action;
When the AF example is receiving terminal AF example, the action of the receiving terminal AF example includes:Export to External software module, wherein, the external software module is used for judging whether to trigger receiving terminal Maintenance Entity end points Reverse AF example in MEP produces the CCM message for being provided with that remote bug indicates RDI.
16. devices according to claim 15, it is characterised in that the Set-Field action includes at least one of:
Setting source media access control MAC;Purpose MAC is set;Ethernet type field is set;Arrange and safeguard Entity assembly level;Operation Administration and Maintenance OAM protocol version is set;CCM type of message is set;Flag is set; The side-play amount of type lengths values TLV is set;Sequence number is set;Arrange transmitting terminal Maintenance Entity end points MEP's Mark;Maintenance Entity MEG mark is set.
17. devices according to claim 14, it is characterised in that when the AF example is used for realizing Ethernet Loopback, The message is loopback message;
When the AF example is transmitting terminal AF example, the action of the transmitting terminal AF example includes:It is sent to Port;
When the AF example is receiving terminal AF example or intermediate ends AF example, the action bag of the AF example Include:Source address and destination address is exchanged, the operation coding OpCode for arranging the loopback message is 2, arranges defeated Exit port.
18. devices according to claim 14, it is characterised in that the AF example be used for realize Ethernet path with During track function, the message is path trace message LTM message;
When the AF example is transmitting terminal AF example, the action of the transmitting terminal AF example includes:It is sent to Port;
When the AF example is receiving terminal AF example or the AF example in intermediate node, the AF example Action includes:Lifetime value TTL subtracts 1, and source address is set in the AF example place Maintenance Entity Intermediate node or the MAC address of tail node, LTM is exported identity type length value TLV value Field is set to the node identification of LTM message described in current hop, output port.
19. devices according to claim 14, it is characterised in that the AF example be used for realize Ethernet path with During track function, the message is path trace message LTM message;
When the AF example is receiving terminal AF example or the AF example in intermediate node, the AF example Action includes:OpCode field in the OAM message is set, source MAC field is copied to ether The target MAC (Media Access Control) address field in net head portion, deletes target MAC (Media Access Control) address field described in the source MAC field, Add next outlet identification field in mark TLV, output port.
20. devices according to claim 14, it is characterised in that be used for realizing fault indication function in the AF example When, the message is alarm indication signal AIS message;
When the AF example is transmitting terminal AF example, the action of the transmitting terminal AF example includes:Produce new Message;Ethernet type field is set;It is the AIS message to arrange OAM message type;OAM association is set View version field;Flag is set;Setting source MAC;Purpose MAC is set;Maintenance Entity MEG layer is set Secondary;
When the AF example is receiving terminal AF example, the action of the receiving terminal AF example includes:To pass through AIS message after the receiving terminal AF example place MEP is proved to be successful is sent to external software module;Wherein, The external software module is used for judging whether to trigger the reverse AF in the receiving terminal Maintenance Entity end points MEP Example produces the AIS message for being provided with that remote bug indicates RDI.
CN201510559479.7A 2015-09-02 2015-09-02 The processing method and processing device of message Pending CN106487572A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510559479.7A CN106487572A (en) 2015-09-02 2015-09-02 The processing method and processing device of message
PCT/CN2016/082357 WO2017036180A1 (en) 2015-09-02 2016-05-17 Packet processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510559479.7A CN106487572A (en) 2015-09-02 2015-09-02 The processing method and processing device of message

Publications (1)

Publication Number Publication Date
CN106487572A true CN106487572A (en) 2017-03-08

Family

ID=58186640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510559479.7A Pending CN106487572A (en) 2015-09-02 2015-09-02 The processing method and processing device of message

Country Status (2)

Country Link
CN (1) CN106487572A (en)
WO (1) WO2017036180A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166311A (en) * 2018-02-14 2019-08-23 华为技术有限公司 Measure method, equipment and the network system of network performance
CN110233800A (en) * 2019-05-09 2019-09-13 星融元数据技术(苏州)有限公司 A kind of message forwarding method and system of open programmable
CN112073256A (en) * 2020-06-01 2020-12-11 新华三信息安全技术有限公司 Packet loss processing method, device, equipment and machine-readable storage medium
CN112532544A (en) * 2020-11-20 2021-03-19 锐捷网络股份有限公司 Method for processing message and switching equipment
WO2021155637A1 (en) * 2020-02-07 2021-08-12 阿里巴巴集团控股有限公司 Information processing method, device, and system, and storage medium
CN114448865A (en) * 2021-12-23 2022-05-06 东莞市李群自动化技术有限公司 Method, system, device and storage medium for processing service message
CN115242736A (en) * 2022-07-15 2022-10-25 杭州云合智网技术有限公司 Transmission method of light load message

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247797A (en) * 2019-06-04 2019-09-17 深圳市中航比特通讯技术有限公司 One kind accurate Remote Defect when multiple spot ETH is connected to indicates system
EP4340315A1 (en) * 2021-05-10 2024-03-20 Beijing Xiaomi Mobile Software Co., Ltd. Data packet sending method and apparatus, and storage medium
CN114422609A (en) * 2021-12-30 2022-04-29 北京机电工程总体设计部 Data communication method for coexistence of equipment digital identification and name

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9225601B2 (en) * 2013-06-17 2015-12-29 The Board Of Trustees Of The University Of Illinois Network-wide verification of invariants
CN103369613A (en) * 2013-07-05 2013-10-23 中国科学院计算机网络信息中心 System and method for realizing mobile switching based on Open Flow

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166311A (en) * 2018-02-14 2019-08-23 华为技术有限公司 Measure method, equipment and the network system of network performance
CN110233800A (en) * 2019-05-09 2019-09-13 星融元数据技术(苏州)有限公司 A kind of message forwarding method and system of open programmable
WO2021155637A1 (en) * 2020-02-07 2021-08-12 阿里巴巴集团控股有限公司 Information processing method, device, and system, and storage medium
CN112073256A (en) * 2020-06-01 2020-12-11 新华三信息安全技术有限公司 Packet loss processing method, device, equipment and machine-readable storage medium
CN112532544A (en) * 2020-11-20 2021-03-19 锐捷网络股份有限公司 Method for processing message and switching equipment
CN114448865A (en) * 2021-12-23 2022-05-06 东莞市李群自动化技术有限公司 Method, system, device and storage medium for processing service message
CN114448865B (en) * 2021-12-23 2024-01-02 东莞市李群自动化技术有限公司 Service message processing method, system, equipment and storage medium
CN115242736A (en) * 2022-07-15 2022-10-25 杭州云合智网技术有限公司 Transmission method of light load message
CN115242736B (en) * 2022-07-15 2024-04-12 云合智网(上海)技术有限公司 Light load message transmission method

Also Published As

Publication number Publication date
WO2017036180A1 (en) 2017-03-09

Similar Documents

Publication Publication Date Title
CN106487572A (en) The processing method and processing device of message
US9929938B2 (en) Hierarchal label distribution and route installation in a loop-free routing topology using routing arcs at multiple hierarchal levels for ring topologies
JP4031500B2 (en) Node redundancy method, interface card, interface device, node device, and packet ring network system
US9794167B2 (en) Bicasting using non-congruent paths in a loop-free routing topology having routing arcs
CN100583811C (en) Virtual network device
US8838829B2 (en) Pseudowire (PW) switching type-length-value (TLV)
US9769054B2 (en) Network topology discovery method and system
US9246794B2 (en) Label distribution and route installation in a loop-free routing topology using routing arcs
CN110401599B (en) Data packet processing method and device, storage medium and electronic device
CN105933228A (en) Traffic engineering for bit indexed explicit replication
US10164867B2 (en) Generating non-congruent paths having minimal latency difference in a loop-free routing topology having routing arcs
CN102333011B (en) One way link detection method and device
CN106603413B (en) Method and device for transmitting flow through designated path
CN103841017B (en) The method and apparatus that label is distributed automatically in looped network protection
CN103354509B (en) The acquisition methods of a kind of link connection information and equipment
CN105900406A (en) Technique for network service availability
JPWO2011064884A1 (en) Communication system and communication apparatus
CN107968753A (en) The method and apparatus for changing Media Access Control Address forwarding table
CN106506366B (en) A kind of method and node for realizing multi protocol label exchange path inquiry
CN105897580B (en) A kind of unrelated forwarding network quick fault testing of agreement and traffic protection switching method
EP2858302A1 (en) Connectivity check method of service stream link, related apparatus and system
EP2981025B1 (en) Method, network and system for protection switching
CN105790984B (en) Configuration and implementation method of operation maintenance management function and forwarding equipment
WO2016165263A1 (en) Protection switching processing method, apparatus and system for path, and forward device
CN104426778B (en) Route renewing method and routing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170308

WD01 Invention patent application deemed withdrawn after publication