CN105099919A - Message processing method and apparatus - Google Patents

Message processing method and apparatus Download PDF

Info

Publication number
CN105099919A
CN105099919A CN201410206623.4A CN201410206623A CN105099919A CN 105099919 A CN105099919 A CN 105099919A CN 201410206623 A CN201410206623 A CN 201410206623A CN 105099919 A CN105099919 A CN 105099919A
Authority
CN
China
Prior art keywords
message
parameter
node
path
process device
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.)
Granted
Application number
CN201410206623.4A
Other languages
Chinese (zh)
Other versions
CN105099919B (en
Inventor
徐卫平
牛乐宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410206623.4A priority Critical patent/CN105099919B/en
Priority to PCT/CN2015/078508 priority patent/WO2015172675A1/en
Publication of CN105099919A publication Critical patent/CN105099919A/en
Application granted granted Critical
Publication of CN105099919B publication Critical patent/CN105099919B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application discloses a message processing method and an apparatus. The problem that an SF node cannot process messages including service heads is solved. The method includes: the message processing apparatus receives a first message from a service forwarding entity SFE, the first message comprises a second message and a service head packaged in the second message, a service head in the first message comprises a path identifier ID of a service chain, the message processing apparatus obtains the second message and the path ID, and the message processing apparatus processes the second message according to the path ID and obtains a third message. The processing steps for the second message include: a first parameter is added into the second message, wherein the first parameter is the parameter defined according to the path ID; and the message processing apparatus sends the third message to the service function SF node.

Description

Message processing method and device
Technical field
The present invention relates to the communication technology, particularly relate to message processing method and device.
Background technology
The common network equipment is except providing the basic forwarding capability such as exchange, route, (English full name is Value-AddedService also can to provide value-added service, english abbreviation is VAS), such as: the business such as network address translation (English full name is NetworkAddressTranslation, and english abbreviation is NAT), fire compartment wall.
There is provided in the network of value-added service, business chain (English name is servicechain) comprises business categorizing device (English name is serviceclassifier) and N number of business Delivery Function (English full name is serviceforwardingentity, and english abbreviation is SFE).The SFE that servicechain comprises connects successively.SFE is upper connects one or more business function (English full name is servicefunction, and english abbreviation is SF) node.SF node in order to carry out Business Processing to the message received, such as: SF node has the function such as nat feature, fire compartment wall.
The type of service that serviceclassifier in business chain is corresponding according to the message received, for the message received adds business head.This business head comprises the ID of trace route path (English full name is Identifier, and english abbreviation is ID) of business chain corresponding to type of service.Serviceclassifier sends to the SFE connecting serviceclassifier the message comprising this business head.SFE sends to the SF node connecting SFE the message comprising this business head.SF node None-identified comprises the message of business head, and then cannot carry out Business Processing to the message comprising business head.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of message processing method and device, solves the problem that SF node cannot process the message comprising business head.
The technical scheme that the embodiment of the present invention provides is as follows.
First aspect, provides a kind of message processing method, comprising:
Message process device receives the first message from SFE, and described first message comprises the second message and is encapsulated in the business head on described second message, and the described business head in described first message comprises the path ID of business chain;
Described message process device obtains described second message and described path ID;
Described message process device is by processing described second message according to described path ID, obtain the 3rd message, wherein, comprise the process that described second message carries out: the first parameter be added in described second message, described first parameter is the parameter determined according to described path ID;
Described message process device sends described 3rd message to SF node.
In the first possible implementation of above-mentioned first aspect, also comprise:
Described message process device receives the 4th message from described SF node, and described 4th message comprises described first parameter;
Described first parameter that described message process device comprises according to described 4th message, obtains described path ID;
Described message process device is processed described 4th message by the described path ID obtained after receiving described 4th message according to described message process device, obtain the 5th message, wherein, the described process to described 4th message comprises: determine described business head according to described path ID, encapsulates described 4th message with described business head;
Described message process device sends described 5th message to described SFE.
In conjunction with the first possible implementation of above-mentioned first aspect, additionally provide the implementation that the second of first aspect is possible, comprising:
Described message process device is according to the mark of the interface of described first message of reception, and determine to forward described 3rd message according to forwarding-table item, described forwarding-table item comprises the mark of interface and the mark of first interface of described first message of described reception;
Described message process device, by described first interface, sends described 3rd message to described SF node.
In conjunction with the implementation that the second of above-mentioned first aspect is possible, additionally provide the third possible implementation of first aspect, described forwarding-table item also comprises described path ID;
Described message process device, according to the mark of the interface of described first message of reception, is determined to forward described 3rd message according to forwarding-table item, being comprised:
Described message process device, according to the mark of the interface of described path ID and described first message of described reception, is determined to forward described 3rd message according to described forwarding-table item.
In conjunction with the implementation that the second of above-mentioned first aspect is possible, additionally provide the 4th kind of possible implementation of first aspect, described forwarding-table item also comprises the second parameter, and described second parameter is in order to identify described SF node or the upper hop SF node of described SF node in described business chain;
When the business head in described first message comprises described second parameter, described message process device, according to the mark of the interface of described first message of reception, is determined to forward described 3rd message according to forwarding-table item, being comprised:
Described message process device, according to the mark of the interface of described second parameter of carrying in described first message and described first message of described reception, is determined to forward described 3rd message according to described forwarding-table item.
In conjunction with the 4th kind of possible implementation of above-mentioned first aspect, additionally provide the 5th kind of possible implementation of first aspect, comprising:
Described second parameter is added into described business head by described message process device.
In conjunction with any one possible implementation of above-mentioned first aspect or first aspect, additionally provide the 6th kind of possible implementation of first aspect, business head in described first message also comprises the 3rd parameter, described 3rd parameter is that (English full name is operation to Operations, Administration and Maintenance in order to identify described first message, administrationandmaintenance, english abbreviation is OAM) message;
Described message process device also comprises before sending described 3rd message to SF node:
When described message process device determines that described first message comprises described 3rd parameter, and forwarding strategy is when the OAM message from described SFE is sent to described SF node, sends described 3rd message to described SF node.
In conjunction with any one possible implementation of above-mentioned first aspect or first aspect, additionally provide the 7th kind of possible implementation of first aspect, described first parameter is described path ID, or described first parameter is according to the data of algorithm to the rear acquisition of described path ID process.
Second aspect, provides a kind of message process device, comprising:
First receiving element, for receiving the first message from SFE, described first message is the message that encapsulation business head obtains afterwards on the second message, and the described business head in described first message comprises the path ID of business chain;
Decapsulation unit, for obtaining described second message and described path ID;
First acquiring unit, for by processing described second message according to described path ID, obtain the 3rd message, wherein, described first acquiring unit comprises the process that described second message carries out: the first parameter is added in described second message by described first acquiring unit, and described first parameter is the parameter determined according to described path ID;
First retransmission unit, for sending described 3rd message to SF node.
In the first possible implementation of above-mentioned second aspect, also comprise:
Second receiving element, for receiving the 4th message from described SF node, described 4th message comprises described first parameter;
Second acquisition unit, for described first parameter comprised according to described 4th message, obtains described path ID;
Encapsulation unit, for the described path ID by obtaining after receiving described 4th message according to described message process device, described 4th message is processed, obtain the 5th message, wherein, the process of described encapsulation unit to described 4th message comprises: described encapsulation unit determines described business head according to described path ID, encapsulates described 4th message with described business head;
Second retransmission unit, for sending described 5th message to described SFE.
In conjunction with the first possible implementation of above-mentioned second aspect or second aspect, additionally provide the implementation that the second of second aspect is possible, described first retransmission unit is specifically for receiving the mark of the interface of described first message according to described first receiving element, determine that forwarding-table item forwards described 3rd message, described forwarding-table item comprises the mark of interface and the mark of first interface of described first message of described reception;
Described first retransmission unit, specifically for by described first interface, sends described 3rd message to described SF node.
In conjunction with the implementation that the second of above-mentioned second aspect is possible, additionally provide the third possible implementation of second aspect, described forwarding-table item also comprises described path ID;
Described first retransmission unit, specifically for receiving the mark of the interface of described first message according to described path ID and described first receiving element, is determined to forward described 3rd message according to described forwarding-table item.
In conjunction with the implementation that the second of above-mentioned second aspect is possible, additionally provide the 4th kind of possible implementation of second aspect, described forwarding-table item also comprises the second parameter, and described second parameter is in order to identify described SF node or the upper hop SF node of described SF node in described business chain;
When the business head of described first message comprises described second parameter, described first retransmission unit, specifically for receiving the mark of the interface of described first message according to described second parameter of carrying in described first message and described first receiving element, is determined to forward described 3rd message according to described forwarding-table item.
In conjunction with the 4th kind of possible implementation of above-mentioned second aspect, additionally provide the 5th kind of possible implementation of second aspect, described encapsulation unit is specifically for being added into described business head by described second parameter.
In conjunction with any one possible implementation of above-mentioned second aspect or second aspect, additionally provide the 6th kind of possible implementation of second aspect, business head in described first message also comprises the 3rd parameter, and described 3rd parameter is OAM message in order to identify the first message;
Described message process device also comprises:
Control unit, for determining that described first message comprises described 3rd parameter, and forwarding strategy is when the OAM message from described SFE is sent to described SF node, controls described first retransmission unit and sends described 3rd message to described SF node.
In conjunction with any one possible implementation of above-mentioned second aspect or second aspect, additionally provide the 7th kind of possible implementation of second aspect, described first parameter is described path ID, or described first parameter is according to the data of algorithm to the rear acquisition of described path ID process.
By such scheme, message process device of the present invention divests the business head of the first message, obtains the second message.Message process device can from the business head of the first message acquisition approach ID.First parameter corresponding with path ID is added in the second message by message process device, obtains the 3rd message.Message process device sends the 3rd message to SF node.Like this, the 3rd message that SF receives does not comprise business head, solves the problem that SF node cannot process the message comprising business head.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of network scenarios schematic diagram.
A kind of network scenarios schematic diagram that Fig. 2 provides for the embodiment of the present invention.
The schematic diagram of the message process device that Fig. 3 provides for the embodiment of the present invention.
The schematic diagram of the message process device that Fig. 4 provides for the embodiment of the present invention.
The flow chart of the message processing method that Fig. 5 provides for the embodiment of the present invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain, all belongs to the scope of protection of the invention.
Fig. 1 is a kind of network scenarios schematic diagram.Network shown in Fig. 1 comprises serviceclassifier101, SFE102 and SF node 103.SF node can have at least one function in the business function such as NAT, fire compartment wall.A servicechain in network shown in Fig. 1 comprises serviceclassifier101, SFE102 and SF node 103.On this servicechain, serviceclassifier101 encapsulates business head on the message 1001 received, and obtains message 1011.The described business head of message 1011 comprises the path ID of servicechain and default ID.Preset ID in order to identify the upper hop SF node of SF node 103 on servicechain.SFE102 receives the message 1011 from serviceclassifier101.The path ID that SFE102 comprises according to the business head of message 1011 and default ID, determines forwarding-table item.This forwarding-table item comprises path ID, presets ID and outbound port.This outbound port connects SF node 103.SFE102, by this outbound port, sends message 1011 to SF node 103.Due to the business head of SF node 103 None-identified message 1011, the message 1001 that SF node 103 cannot comprise message 1011 carries out Business Processing.
For the problems referred to above, propose the solution that SF node cannot process the message comprising business head.The method increases message process device between SF node and SFE.Message process device processes the business head that the message 1011 received comprises, and the message 1002 that SF node 103 is received does not comprise business head.The method can comprise: message process device divests the business head of the message 1011 from SFE102, obtains message 1001.The path ID that message process device comprises according to the business head of message 1011, obtains first parameter corresponding with path ID.First parameter is added in message 1001 by message process device, obtains message 1002.Message 1002 is sent to SF node by message process device.Because message 1002 does not comprise business head, SF node 103 can carry out Business Processing to message 1002.This solution realizes by following several embodiment.
A kind of network scenarios schematic diagram that Fig. 2 provides for the embodiment of the present invention.Network shown in Fig. 2 comprises serviceclassifier101, SFE102, SF node 103 and message process device 104.Servicechain in network shown in Fig. 2 comprises serviceclassifier101, SFE102, message process device 104 and SF node 103.On described servicechain, serviceclassifier101 and SFE102 communicates; SFE102 communicates with message process device 104; Message process device 104 communicates with SF node 103.If SF node 103 is first SF node on described servicechain, then the upper hop SF node of SF node 103 on described servicechain does not exist.If SF node 103 is not first SF node on described servicechain, described servicechain also can comprise the SF node 105 communicated with message process device 104.SF node 105 is SF node 103 upper hop SF nodes on described servicechain.Message 1010 can be sent to SF node 105 by message process device 104 by SFE102, receives the message 1011 that SF node 105 is sent by message process device 104.Message 1011 is sent to SF node 103 by message process device 104 by SFE102 again, and message 1010 is processed according to the order of SF node on described servicechain.Servicechain described in the embodiment of the present invention also can be business function chain (English full name is servicefunctionchain).
The schematic diagram of a kind of message process device that Fig. 3 provides for the embodiment of the present invention.Message process device shown in Fig. 3 can be the message process device 104 in network shown in Fig. 2.Message process device shown in Fig. 3 can be deployed on servicechain between SFE102 and SF node 103.Or the message process device shown in Fig. 3 can be deployed on same equipment with SFE102.Or the message process device shown in Fig. 3 can be deployed on same equipment with SF node 103.
Message process device shown in Fig. 3 can comprise: processor 1040, memory 1041 and communication interface 1042.Processor 1040, memory 1041 are connected by communication bus 1043 with communication interface 1042.Memory 1041, can also Storage Mapping relation for storage program.Mapping relations are the mapping relations of path ID and the first parameter.
The executable instruction of processor 1040 included by the program read from memory 1041, performs and operates as follows.
Processor 1040, by communication interface 1042, receives the message 1011 from SFE102.Message 1011 is messages that encapsulation business head obtains afterwards on message 1001.The business head of message 1011 comprises the path ID of servicechain.
Processor 1040 divests business head from message 1011, obtains message 1001 and path ID.
Processor 1040, according to path ID and message 1001, obtains message 1002.Message 1002 is that first parameter corresponding with path ID of preserving in memory 1041 is added into the message 1002 obtained in message 1001.
Processor 1040, by communication interface 1042, sends message 1002 to SF node 103.
Alternatively, also the first forwarding-table item can be preserved in memory 1041.The first forwarding-table item preserved in memory 104 comprises the ID of interface and the ID of first interface that receive message 1011.First interface connects SFE node 103.Processor 1040 can, according to the ID of the interface of reception message 1011, be determined to send message 1002 according to the first forwarding-table item.Processor 1040 according to the ID of first interface, can send message 1002 to SF node 103 by communication interface 1042.Wherein, the interface receiving message 1011 connects SFE102.
Alternatively, message 1003 comprises the first parameter.Processor 1040 receives the message 1003 from SF node 103 by communication interface 1042.The first parameter that processor 1040 comprises according to message 1003, obtains the path ID corresponding with the first parameter from memory 1041.Processor 1040, according to path ID and the message 1003 that received by communication interface 1042, obtains message 1013.Wherein, message 1013 is messages that encapsulation business head obtains afterwards on message 1003.The business head of message 1013 comprises path ID.Processor 1040, by communication interface 1042, sends message 1013 to SFE102.
Alternatively, also the second forwarding-table item can be preserved in memory 1041.The second forwarding-table item preserved in memory 104 comprises the ID of interface and the ID of the second interface that receive message 1003.Second interface connects SFE102.Processor 1040 can, according to the ID of the interface of reception message 1003, be determined to send message 1003 according to the second forwarding-table item.Processor 1040 according to the ID of the second interface, can send message 1003 to SFE102 by communication interface 1042.Wherein, the interface receiving message 1003 is connected with SF node 103.
Further, processor 1040, according to the executable instruction in memory 1041 and mapping relations, coordinates with communication interface 1042, all operations performed by message process device in the embodiment making the message process device shown in Fig. 3 perform as shown in Figure 5.Also can think, message process device is as shown in Figure 3 exactly the message process device in embodiment as shown in Figure 5.
The schematic diagram of a kind of message process device that Fig. 4 provides for the embodiment of the present invention.Message process device shown in Fig. 4 comprises: the first receiving element 1044, decapsulation unit 1045, first acquiring unit 1046 and the first retransmission unit 1047.Alternatively, the message process device that the embodiment that Fig. 4 is corresponding provides also comprises: the second receiving element 1048, second acquisition unit 1049, encapsulation unit 1050 and the second retransmission unit 1051.Alternatively, the message process device that the embodiment that Fig. 4 is corresponding provides also comprises memory cell 1052.The mapping relations that memory cell 1052 can be preserved in order to the memory 1041 preserved in Fig. 3.Alternatively, the message process device that the embodiment that Fig. 4 is corresponding provides also comprises control unit 1053.
Message process device shown in message process device shown in Fig. 3 and Fig. 4 can be same device, such as, be the message process device 104 in network shown in Fig. 2.Can think, Fig. 3 shows from the angle of physics the content that a message process device comprises, and Fig. 4 then shows from the angle of logic the content that a message process device comprises.Alternatively, the first receiving element 1044, first retransmission unit 1047, second receiving element 1048 in Fig. 4 and the second retransmission unit 1051 can be realized by the communication interface 1042 in Fig. 3, and communication interface 1042 can comprise at least one physical interface; The executable instruction that decapsulation unit 1045, first acquiring unit 1046 in Fig. 4 and encapsulation unit 1050 can be stored according to memory 1041 by the processor 1040 in Fig. 3 or the executable instruction stored according to memory 1041 and mapping relations realize, and processor 1040 can comprise at least one concurrent physical processor.
A kind of message processing method flow chart that Fig. 5 provides for the embodiment of the present invention.Below in conjunction with Fig. 2 to Fig. 4, the message processing method that the embodiment of the present invention provides is described in detail.
501, SFE102 sends message 1011 to message process device 104.
In network scenarios shown in Fig. 2, SFE102 can receive the message 1010 that serviceclassifier101 sends.Message 1010 can be generated by serviceclassifier101.Such as: serviceclassifier101 receives message 1001.The type of service of serviceclassifier101 corresponding to message 1001, determines the path ID of the servicechain that type of service is corresponding.Serviceclassifier101 encapsulates business head on message 1001, obtains message 1010.The business head of message 1010 comprises the path ID of described servicechain.
Alternatively, when also there is the upper hop SFE of SFE102 on described servicechain between serviceclassifier101 and SFE102, the message 1010 that SFE102 receives comes from the described upper hop SFE of SFE102 on described servicechain.
Alternatively, at least one in protocol type, metadata (English name is metadata) can also be comprised in the business head of message 1010.Metadata can comprise the ID of the user sending message 1001 to serviceclassifier101.
SFE102 according to the path ID in the business head of message 1010, can determine forwarding-table item.This forwarding-table item comprises the ID of path ID and interface.SFE102 according to the ID of interface, can send message 1011 to message process device 104.Wherein, this interface can be the interface that SFE102 connects message process device 104.Or this interface can be the interface that SFE102 connects SF node 103.Because message process device 104 is between SFE102 and SF node, therefore when without the need to upgrading the forwarding-table item in SFE102 or upgrade, just can realize SFE102 and send message 1011 to message process device 104.
The message 1010 that SFE102 receives and SFE102 are sent to the message 1011 of message process device 104 can be identical, also can be sent to the message 1011 of message process device 104 different from SFE102.
502, message process device 104 obtains the path ID of message 1001 and servicechain.
For example, the first receiving element 1044 receives the message 1011 from SFE102.Decapsulation unit 1045 divests the business head of message 1011, obtains message 1001, and from described business head, obtains the path ID of described servicechain.
SFE102 can be the message comprising described business head to the message that SF node 103 sends, and decapsulation unit 1045 directly can obtain the path ID of the servicechain that message 1001 and business head comprise from the message 1011 that the first receiving element 1044 receives.
If also comprise protocol type in the business head of message 1011, the protocol type write storage unit 1052 that decapsulation unit 1045 can also will comprise in business head.There is corresponding relation in the protocol type preserved in memory cell 1052 and path ID.If also comprise metadata in the business head of message 1011, the metadata write storage unit 1052 that decapsulation unit 1045 can also will comprise in business head.There is corresponding relation in the metadata preserved in memory cell 1052 and path ID.The business head of message 1011 can comprise in protocol type and metadata any one or all.
503, message process device 104 is processed message 1001 by the first parameter determined according to path ID, obtains message 1002.Wherein said process comprises and described first parameter being added in message 1001.
First parameter can be path ID itself, or the first parameter can be according to algorithm, to the data of the rear acquisition of path ID process.Described algorithm can be hash algorithm or compression algorithm.Compression algorithm is in order to become N bit data by the data-mapping being greater than N position.N is the data bit that at least one byte packet contains.
First acquiring unit 1046 can obtain message 1002 by the determine according to path ID first parameter being added in message 1001.The first parameter determined according to path ID is added in message 1001 inside referring to and described first parameter is added into message 1001, instead of refer to for message 1001 increases an outer heading, and described first parameter is added in newly-increased outer heading.Alternatively, the mapping relations of the path ID that the first acquiring unit 1046 can be preserved from memory cell 1052 and the first parameter, the first parameter that acquisition approach ID is corresponding.
Alternatively, the first parameter can be added into the preset field in message 1001 by the first acquiring unit 1046.Preset field is at least one field in SF node 103 field that can not be modified when carrying out Business Processing to message 1002.Wherein, the number of preset field can be determined by the byte number shared by the first parameter.If the first parameter is path ID, and path ID is 8, and the first acquiring unit 1046 can select a field storing path ID from message 1001.If the first parameter is path ID, and path ID is greater than 8, the first acquiring unit 1046 can select multiple field to carry out storing path ID from message 1001.If the first parameter is the data obtained path ID process according to algorithm, the first acquiring unit 1046 can, according to the method for above-mentioned storing path ID in message 1001, select one or more field to preserve the first parameter in message 1001.Fields that SF node 103 pairs of messages 1002 carry out can not being modified in business procession by the one or more fields selected in message 1001.
For example, preset field can be VLAN (English full name is VirtualLocalAreaNetwork, and english abbreviation is VLAN) field.If message 1001 is IPv4 message, then preset field can also be that (English full name is typeofservice for the COS of IPv4 message, english abbreviation is TOS) one or more fields in field and life span (English full name is timetolive, and english abbreviation is TTL) field.If message 1001 is IPv6 message, then preset field can also be IPv6 message stream type (English name is trafficclass) field, jumping figure restriction (English name is hoplimit) field and flow label (English name is FlowLabel) field in one or more fields.Can revise Time-To-Live field when processing message 1002 message for SF node 103, the first acquiring unit 1046 prestores the configuration information of SF node 103.The configuration information of SF node 103 is that SF node 103 can revise Time-To-Live field when carrying out Business Processing.First parameter, according to the configuration information of SF node 103, is added into Type-of-Service field by the first acquiring unit 1046, makes SF node 103 the first parameter that surviving path ID is corresponding in the process of process message 1002.
Be 24 bit data for path ID, the first parameter that the path ID of 24 can be mapped to 8 by the first acquiring unit 1046 is stored in a field of message 1001.Alternatively, if the mapping relations that memory cell 1052 is preserved do not comprise the first parameter corresponding to path ID, the first acquiring unit 1046 can from the number range of 8 bit data, select one not by the numerical value that uses as the first parameter.First parameter corresponding with path ID can be stored to memory cell 1052 by the first acquiring unit 1046.
It is to be noted, first parameter also can be added in the non-preset field in message 1001 by the first acquiring unit 1046, instead of must the first parameter be added in described preset field, wherein non-preset field refers to the field that SF node 103 can be modified when carrying out Business Processing to message 1002.When being added into when the first parameter in the described non-preset field in message 1001, SF node 103 is carrying out in the process of Business Processing to message 1002, can first read the first parameter, again described non-preset field is modified, and described first parameter is added back another non-preset field of amended described non-preset field or message 1001.As long as message process device 104 knows the rule of the first parameter be added in non-preset field, just can ensure that the first parameter that SF node 103 is added in non-preset field still can be identified by SFE102.
If the individual fields in message 1002 is modified or deletes, or increase one or several field for message 1002, but do not change major function and the attribute of message 1002, the so this message 1002 be modified still is considered to the message 1002 by the first parameter, message 1001 being processed to rear acquisition in the present embodiment.
504, message process device 104 sends message 1002 to SF node 103.
For example, message 1002 to SF node 103 can be sent by the first retransmission unit 1047.
First retransmission unit 1047 can E-Packet 1002 according to the first forwarding-table item.First forwarding-table item can comprise the ID of interface and the ID of first interface that receive message 1011, and the interface wherein receiving message 1011 connects SFE102, and first interface connects SF node 103.First retransmission unit 1047, specifically according to the ID of the interface of reception message 1011, is determined to send message 1002 according to the first forwarding-table item.
Alternatively, the first forwarding-table item receives except the ID of interface of the message 1011 and ID of first interface except comprising, and can also comprise path ID.In this case, the first retransmission unit 1047 specifically according to the ID of the ID of interface and the interface of reception message 1011 that receive message 1011, is determined to send message 1002 according to the first forwarding-table item.
Alternatively, the first forwarding-table item receives except the ID of interface of the message 1011 and ID of first interface except comprising, and can also comprise the first parameter.In this case, the first retransmission unit 1047, specifically according to the ID of the first parameter with the interface of reception message 1011, is determined to send message 1002 according to the first forwarding-table item.
After determining to send message 1002 according to the first forwarding-table item, the first retransmission unit 1047, according to first interface, sends message 1002 to SF node 103.
The method of 502 to 504 is the method that message process device 104 processes the message 1011 being sent to SF node 103.Message process device 104 stripped of described business head, and will get message 1002 after carrying out above-mentioned process to message 1011.SF node 103 can identify the message 1002 not being packaged with described business head and process.
The method that following 505 to 507 messages 1003 being sent to SFE102 for message process device 104 pairs of SF nodes 103 process.Message 1003 is the message obtained after SF node 103 pairs of messages 1002 carry out Business Processing.The field of message 1003 storing path ID is identical with the field of message 1002 storing path ID.Following 505 to 507 is step alternatively.
505, SF node 103 sends message 1003 to message process device 104.
SF node 103, by receiving the interface of message 1002, sends message 1003 to message process device 104.Or, SF node 103 preserves forwarding-table item.This forwarding-table item comprises the first parameter and the ID of interface being connected message process device 104.SF node 103, according to the first parameter in message 1002, obtains the ID of the interface of the connection message process device 104 that forwarding-table item comprises.SF node 103, according to the ID of the interface of connection message process device 104, sends message 1003 to message process device 104.
506, message process device 104, by processing message 1003 according to path ID, obtains message 1013.Wherein said process comprises the use described business head corresponding with path ID and encapsulates message 1003.
For example, the second receiving element 1048 receives the message 1003 from SF node 103.Message 1003 comprises the first parameter.The first parameter that second acquisition unit 1049 comprises according to the message 1003 received, obtains the path ID corresponding with the first parameter.Encapsulation unit 1050 encapsulates described business head on message 1003, obtains message 1013.The described business head of message 1013 comprises path ID.Alternatively, second acquisition unit 1049 can obtain path ID corresponding to the first parameter from memory cell 1052.
The business of business head and the message 1011 of the message 1013 that second acquisition unit 1049 obtains is identical.Such as: if the business head of message 1011 carries protocol type in 502, then second acquisition unit 1049 according to path ID, can obtain the protocol type corresponding with path ID, and protocol type is added into the business head of message 1013 from memory cell 1052.If the business head of message 1011 carries protocol type and metadata in 502, then second acquisition unit 1049 can according to path ID, from memory cell 1052, obtain the protocol type corresponding with path ID and metadata, and protocol type and metadata are added into the business head of message 1013.
If the individual fields in message 1003 is modified or deletes, or increase one or several field for message 1003, but do not change major function and the attribute of message 1003, the so this message 1003 be modified still is considered to described message 1003 in the present embodiment.
507, message process device 104 sends message 1013 to SFE102.
Second retransmission unit 1051 sends message 1013 to SFE102.
For example, the second retransmission unit 1051 can E-Packet 1013 according to the second forwarding-table item.Second forwarding-table item comprises the ID of interface and the ID of the second interface that receive message 1003.Second retransmission unit 1051 can, according to the ID of the interface of reception message 1003, be determined to send message 1013 to SFE102 according to the second forwarding-table item.Second retransmission unit 1051 specifically according to the second interface, can send message 1013 to SFE102.Second interface connects SFE102.Alternatively, the second list item can be stored in memory cell 1052.
Alternatively, the interface receiving message 1003 connects SF node 103.Second retransmission unit 1049 according to the ID of the interface of reception message 1003, can determine that message 1003 comes from SF node 103.Second retransmission unit 1049, by receiving the interface of message 1011, sends message 1013 to SFE102, to reduce searching of forwarding-table item.
Because message 1013 comes from SF node 103, and SF node 103 is attached to SFE102, and therefore message process device 104 can by the message repeating that is defined as arbitrarily from SF node 103 to SFE102.
In order to realize E-Packeting exactly, serviceclassifier101, in the process generating message 1011, can add the second parameter in the business head of message 1011.Second parameter is in order to identify the upper hop SF node of SF node 103 on SF node 103 on servicechain or servicechain.The second parameter mentioned in the embodiment of the present invention can be character, the information such as character string, title or index (English name is index).
Also can comprise between 502 and 503: the second parameter that the business head of message 1011 comprises also is stored in memory cell 1052 by the first acquiring unit 1046.The second parameter in memory cell 1052 is corresponding with path ID.
First forwarding-table item also comprises the second parameter.The first retransmission unit 1047 in 504, specifically according to the ID of the second parameter with the interface of reception message 1011, is determined to send message 1002 according to the first forwarding-table item.
Also can comprise between 505 and 506: second acquisition unit 1049 also according to obtain path ID, the second parameter that acquisition approach ID is corresponding from memory cell 1052.Second parameter is also added in the business head of message 1013 by encapsulation unit 1050.
In above-described embodiment, if message process device 104 is connected with the one or more SF nodes similar to SF node 103, message process device 104 can determine according to the second parameter the SF node 103 receiving message 1002, contributes to improving the accuracy forwarded.
The SF node on another servicechain is connected with when message process device 104, the upper hop SF node of SF node on another servicechain described on another servicechain described is SF node 105, and the second parameter in order to identify SF node 105 time, message process device 104 can determine forwarding-table item according to path ID.
Also can comprise between 502 and 503: the path ID that the business head of message 1011 comprises by the first acquiring unit 1046 and the second parameter are stored in memory cell 1052.
For example, if the first forwarding-table item also comprises path ID and the second parameter.The first retransmission unit 1047 in 504 can, according to the ID of the interface of the second parameter, path ID and reception message 1011, be determined to send message 1002 according to the first forwarding-table item.If the first forwarding-table item also comprises the first parameter and the second parameter.The first retransmission unit 1047 in 504 can, according to the ID of the interface of the second parameter, the first parameter and reception message 1011, be determined to send message 1002 according to the first forwarding-table item.
Also can comprise between 505 and 506: second acquisition unit 1049 also according to obtain path ID, the second parameter that acquisition approach ID is corresponding from memory cell 1052.Second parameter is also added in the business head of message 1013 by encapsulation unit 1050.
Alternatively, the business head of message 1011 that the above embodiment of the present invention is mentioned also can comprise the 3rd parameter.3rd parameter is OAM message in order to identification message 1011.Also comprised before 504: when message process device 104 determines that message 1011 comprises the 3rd parameter, and forwarding strategy, when the OAM message from SFE102 is sent to SF node 103, sends message 1002 to SF node 103.Particularly, the control unit 1053 that message process device 104 comprises determines that decapsulation unit 1045 comprises the 3rd parameter from the business head that message 1011 divests, and forwarding strategy is when the OAM message from SFE102 is sent to SF node 103, controls the first retransmission unit 1047 and send message 1002 to SF node 103.
The interface mentioned in the above embodiment of the present invention can be the interface in physical interface, logic interfacing or tunnel.If the interface mentioned in the above embodiment of the present invention is the interface in tunnel, message process device 104 needs to set up tunnel with SFE102 and SF node 103 respectively.Mention in the above embodiment of the present invention that the ID of interface belongs to the mark of interface, the mark of the interface in the embodiment of the present invention can also be the identification information that other forms represent.
The processor of above-mentioned general processor can be microprocessor or this processor also can be any routine.In conjunction with the step of the method disclosed in the embodiment of the present invention, can directly be presented as that hardware processor is complete, or hardware in purpose processor and software module combination complete.When implemented in software, the code storage of above-mentioned functions will can be realized in computer-readable medium.Computer-readable medium comprises computer-readable storage medium.Storage medium can be any usable medium that computer can access.As example but be not limited to: computer-readable medium can be that (English full name is randomaccessmemory to random access memory, english abbreviation is RAM), (English full name is read-onlymemory to read-only memory, english abbreviation is ROM), (English full name is electricallyerasableprogrammableread-onlymemory to EEPROM (Electrically Erasable Programmable Read Only Memo), english abbreviation is EEPROM), (English full name is compactdiscread-onlymemory to read-only optical disc, english abbreviation is CD-ROM) or other optical disc storage, magnetic disk storage medium or other magnetic storage apparatus, or can be used in carrying or store the program code with instruction or data structure form also can by any other medium of computer access.Computer-readable medium can be that (English full name is compactdisk to compression laser disc, english abbreviation is CD), laser dish, digital video disc (English full name is digitalvideodisc, and english abbreviation is DVD), floppy disk or blu-ray disc.
Last it is noted that above embodiment is only in order to exemplary illustration technical scheme of the present invention, be not intended to limit; Although be described in detail the beneficial effect that the present invention and the present invention bring with reference to previous embodiment, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of the claims in the present invention.

Claims (16)

1. a message processing method, is characterized in that, described method comprises:
Message process device receives the first message from business Delivery Function SFE, and described first message comprises the second message and is encapsulated in the business head on described second message, and the described business head in described first message comprises the ID of trace route path ID of business chain;
Described message process device obtains described second message and described path ID;
Described message process device is by processing described second message according to described path ID, obtain the 3rd message, wherein, comprise the process that described second message carries out: the first parameter be added in described second message, described first parameter is the parameter determined according to described path ID;
Described message process device sends described 3rd message to business function SF node.
2. the method for claim 1, is characterized in that, described method also comprises:
Described message process device receives the 4th message from described SF node, and described 4th message comprises described first parameter;
Described first parameter that described message process device comprises according to described 4th message, obtains described path ID;
Described message process device is processed described 4th message by the described path ID obtained after receiving described 4th message according to described message process device, obtain the 5th message, wherein, the described process to described 4th message comprises: determine described business head according to described path ID, encapsulates described 4th message with described business head;
Described message process device sends described 5th message to described SFE.
3. method as claimed in claim 2, is characterized in that, described message process device sends described 3rd message to business function SF node and comprises:
Described message process device is according to the mark of the interface of described first message of reception, and determine to forward described 3rd message according to forwarding-table item, described forwarding-table item comprises the mark of interface and the mark of first interface of described first message of described reception;
Described message process device, by described first interface, sends described 3rd message to described SF node.
4. method as claimed in claim 3, it is characterized in that, described forwarding-table item also comprises described path ID;
Described message process device, according to the mark of the interface of described first message of reception, is determined to forward described 3rd message according to forwarding-table item, being comprised:
Described message process device, according to the mark of the interface of described path ID and described first message of described reception, is determined to forward described 3rd message according to described forwarding-table item.
5. method as claimed in claim 3, it is characterized in that, described forwarding-table item also comprises the second parameter, and described second parameter is in order to identify described SF node or the upper hop SF node of described SF node in described business chain;
When the business head in described first message comprises described second parameter, described message process device, according to the mark of the interface of described first message of reception, is determined to forward described 3rd message according to forwarding-table item, being comprised:
Described message process device, according to the mark of the interface of described second parameter of carrying in described first message and described first message of described reception, is determined to forward described 3rd message according to described forwarding-table item.
6. method as claimed in claim 5, is characterized in that, describedly carries out encapsulation with described business head to described 4th message and comprises:
Described second parameter is added into described business head by described message process device.
7. the method as described in as arbitrary in claim 1 to 6, it is characterized in that, the business head in described first message also comprises the 3rd parameter, and described 3rd parameter is Operations, Administration and Maintenance OAM message in order to identify described first message;
Before described message process device sends described 3rd message to business function SF node, described method also comprises:
When described message process device determines that described first message comprises described 3rd parameter, and forwarding strategy is when the OAM message from described SFE is sent to described SF node, sends described 3rd message to described SF node.
8. the method as described in as arbitrary in claim 1 to 7, it is characterized in that, described first parameter is described path ID, or described first parameter is according to the data of algorithm to the rear acquisition of described path ID process.
9. a message process device, is characterized in that, described message process device comprises:
First receiving element, for receiving the first message from business Delivery Function SFE, described first message is the message that encapsulation business head obtains afterwards on the second message, and the described business head in described first message comprises the ID of trace route path ID of business chain;
Decapsulation unit, for obtaining described second message and described path ID;
First acquiring unit, for by processing described second message according to described path ID, obtain the 3rd message, wherein, described first acquiring unit comprises the process that described second message carries out: the first parameter is added in described second message by described first acquiring unit, and described first parameter is the parameter determined according to described path ID;
First retransmission unit, for sending described 3rd message to business function SF node.
10. device as claimed in claim 9, it is characterized in that, described device also comprises:
Second receiving element, for receiving the 4th message from described SF node, described 4th message comprises described first parameter;
Second acquisition unit, for described first parameter comprised according to described 4th message, obtains described path ID;
Encapsulation unit, for the described path ID by obtaining after receiving described 4th message according to described message process device, described 4th message is processed, obtain the 5th message, wherein, the process of described encapsulation unit to described 4th message comprises: described encapsulation unit determines described business head according to described path ID, encapsulates described 4th message with described business head;
Second retransmission unit, for sending described 5th message to described SFE.
11. devices as claimed in claim 10, is characterized in that,
Described first retransmission unit is specifically for receiving the mark of the interface of described first message according to described first receiving element, determine that forwarding-table item forwards described 3rd message, described forwarding-table item comprises the mark of interface and the mark of first interface of described first message of described reception;
Described first retransmission unit, specifically for by described first interface, sends described 3rd message to described SF node.
12. devices as claimed in claim 11, it is characterized in that, described forwarding-table item also comprises described path ID;
Described first retransmission unit, specifically for receiving the mark of the interface of described first message according to described path ID and described first receiving element, is determined to forward described 3rd message according to described forwarding-table item.
13. devices as claimed in claim 11, it is characterized in that, described forwarding-table item also comprises the second parameter, and described second parameter is in order to identify described SF node or the upper hop SF node of described SF node in described business chain;
When the business head of described first message comprises described second parameter, described first retransmission unit, specifically for receiving the mark of the interface of described first message according to described second parameter of carrying in described first message and described first receiving element, is determined to forward described 3rd message according to described forwarding-table item.
14. devices as claimed in claim 13, is characterized in that,
Described encapsulation unit is specifically for being added into described business head by described second parameter.
15. as arbitrary in claim 9 to 14 as described in device, it is characterized in that, the business head in described first message also comprises the 3rd parameter, and described 3rd parameter is Operations, Administration and Maintenance OAM message in order to identify the first message;
Described message process device also comprises:
Control unit, for determining that described first message comprises described 3rd parameter, and forwarding strategy is when the OAM message from described SFE is sent to described SF node, controls described first retransmission unit and sends described 3rd message to described SF node.
16. as arbitrary in claim 9 to 15 as described in device, it is characterized in that, described first parameter is described path ID, or described first parameter is according to the data of algorithm to the rear acquisition of described path ID process.
CN201410206623.4A 2014-05-15 2014-05-15 Message processing method and device Active CN105099919B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410206623.4A CN105099919B (en) 2014-05-15 2014-05-15 Message processing method and device
PCT/CN2015/078508 WO2015172675A1 (en) 2014-05-15 2015-05-08 Packet processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410206623.4A CN105099919B (en) 2014-05-15 2014-05-15 Message processing method and device

Publications (2)

Publication Number Publication Date
CN105099919A true CN105099919A (en) 2015-11-25
CN105099919B CN105099919B (en) 2018-07-31

Family

ID=54479323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410206623.4A Active CN105099919B (en) 2014-05-15 2014-05-15 Message processing method and device

Country Status (2)

Country Link
CN (1) CN105099919B (en)
WO (1) WO2015172675A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018000443A1 (en) * 2016-07-01 2018-01-04 华为技术有限公司 Service function chaining (sfc)-based packet forwarding method, device and system
WO2018006675A1 (en) * 2016-07-05 2018-01-11 中兴通讯股份有限公司 Data processing method and apparatus
CN107786462A (en) * 2017-10-30 2018-03-09 新华三技术有限公司 Message forwarding method and device
CN108353352A (en) * 2015-12-16 2018-07-31 华为技术有限公司 A kind of network element selection method and network element selector
WO2018166325A1 (en) * 2017-03-14 2018-09-20 华为技术有限公司 Method and device for forwarding data packet
CN112671641A (en) * 2016-08-24 2021-04-16 华为技术有限公司 Message forwarding method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101772918A (en) * 2007-08-03 2010-07-07 思科技术公司 The Operations, Administration and Maintenance of service chaining (OAM)
CN103152270A (en) * 2013-03-11 2013-06-12 华为技术有限公司 Method for forwarding packets, and router
US20130170424A1 (en) * 2011-12-29 2013-07-04 Qualcomm Incorporated Selectively multiplexing communication streams
CN103259728A (en) * 2013-05-24 2013-08-21 华为技术有限公司 OFS in-band communication method and OFS
CN103269280A (en) * 2013-04-23 2013-08-28 华为技术有限公司 Method, device and system for developing service in network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7860100B2 (en) * 2008-10-01 2010-12-28 Cisco Technology, Inc. Service path selection in a service network
CN104283891B (en) * 2014-10-27 2017-12-08 新华三技术有限公司 By the method and apparatus of business function node access service chain network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101772918A (en) * 2007-08-03 2010-07-07 思科技术公司 The Operations, Administration and Maintenance of service chaining (OAM)
US20130170424A1 (en) * 2011-12-29 2013-07-04 Qualcomm Incorporated Selectively multiplexing communication streams
CN103152270A (en) * 2013-03-11 2013-06-12 华为技术有限公司 Method for forwarding packets, and router
CN103269280A (en) * 2013-04-23 2013-08-28 华为技术有限公司 Method, device and system for developing service in network
CN103259728A (en) * 2013-05-24 2013-08-21 华为技术有限公司 OFS in-band communication method and OFS

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108353352A (en) * 2015-12-16 2018-07-31 华为技术有限公司 A kind of network element selection method and network element selector
CN108353352B (en) * 2015-12-16 2020-06-16 华为技术有限公司 Network element selection method and network element selector
CN107925624B (en) * 2016-07-01 2021-02-23 华为技术有限公司 Message forwarding method, device and system based on Service Function Chain (SFC)
CN107925624A (en) * 2016-07-01 2018-04-17 华为技术有限公司 Message forwarding method, device and system based on business function chain SFC
US10833986B2 (en) 2016-07-01 2020-11-10 Huawei Technologies Co., Ltd. Service function chaining SFC-based packet forwarding method, apparatus, and system
WO2018000443A1 (en) * 2016-07-01 2018-01-04 华为技术有限公司 Service function chaining (sfc)-based packet forwarding method, device and system
US11516130B2 (en) 2016-07-01 2022-11-29 Huawei Technologies Co., Ltd. Service function chaining SFC-based packet forwarding method, apparatus, and system
US11895026B2 (en) 2016-07-01 2024-02-06 Huawei Technologies Co., Ltd. Service function chaining SFC-based packet forwarding method, apparatus, and system
WO2018006675A1 (en) * 2016-07-05 2018-01-11 中兴通讯股份有限公司 Data processing method and apparatus
CN112671641A (en) * 2016-08-24 2021-04-16 华为技术有限公司 Message forwarding method and device
WO2018166325A1 (en) * 2017-03-14 2018-09-20 华为技术有限公司 Method and device for forwarding data packet
CN107786462A (en) * 2017-10-30 2018-03-09 新华三技术有限公司 Message forwarding method and device
CN107786462B (en) * 2017-10-30 2020-05-12 新华三技术有限公司 Message forwarding method and device

Also Published As

Publication number Publication date
WO2015172675A1 (en) 2015-11-19
CN105099919B (en) 2018-07-31

Similar Documents

Publication Publication Date Title
US11245620B2 (en) Method for forwarding packet and network device
CN105099919A (en) Message processing method and apparatus
CN106878194B (en) Message processing method and device
CN102136989B (en) Message transmission method, system and equipment
CN105141434A (en) Fault detection method and device of service chain
CN109039919B (en) Forwarding path determining method, device, system, computer equipment and storage medium
CN103259726B (en) Method, device and system for storing and sending MAC address table entries
CN111510386B (en) Method and device for processing message
EP2903218A1 (en) Method and device for modifying and forwarding message in data communication network
WO2021213507A1 (en) Data packet processing method and device
CN110545229B (en) Message sending method and device in VXLAN axis networking mode
WO2021088629A1 (en) Detnet data packet processing method and apparatus
US20240048479A1 (en) Packet Forwarding Method and Apparatus, Network Device, and Storage Medium
CN108924062A (en) Message processing method and device
CN109873766B (en) Message transmission method and device
KR102579060B1 (en) Routing information sending method, packet sending method, and related apparatus
CN102394817B (en) Tunnel forwarding method, device and network equipment
US9300583B2 (en) Maintaining routing information in memory constrained routers
KR20230144062A (en) Packet forwarding methods, devices and systems
CN112565044B (en) Message processing method and device
CN109995649A (en) It is a kind of for obtaining the method and device of cross-domain link
CN114697160B (en) Tunnel message processing method and device
CN103825971B (en) Method for generating 4over6 channel dynamically
WO2016029681A1 (en) Switch access module, cell encapsulating method, switch network system and computer storage medium
CN114697408B (en) Tunnel message processing method and device

Legal Events

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