CN105009542B - A kind of method and apparatus for handling message - Google Patents
A kind of method and apparatus for handling message Download PDFInfo
- Publication number
- CN105009542B CN105009542B CN201380003574.8A CN201380003574A CN105009542B CN 105009542 B CN105009542 B CN 105009542B CN 201380003574 A CN201380003574 A CN 201380003574A CN 105009542 B CN105009542 B CN 105009542B
- Authority
- CN
- China
- Prior art keywords
- service path
- service
- message
- mark
- hop
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
Abstract
The application is related to the communications field, there is provided a kind of method and apparatus for handling message.Stream distribution point or value-added service equipment receive the service path information that management equipment is sent, and the service path information identifies including service path;According to the service path information updating forward table;Addition message is obtained, to add the message obtained after service path option in the IP heads of service message, the service path option identifies the addition message including the service path;The service path mark is obtained according to the service path option, message is added according to the forwarding list processing that the service path is identified and is locally stored.By implementing the present invention, it can avoid carrying out service conflict caused by identification service path using the field in standard tunnel head during handling message, mitigate the burden of the network equipment on service path.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of method and apparatus for handling message.
Background technology
In traditional communication network, value-added service equipment, such as fire wall, load equalizer(English:load
Balancer, abbreviation:LB), intrusion prevention system(English:Intrusion prevention system, abbreviation:IPS), enter
Invade detecting system(English:Intrusion Detection System, abbreviation:IDS), data loss prevention(English:data
Loss prevention, abbreviation:DLP)Equipment, anti-virus(English:Anti-virus, abbreviation:AV)The deployed position of equipment etc.
Generally and network topology is strong correlation, i.e., value-added service equipment is generally deployed in the business for needing the value-added service equipment to handle
On the normal forward-path of stream, or the other network equipment hung on normal forward-path(Such as router or interchanger)On.
Using above-mentioned value-added service equipment and work flow feel nervous close coupling crossed belt come the problem of be business processing path not
Flexibly.For example, on a forward-path, the message normally forwarded can all pass through fire wall and IPS.But pass through the forward-path
Business Stream, some only may need fire wall to be handled, and some then need fire wall and IPS all to be handled.In tradition
Under deployment mode, it is not necessary to which the Business Stream of IPS processing also has to pass through IPS, wastes IPS disposal ability.
In order to solve the above problems, business chain is proposed in the prior art(English:service chain)Concept.Its
Basic ideas are to specify the value-added service processing for needing to carry out and order to Business Stream on a network node, then pass through tunnel
Road technology makes the message in the Business Stream pass through each value-added service equipment successively.By using business chain, it is possible to achieve increment
Service deployment position and the decoupling of network topology, avoid the waste to value-added service capacity of equipment.
, it is necessary to select service path and identification service path in the scene using business chain, set current value-added service
The standby next-hop value-added service equipment that message after processing can be sent in service path.The service path, refers to by spy
Determine the path that Business Stream needs the value-added service equipment passed through to form.
Prior art proposes a kind of field used in message repeating process in standard tunnel head as service path
Identify to identify the method for service path, for example, using generic route encapsulation(English:generic routing
Encapsulation abridges:GRE)In keyword(English:key)Field, the srvice instance in MAC-in-MAC encapsulation are virtual
LAN ID(English:Service Instance VLAN ID, abbreviation:I-SID)Field, the general route envelope of network virtualization
Dress(English:Network virtualization using generic routing encapsulation, abbreviation:
NVGRE)In virtual subnet mark(English:Virtual subnet identifier, abbreviation:VSID)Or it can virtually expand
Open up LAN(English:Virtual extensible local area network, abbreviation:VXLAN)Virtual net in encapsulation
Network identifies(English:Virtual network identifier, abbreviation:VNID)Come identification service path.
However, the field in standard tunnel head has had special-purpose in existing network, identified with these fields
Service path in business chain, service conflict can be caused.In addition, this method requires the network equipment on service path(Including stream
Point of departure and value-added service equipment)Corresponding tunnelling function must be all supported, to carry out tunnel in the repeating process of Business Stream
Encapsulation and decapsulation, add the burden of the network equipment.
The content of the invention
It is an object of the invention to provide a kind of method and apparatus for handling message, to avoid during message is handled
Carry out service conflict caused by identification service path using the field in standard tunnel head, mitigate the network equipment on service path
Burden.
First aspect provides a kind of method for handling message, including:
Addition message is obtained, the addition message is to be obtained after service path option is added in the IP heads of service message
Message, the service path option are identified including service path, and the service path is identified for identification service path;
The service path mark is obtained according to the service path option;
Message is added according to the forwarding list processing that the service path is identified and is locally stored.
In the first implementation of the first aspect, described to obtain before adding message, methods described also includes:
The service path information that management equipment is sent is received, the service path information identifies including the service path;
According to forward table described in the service path information updating.
With reference to the first implementation of the first aspect, in second of implementation of the first aspect, institute
It is the first forward table to state forward table, and the service path information also includes traffic stream identifier and next-hop, described in the basis
Service path information updating forward table includes:
According to the first forward table described in the service path information updating, first forward table is failed to be sold at auction including the business
Know, the service path identifies and the corresponding relation of the next-hop.
With reference to second of implementation of the first aspect, in the third implementation of the first aspect, institute
Stating acquisition addition message includes:
The service message is received, the service message belongs to Business Stream corresponding to the traffic stream identifier;
The traffic stream identifier is obtained according to the service message, first forwarding is searched according to the traffic stream identifier
Table is identified with obtaining the service path, and the industry is added in the IP heads of the service message according to service path mark
Business Path Options, obtain the addition message.
With reference to the third implementation of the first aspect, in the 4th kind of implementation of the first aspect, institute
Stating addition message described in the forwarding list processing for identifying and being locally stored according to the service path includes:
According to the first forward table described in the service path identifier lookup, the next of the corresponding service path mark is obtained
Jump, and the addition message is forwarded to the next-hop.
With reference to second of implementation of the first aspect, in the 5th kind of implementation of the first aspect, institute
Stating service path information also includes the nodes of service path corresponding to service path mark, and first forward table includes
The traffic stream identifier, service path mark, the corresponding relation of the next-hop and the nodes.
With reference to the 5th kind of implementation of the first aspect, in the 6th kind of implementation of the first aspect, institute
Stating acquisition addition message includes:
The service message is received, the service message belongs to Business Stream corresponding to the traffic stream identifier;
The traffic stream identifier is obtained according to the service message, first forwarding is searched according to the traffic stream identifier
Table is to obtain the service path mark and the nodes, according to service path mark and the nodes described
Service path option is added in the IP heads of service message, obtains the addition message, the service path option includes the industry
Business ID of trace route path and life span, the value of the life span is the nodes.
With reference to the 6th kind of implementation of the first aspect, in the 7th kind of implementation of the first aspect, institute
Stating addition message described in the forwarding list processing for identifying and being locally stored according to the service path includes:
After subtracting 1 by the value of the life span in the service path option, according to the service path identifier lookup
First forward table, the next-hop of the corresponding service path mark is obtained, and the addition message is forwarded to the next-hop.
With reference to the first implementation of the first aspect, in the 8th kind of implementation of the first aspect, institute
It is the second forward table to state forward table, and the service path information also includes next-hop, it is described according to the service path information more
New forward table includes:
According to the second forward table described in the service path information updating, second forward table includes the service path
The corresponding relation of mark and the next-hop.
With reference to the 8th kind of implementation of the first aspect, in the 9th kind of implementation of the first aspect, institute
Stating acquisition addition message includes:
The addition message that upper hop equipment is sent is received, the upper hop equipment includes stream distribution point or upper hop
Value-added service equipment.
With reference to the 8th kind of the first aspect or the 9th kind of implementation, in the tenth kind of realization side of the first aspect
In formula, before the service path mark according to service path option acquisition, methods described also includes:Add to described
Message is added to carry out value-added service processing, the addition message after being handled.
With reference to the tenth kind of implementation of the first aspect, in a kind of the tenth implementation of the first aspect,
Addition message includes described in the forwarding list processing for identifying and being locally stored according to the service path:According to
Second forward table described in the service path identifier lookup, obtains the next-hop of the corresponding service path mark, and to described
Next-hop forwards the addition message after the processing;Or
Addition message includes described in the forwarding list processing for identifying and being locally stored according to the service path:According to
Second forward table described in the service path identifier lookup, the next-hop of the corresponding service path mark is obtained, under described
When one jump is terminates mark, the service path option in the addition message after the processing, the industry after being handled are deleted
Business message, is normally forwarded to the service message after the processing;Or
When also including life span in the service path option, and when the value of the life span is more than 1, the basis
Addition message described in the service path mark and the forwarding list processing being locally stored includes:By in the service path option
The value of the generation time subtract 1, according to the second forward table described in the service path identifier lookup, obtain the corresponding business
The next-hop of ID of trace route path, the addition message after the processing is forwarded to the next-hop;Or
It is described according to institute when also including life span in the service path option, and when the value of the life span is 1
Addition message described in stating service path mark and the forwarding list processing being locally stored includes:Delete the addition report after the processing
The service path option in text, the service message after being handled, is normally turned to the service message after the processing
Hair.
Second aspect provides a kind of device for handling message, including:
First acquisition unit, message is added for obtaining, the addition message is to add industry in the IP heads of service message
The message obtained after business Path Options, the service path option identify including the service path, the service path mark
For identification service path;
Second acquisition unit, identified for obtaining the service path according to the service path option;
Memory cell, for forwarding table memory;
Processing unit, for adding message according to service path mark and the forwarding list processing.
In the first implementation of the second aspect, described device also includes:
Receiving unit, for receiving the service path information of management equipment transmission, the service path information includes business
ID of trace route path;
Updating block, for the forward table according to the service path information updating.
With reference to the first implementation of the second aspect, in second of implementation of the second aspect, institute
Stating service path information also includes traffic stream identifier and next-hop, and the updating block is used for:
According to the first forward table described in the service path information updating, first forward table is failed to be sold at auction including the business
Know, the service path identifies and the corresponding relation of the next-hop.
With reference to second of implementation of the second aspect, in the third implementation of the second aspect, institute
First acquisition unit is stated to be used for:
The service message is received, the service message belongs to Business Stream corresponding to the traffic stream identifier;
The traffic stream identifier is obtained according to the service message, first forwarding is searched according to the traffic stream identifier
Table is identified with obtaining the service path, and business road is added in the IP heads of the service message according to service path mark
Footpath option, obtain the addition message.
With reference to the third implementation of the second aspect, in the 4th kind of implementation of the second aspect, institute
Processing unit is stated to be used for:According to the first forward table described in the service path identifier lookup, the corresponding service path mark is obtained
The next-hop of knowledge, and forward the addition message to the next-hop.
With reference to second of implementation of the second aspect, in the 5th kind of implementation of the second aspect, institute
Stating service path information also includes the nodes of service path corresponding to service path mark, and first forward table includes
The traffic stream identifier, service path mark, the corresponding relation of the next-hop and the nodes.
With reference to the 5th kind of implementation of the second aspect, in the 6th kind of implementation of the second aspect, institute
First acquisition unit is stated to be used for:
The service message is received, the service message belongs to Business Stream corresponding to the traffic stream identifier;
The traffic stream identifier is obtained according to the service message, first forwarding is searched according to the traffic stream identifier
Table is to obtain the service path mark and the nodes, according to service path mark and the nodes described
Service path option is added in the IP heads of service message, obtains the addition message, the service path option includes the industry
Business ID of trace route path and life span, the value of the life span is the nodes.
With reference to the 6th kind of implementation of the second aspect, in the 7th kind of implementation of the second aspect, institute
Processing unit is stated to be used for:
After subtracting 1 by the value of the life span in the service path option, according to the service path identifier lookup
First forward table, the next-hop of the corresponding service path mark is obtained, and the addition message is forwarded to the next-hop.
With reference to the first implementation of the second aspect, in the 8th kind of implementation of the second aspect, institute
Stating service path information also includes next-hop, and the updating block is used for:
According to the second forward table described in the service path information updating, second forward table includes the service path
The corresponding relation of mark and the next-hop.
With reference to the 8th kind of implementation of the second aspect, in the 9th kind of implementation of the second aspect, institute
First acquisition unit is stated to be used for:
The addition message that upper hop equipment is sent is received, the upper hop equipment includes stream distribution point or upper hop
Value-added service equipment.
With reference to the 8th kind of the second aspect or the 9th kind of implementation, in the tenth kind of realization side of the second aspect
In formula, described device also includes:Value-added service processing unit, for carrying out value-added service processing to the addition message, obtain
Addition message after processing.
With reference to the tenth kind of implementation of the second aspect, in a kind of the tenth implementation of the second aspect,
The processing unit is used for:According to the second forward table described in the service path identifier lookup, corresponded to described in
The next-hop of service path mark, and forward the addition message after the processing to the next-hop;Or
The processing unit is used for:According to the second forward table described in the service path identifier lookup, corresponded to described in
The next-hop of service path mark, when the next-hop is terminates mark, delete the institute in the addition message after the processing
Service path option is stated, the service message after being handled, the service message after the processing is normally forwarded;Or
When also including life span in the service path option, and when the value of the life span is more than 1, the processing
Unit is used for:The value of the generation time in the service path option is subtracted 1, according to the service path identifier lookup institute
The second forward table is stated, obtains the next-hop of the corresponding service path mark, adding after forwarding the processing to the next-hop
Add message;Or
When also including life span in the service path option, and when the value of the life span is 1, the processing is single
Member is used for:Delete the service path option in the addition message after the processing, the service message after being handled, to institute
The service message after processing is stated normally to be forwarded.
In such scheme, deposited by the service path information updating for including service path mark sent according to management equipment
The forward table of storage, and the addition report obtained after service path option is added in the IP heads of service message according to forward table forwarding
Text, service path mark and the decoupling of the field in standard tunnel head in message repeating process are realized, is avoided using standard
Field in tunnel head carrys out service conflict caused by identification service path.Also, such scheme does not need the processing message
Tunnelling function outside device commitment, alleviate the burden of described device.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of network architecture schematic diagram provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for the configuration service ID of trace route path provided in the embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet of the method for the processing message provided in the embodiment of the present invention;
Fig. 4 a and Fig. 4 b are the structural representations of the first forward table provided in an embodiment of the present invention;
Fig. 5 a are the structural representations of IP heads;
Fig. 5 b are the structural representations of service path option provided in an embodiment of the present invention;
Fig. 6 is the schematic flow sheet of the method for another processing message provided in the embodiment of the present invention;
Fig. 7 is the structural representation of the method for another the processing message provided in the embodiment of the present invention;
Fig. 8 is a kind of structural representation of the device of the processing message provided in the embodiment of the present invention;
Fig. 9 is the structural representation of the device of another processing message provided in the embodiment of the present invention.
Embodiment
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 carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
The embodiments of the invention provide a kind of network system.As shown in figure 1, the network system 10 includes management equipment
11, stream distribution point 12 and value-added service equipment 13, the value-added service equipment can have one or more, be shown in figure more
Individual value-added service equipment 13a-n.Wherein, the management equipment 11, stream distribution point 12 and value-added service equipment 13 may each be
Dummy node in network, virtual functions module or hardware physical entity.
The management equipment 11 manages the stream distribution point 11 and the multiple value-added service equipment 13a-n, according to reception
Business demand determine service path and corresponding service path mark, to the stream distribution point 11 on and the value-added service
The service path information included in the service path mark is sent in equipment 13 respectively.The stream distribution point 12 is located at the net
The porch of network system, for being that the service message received selects service path according to the first forward table being locally stored, and
After service path option acquisition addition message is added in the IP heads for the service message, the addition message is sent to institute
State the service path of selection, the service path includes one or more value-added service equipment, for example, shown in Fig. 1 including
Value-added service equipment 13a, 13b, 13c and 13d service path 1 and the industry for including value-added service equipment 13a, 13b and 13n
Business path 2.The value-added service equipment 13 is used to, when receiving addition message, carry out the addition message corresponding increment industry
Business is handled, and according to the second forward table being locally stored, service message after treatment is sent into next-hop.
Based on the network system shown in Fig. 1, the embodiments of the invention provide a kind of method of configuration service ID of trace route path.Institute
The executive agent for stating method is the management equipment 11.
As shown in Fig. 2 in step 201, the management equipment receives the business demand of user, the business demand includes
Traffic stream identifier and traffic profile.
On the one hand, the business demand of the user can be transmitted directly to the management equipment by the user;The opposing party
Face, the business demand of the user can be configured by NMS, and be sent to the pipe by the NMS
Manage equipment.The traffic stream identifier, which is used to identify, needs Business Stream to be processed.The traffic profile needs including the Business Stream
Value-added service and its order.The traffic profile can further include value-added service performance, the value-added service performance
For the performance requirement to value-added service equipment, such as network throughput, concurrent connection number etc..
In step 202, the management equipment selects value-added service equipment according to the business demand, determines business road
Footpath, the service path include Business Stream corresponding to the traffic stream identifier needed in transmitting procedure by value-added service set
It is standby.
The management equipment selects corresponding value-added service equipment according to the business demand, can be specifically, according to institute
The traffic profile stated in business demand selects value-added service equipment corresponding to each value-added service.When also being wrapped in the traffic profile
When including value-added service performance, value-added service and value-added service performance selection increment of the management equipment in traffic profile
Business device.Can include when the traffic profile includes multiple value-added services, in the traffic profile it is corresponding a kind of or
The value-added service performance of multiple value increasing service.For example, when the traffic profile includes the performance of fire wall, show described in processing
Business Stream needs the fire wall of respective performances, and therefore, the management equipment selects to meet the performance from multiple fire walls
Fire wall.
Select value-added service equipment after, the value-added service of the management equipment in the traffic profile it is suitable
Sequence, determines service path, and the service path includes the value-added service that the Business Stream needs to sequentially pass through in transmitting procedure
Equipment.For example, the business demand shows that Business Stream needs to pass through filtration treatment, intrusion detection and load balance process successively,
So described service path can include:Fire wall, IDS and load equalizer.
In step 203, the management equipment determines the service path mark of the service path.
Service path database is stored with the management equipment.The service path database includes service path mark
Knowledge and service path.The management equipment determines that the service path mark includes:The management equipment is according to the business road
The service path database is searched in footpath, in one implementation, if be stored with the service path database described
Service path, obtain the service path mark of the service path;In another implementation, if the service path number
During according in storehouse without the service path is stored, business ID of trace route path is distributed for the service path, and in the service path
The service path and service path mark are recorded in database.The service path is identified for identification service path.
In step 204, the network node that the management equipment is managed to it sends service path information, the business
Routing information identifies including the service path.
The network node includes the stream distribution point 11 and the value-added service equipment 13.
In one implementation, the management equipment sends service path information, the business to the stream distribution point
Routing information is used to make the stream distribution point update the first forward table.The service path information identifies except the service path
Outside, the next-hop of the stream distribution point in addition on traffic stream identifier and the service path(On i.e. described service path
First value-added service equipment).First forward table includes the correspondence of traffic stream identifier, service path mark and next-hop
Relation.
Alternatively, the service path information can further include the nodes of the service path, i.e., described industry
The quantity of value-added service equipment on business path.For example, in Fig. 1, the corresponding service path 1 of Business Stream 1, the nodes of service path 1
For 4, the nodes of service path 2 are 3.In this case, first forward table includes traffic stream identifier, service path mark
Know, the corresponding relation of nodes and next-hop.
In another implementation, the management equipment sends service path information, institute to the value-added service equipment
Service path information is stated to be used to make the forward table of value-added service renewal of the equipment second.The service path information removes the business
Outside ID of trace route path, in addition on the service path value-added service equipment next-hop.Second forward table includes industry
The corresponding relation of business ID of trace route path and next-hop.In another implementation, when the value-added service equipment is the business
Corresponding to ID of trace route path during last value-added service equipment on service path, the next-hop identifies to terminate.The end
Only identify the final jump for representing the value-added service equipment as service path corresponding to service path mark.
When the service path includes multiple value-added service equipment, the management equipment is needed on the service path
Each value-added service equipment configuration service routing information is respectively configured.After the completion of configuration, each value-added service equipment is directed to institute
Service path mark is stated, generates the second different forwarding-table items.For example, in the network system shown in Fig. 1, for service path
1, value-added service equipment 13a the second forwarding-table item is(Service path 1,13b), value-added service equipment 13b the second forward table
Xiang Wei(Service path 1,13c), the configuration in other value-added services is similar.
In the above embodiment of the present invention, management equipment determines industry according to the business demand of user for the Business Stream of the user
Business path, and determine that service path identifies for the service path, then it will be configured on stream distribution point and value-added service equipment
The service path mark.Because service path mark is unrelated with the field in standard tunnel head, therefore, make in a network
Identified with the service path, the conflict of business will not be caused.Further, in above-described embodiment, on stream distribution point and rise in value
As long as increasing by first forward table respectively on business device or the second forward table can be achieved with the identification and forwarding of Business Stream, with
To be compared using the field identification service path in standard tunnel head, value-added service equipment does not need the tunnelling function outside commitment,
Alleviate the burden of value-added service equipment.
Based on the network system shown in Fig. 1, invention additionally provides a kind of method of processing message as shown in Figure 3.
The executive agent of methods described is stream distribution point 12 or value-added service equipment 13.
As shown in figure 3, in step 301, receive the service path information that management equipment is sent, the service path information
Identified including service path.
In one implementation, stream distribution point receives the service path information that management equipment is sent, the service path
Information is in addition to the service path identifies, in addition to traffic stream identifier and next-hop, or also includes traffic stream identifier, next
Jump and and the service path mark corresponding to service path nodes.
In another implementation, value-added service equipment receives the service path information that management equipment is sent, the industry
Routing information be engaged in addition to the service path identifies, in addition to next-hop.In another implementation, when the value-added service is set
During for being last value-added service equipment on service path corresponding to the service path identifies, the next-hop is termination
Mark.The mark that terminates is used to represent the value-added service equipment for service path corresponding to service path mark most
Latter jump.
In step 302, the forward table being locally stored according to the service path information updating.
In one implementation, the step 302 is performed by stream distribution point.It is described according to the service path information more
New forward table includes:The first forward table being locally stored according to stream distribution point described in the service path information updating.When described
Service path information is in addition to the service path identifies, in addition to when traffic stream identifier and next-hop, first forward table
As shown in fig. 4 a, including traffic stream identifier, the corresponding relation of service path mark and next-hop.Further, when the industry
Routing information be engaged in addition to the service path identifies, in addition to traffic stream identifier, next-hop and service path mark pair
The nodes for the service path answered(The quantity of value-added service equipment on i.e. described service path)When, first forward table is as schemed
Shown in 4b, including traffic stream identifier, service path identify, the corresponding relation of next-hop and nodes.
In another implementation, the step 302 is performed by value-added service equipment.The service path information removes institute
It is outer to state service path mark, in addition to next-hop.It is described to be included according to the service path information updating forward table:According to described
The second forward table that value-added service equipment described in service path information updating is locally stored, second forward table include business road
Footpath identifies and the corresponding relation of next-hop.
Described renewal forward table, including the generation forward table, new list item are generated for the forward table, or replace
Fall any one in the forward table in original list item.
In embodiments of the present invention, above-mentioned steps 301 and 302 are optional that information in above-mentioned service path information is also
The stream distribution point or value-added service equipment can be sent to by other means, for example, by management equipment by service path
Information is sent to the stream distribution point, then is sent to the value-added service equipment by the stream distribution point;Or by management equipment
Directly stream distribution point or value-added service equipment will be sent under forward table.
In step 303, addition message is obtained, the addition message is to add service path in the IP heads of service message
The message obtained after option, the service path option identify including the service path.
As it was previously stated, the service path is identified for identification service path.
As shown in Figure 5 a, it is IP header structure schematic diagrames.As can be seen that in addition to the field that standard defines, in IP heads also
A series of options can be included(English:option).An expansion in the service path option of the embodiment of the present invention, as IP heads
Open up option.
As shown in Figure 5 b, it is the structural representation of service path option in the embodiment of the present invention, wherein type(type)Table
It is service path option to show the option, for example, it may be 250;Length(length)The total length of the service path option is represented,
Life span(English:Time-to-live, abbreviation:TTL)The number for the value-added service equipment that can pass through for representing the message
Amount(Referred to as nodes), path ID(path ID)Represent service path mark.
Service path mark can be only included in the service path option, service path mark and TTL can also be included.
In one embodiment, step 303 is performed by stream distribution point.The addition message that obtains includes:The stream distribution
Point receives service message, and the service message belongs to Business Stream corresponding to the traffic stream identifier, according to the traffic stream identifier
And search first forward table and identified with obtaining the service path, identified according to the service path in the business report
Service path option is added in the IP heads of text, obtains the addition message, the service path option includes the service path
Mark;Or the stream distribution point receives service message, the service message belongs to Business Stream corresponding to the traffic stream identifier, root
First forward table is searched according to the traffic stream identifier to obtain the service path mark and nodes, according to the business
ID of trace route path and nodes add service path option in the IP heads of the service message, obtain the addition message, described
Service path option includes service path mark and life span, and the value of the life span is the nodes.
In another embodiment, step 303 is performed by value-added service equipment.The addition message that obtains includes:It is described
Value-added service equipment receives the addition message that upper hop equipment is sent, and the upper hop equipment can be the stream distribution point
Or the upper hop value-added service equipment of the value-added service equipment.
In step 304, the service path is obtained according to the service path option to identify.
Specifically, the stream distribution point or value-added service equipment parse the addition message, obtain the business road
Footpath option, the service path mark is obtained from the service path option.
In step 305, the addition according to service path mark and the forwarding list processing being locally stored
Message.
In one embodiment, the step 305 is performed by stream distribution point.When only including institute in the service path option
When stating service path mark, the stream distribution point first forward table according to the service path identifier lookup, obtain correspondingly
The next-hop of the service path mark, and forward the addition message to the next-hop;When in the service path option
When also including life span, the value of the life span is subtracted 1 by the stream distribution point, according to the service path identifier lookup institute
The first forward table is stated, obtains the next-hop of the corresponding service path mark, and the addition message is forwarded to the next-hop.
Due to the functional module of generation addition message in stream distribution point(Or process)With the function of sending the addition message
Module(Or process)Difference, therefore before addition message is sent, stream distribution point also needs to obtain in the service path option
Service path is identified, and the addition message is handled accordingly according to service path mark.
In another embodiment, the step 305 is performed by value-added service equipment.Then step 303 and step 304 it
Between, methods described also includes:The value-added service equipment carries out value-added service processing to the addition message, after being handled
Add message.Hereafter, the value-added service equipment second forward table according to the service path identifier lookup, obtain correspondingly
The next-hop of the service path mark, and forward the addition message after the processing to the next-hop;Or the increment industry
Business equipment second forward table according to the service path identifier lookup, obtain the next of the corresponding service path mark
Jump, when the next-hop is terminates mark, delete the service path option in the addition message after the processing, obtain
Service message after processing, the service message after the processing is normally forwarded;Or when in the service path option also
Including life span, and when the value of the life span is more than 1, the value-added service equipment is by the service path option
After the value of the generation time subtracts 1, according to the second forward table described in the service path identifier lookup, the corresponding business is obtained
The next-hop of ID of trace route path, and forward the addition message after the processing to the next-hop;Or when the service path option
Include service path mark and generation time, and when the value of the generation time is 1, the value-added service equipment is deleted
Except the service path option in the addition message after the processing, the service message after being handled, after the processing
Service message normally forwarded, i.e., according to the destination address of the service message after the processing to the service message carry out
Two layers or three layers forwarding.The value of the life span is that the addition message needs the increment industry passed through on the service path
Business equipment(Value-added service equipment including currently receiving the addition message)Quantity.For example, adding of receiving of increment equipment 13b
Add in the service path option in message, service path is identified as 1, and the value of life span is 3.
In above-mentioned implementation, because the addition message is to add business road by the option of the IP heads in service message
Footpath option obtains, and the addition of the service path option, has not both interfered with the other information in the IP heads of the service message,
The load of the service message is not interfered with yet.Therefore, processing of the value-added service equipment to the addition message, equivalent to the industry
The processing of business message.Therefore, after the service path option being deleted from the addition message after processing, what is obtained is exactly after handling
Service message.
Based on the network system shown in Fig. 1, below from the angle of stream distribution point 12, to the above method shown in Fig. 3 of the present invention
Embodiment is described further.
As shown in fig. 6, in step 601, stream distribution point receives the service path information that management equipment is sent, the business
Routing information identifies including service path.
In step 602, the stream distribution point is according to the forward table of service path information updating first.
In one implementation, the service path information includes traffic stream identifier, service path mark and described
The next-hop of stream distribution point.The stream distribution point updates the first forward table being locally stored, such as according to the service path information
Shown in Fig. 4 a, first forward table includes the corresponding relation of traffic stream identifier, service path mark and next-hop.
Alternatively, the service path information can also include the nodes of the service path, i.e., described service path
The quantity of upper value-added service equipment.For example, in Fig. 1, the nodes of service path 1 are 4, and the nodes of service path 2 are 3.This
In the case of kind, as shown in Figure 4 b, first forward table includes traffic stream identifier, and service path identifies, nodes and next
The corresponding relation of jump.
In step 603, the stream distribution point receives service message, and the service message belongs to the traffic stream identifier pair
The Business Stream answered, the traffic stream identifier is obtained according to the service message, and described first is searched according to the traffic stream identifier
Forward table adds business road to obtain service path mark, according to service path mark in the IP heads of the service message
Footpath option, obtain adding message.
The service message is into the network system, it is necessary to carry out value-added service processing by the stream distribution point
Message.
The traffic stream identifier can be five-tuple, IPv6 address prefixs, or other can be with unique mark Business Stream
Information.
In one implementation, stream distribution point searches the first forward table being locally stored according to the traffic stream identifier of acquisition
To obtain service path mark, the second forward table of the stream includes pair of traffic stream identifier, service path mark and next-hop
It should be related to.The stream distribution point identifies according to the service path and service path choosing is added in the IP heads of the service message
, obtain the addition message.The service path option identifies including the service path.
In another implementation, the stream distribution point searches first be locally stored according to the traffic stream identifier of acquisition
Forward table is identified with acquisition approach and nodes, and first forward table includes traffic stream identifier, service path mark, node
The corresponding relation of number and next-hop, the stream distribution point is identified according to the service path and the nodes are in the industry
It is engaged in adding service path option in the IP heads of message, when the service path option includes service path mark and survived
Between(English:Time-to-live, abbreviation:TTL), the value of the life span is the nodes.
In step 604, the stream distribution point obtains the service path mark according to according to the service path option,
Message is added according to service path mark and the first forwarding list processing.
In one implementation, when only including the service path mark in the service path option, the stream
Point of departure first forward table according to the service path identifier lookup, obtain the next of the corresponding service path mark
Jump, and the addition message is forwarded to the next-hop.
In another implementation, when also including life span in the service path option, the stream distribution point
After subtracting 1 by the value of the life span, according to the first forward table described in the service path identifier lookup, the corresponding industry is obtained
The next-hop of business ID of trace route path, and forward the addition message to the next-hop.
Based on the network system shown in Fig. 1, below from the angle of value-added service equipment 13, to above-mentioned shown in Fig. 3 of the present invention
Embodiment of the method is described further.
As shown in fig. 7, in step 701, value-added service equipment receives the service path information that management equipment is sent, described
Service path information identifies including service path.
In a step 702, the value-added service equipment is according to the forward table of service path information updating second.
Specifically, the service path information includes the next-hop of service path mark and the value-added service equipment,
The second forward table that the value-added service equipment is locally stored according to the service path information updating, the second forward table bag
Include the corresponding relation of service path mark and next-hop.When the value-added service equipment is corresponding to service path mark
During last value-added service equipment on service path, the next-hop identifies to terminate.
In step 703, the value-added service equipment obtains addition message, and the addition message is the IP in service message
The message obtained after service path option is added in head, the service path option identifies including the service path.
The value-added service equipment can be received the addition message from stream distribution point or rise in value from upper hop
Business device receives the addition message.
In one implementation, the service path option identifies including service path.In another implementation,
The service path option includes service path mark and life span.
In step 704, the value-added service equipment carries out value-added service processing to the addition message, after obtaining processing
Addition message.
In step 705, the value-added service equipment obtains the service path according to the service path option and identified,
According to the addition message after processing described in service path mark and the second forwarding list processing.
Wherein, value-added service equipment value-added service equipment according to the service path identifier lookup is locally stored
The second forward table, obtain next-hop corresponding to service path mark, and after forwarding the processing according to the next-hop
Addition message.
In one implementation, service path mark is only included in the service path option, the value-added service is set
It is standby that the addition message after the processing is directly sent to the next-hop.In another implementation, when the next-hop
When being identified to terminate, the value-added service equipment deletes the service path option in the addition message after the processing, obtains
Service message after to processing, the service message after the processing is normally forwarded.
In another implementation, the service path option also includes life span in addition to service path identifies,
If the value of the life span is more than 1, after the value of the life span is subtracted 1 by the value-added service equipment, by the place
Addition message after reason is sent to the next-hop;If the value of the life span is equal to 1, the value-added service equipment is deleted
Except the service path option in the addition message after the processing, the service message after being handled, and after the processing
Service message be sent to the next-hop.
In the above embodiment of the present invention, stream distribution point and value-added service equipment include business road according to what management equipment was sent
The service path information of footpath mark updates the forward table each stored respectively, and forwards the IP in service message according to the forward table
The addition message obtained after service path option is added in head, realizes service path mark and standard tunnel in message repeating process
The decoupling of field in trace header, avoid and carry out service conflict caused by identification service path using the field in standard tunnel head.
Also, the above embodiment of the present invention does not need the tunnelling function outside stream distribution point and value-added service equipment commitment, alleviates stream
The burden of point of departure and value-added service equipment.
The embodiment of the present invention is additionally provided with a kind of device for handling message, as shown in figure 8, described device includes:Receive
Unit 801, updating block 802, memory cell 803, first acquisition unit 804 are with, second acquisition unit 805 and processing unit
806.Wherein, receiving unit 801 and updating block 802 are optional for the embodiment of the present invention.
The receiving unit 801 is used for the service path information for receiving management equipment transmission, the service path packet
Include service path mark.
In one implementation, the device of the processing message is stream distribution point, and the receiving unit 801 receives management
The service path information that equipment is sent, the service path information is in addition to the service path identifies, in addition to traffic stream identifier
And next-hop, or also include traffic stream identifier, next-hop and and service path mark corresponding to service path
Nodes.
In another implementation, the device of the processing message is value-added service equipment, and the receiving unit 801 connects
The service path information that management equipment is sent is received, the service path information is in addition to next in addition to the service path identifies
Jump.In another implementation, when the value-added service equipment be corresponding to service path mark on service path most
During the latter value-added service equipment, the next-hop identifies to terminate.
The updating block 802 is used for according to the service path information updating forward table.The renewal forward table storage
In the memory cell 803.
In one implementation, the device of the processing message is stream distribution point, and the updating block 802 is used for:Root
The first forward table stored in memory cell 803 according to the service path information updating stream distribution point.When the service path
Information is in addition to the service path identifies, in addition to when traffic stream identifier and next-hop, first forward table such as Fig. 4 a institutes
Show, including traffic stream identifier, service path identifies and the corresponding relation of next-hop.Further, when the service path is believed
Breath is in addition to the service path identifies, in addition to traffic stream identifier, next-hop and business corresponding to service path mark
The nodes in path(The quantity of value-added service equipment on i.e. described service path)When, first forward table as shown in Figure 4 b,
Including traffic stream identifier, service path identifies, the corresponding relation of nodes and next-hop.
In another implementation, the device of the processing message is value-added service equipment, the service path information
In addition to the service path identifies, in addition to next-hop.The updating block 802 is used for:According to the service path information more
The second forward table stored in the memory cell 803 of new value_added service equipment.Second forward table includes service path
The corresponding relation of mark and next-hop.
The first acquisition unit 804 is used to obtain addition message, and the addition message is in the IP heads of service message
The message obtained after addition service path option, the service path option identify including the service path.The business road
Footpath is identified for identification service path.
As shown in Figure 5 a, it is IP header structure schematic diagrames.As can be seen that in addition to the field that standard defines, in IP heads also
A series of options can be included(English:option).An expansion in the service path option of the embodiment of the present invention, as IP heads
Open up option.
As shown in Figure 5 b, it is the structural representation of service path option in the embodiment of the present invention, wherein type(English:
type)It is service path option to represent the option, for example, it may be 250;Length(English:length)Represent the service path
The total length of option, life span(English:Time-to-live, abbreviation:TTL)The increment that can pass through for representing the message
The quantity of business device(Referred to as nodes), path ID(English:path ID)Represent service path mark.
Service path mark can be only included in the service path option, service path mark and TTL can also be included.
In one embodiment, the device of the processing message is stream distribution point, and the first acquisition unit 804 is used to connect
The service message is received, the service message belongs to Business Stream corresponding to the traffic stream identifier, according to the traffic stream identifier
Search first forward table and identified with obtaining the service path, identified according to the service path in the service message
Service path option is added in IP heads, obtains the addition message, the service path option identifies including the service path;
Or the first acquisition unit 804 is used to receive the service message, it is corresponding that the service message belongs to the traffic stream identifier
Business Stream, the traffic stream identifier is obtained according to the service message, described first turn is searched according to the traffic stream identifier
Deliver to obtain the service path mark and nodes, according to service path mark and nodes in the service message
IP heads in add service path option, obtain the addition message, the service path option includes the service path mark
Knowledge and life span, the value of the life span is the nodes.
In another embodiment, the device of the processing message is value-added service equipment, the first acquisition unit 804
For:The addition message that upper hop equipment is sent is received, the upper hop equipment can be stream distribution point or the processing report
The upper hop value-added service equipment of the device of text.
The second acquisition unit 805 is used to obtain the service path mark according to the service path option.Specifically
For, the second acquisition unit parses the addition message, the service path option is obtained, from the service path option
Obtain the service path mark.
The processing unit 806 is used for the forwarding stored according to service path mark and residing memory cell 803
Message is added described in list processing.
In one embodiment, the device of the processing message is stream distribution point, is wrapped when in the service path option
When including the service path mark, the processing unit 806 is used for the first forwarding according to the service path identifier lookup
Table, the next-hop of the corresponding service path mark is obtained, and the addition message is forwarded to the next-hop;When the business
When also including life span in Path Options, the processing unit 806 is used for after subtracting 1 by the value of the life span, according to institute
The first forward table described in service path identifier lookup is stated, obtains the next-hop of the corresponding service path mark, and under described
One redirects and sends out addition message described.
In another embodiment, the device of the processing message is value-added service equipment, and described device also includes increment
Service Processing Unit, in it is described addition message carry out value-added service processing, the addition message after being handled.
The processing unit 806 is used for the second forward table according to the service path identifier lookup, obtains corresponding institute
The next-hop of service path mark is stated, and the addition message after the processing is forwarded to the next-hop;Or, the processing unit
806 are used for the second forward table according to the service path identifier lookup, obtain the next of the corresponding service path mark
Jump, when the next-hop is terminates mark, delete the service path option in the addition message after the processing, obtain
Service message after processing, the service message after the processing is normally forwarded;Or, when in the service path option also
Including life span, and when the value of the life span is more than 1, the processing unit 806 is used for the service path option
In the value of the generation time subtract 1, according to the second forward table described in the service path identifier lookup, obtain the corresponding industry
The next-hop of business ID of trace route path, and forward the addition message after the processing to the next-hop;When the service path option
Include service path mark and generation time, and when the value of the generation time is 1, the processing unit 806 is used
The service path option in the addition message after deleting the processing, the service message after being handled, to the place
Service message after reason is normally forwarded, i.e., according to the destination address of the service message after the processing to the service message
Carry out two layers or three layers forwarding.The value of the life span is that the addition message needs the increasing passed through on the service path
It is worth business device(Value-added service equipment including currently receiving the addition message)Quantity.For example, increment equipment 13b is received
Addition message in service path option in, service path is identified as 1, and the value of life span is 3.
Referring to Fig. 9, Fig. 9 is the structural representation of the device of another processing message in the embodiment of the present invention.Such as Fig. 9 institutes
Show, described device includes:COM1 901, memory 902 and processor 903, certainly, described device can also include other
Universal component, the embodiment of the present invention is not intended to be limited in any herein.
Wherein, batch processing code is stored in memory 902, processor 903 is used to call the journey stored in memory 902
Sequence code, to perform following operate:
Addition message is obtained, the addition message is to be obtained after service path option is added in the IP heads of service message
Message, the service path option are identified including service path, and the service path is identified for identification service path;
The service path mark is obtained according to the service path option;
Message is added according to the forwarding list processing that the service path is identified and is locally stored.
In one embodiment, the operation also includes:Receive the service path information that management equipment is sent, the industry
Business routing information includes service path and identified;According to forward table described in the service path information updating.
In one implementation, described device is used for the function of realizing stream distribution point.The service path information is also wrapped
Traffic stream identifier and next-hop are included, it is described to be included according to the service path information updating forward table:According to the business road
The first forward table that footpath information updating is locally stored, first forward table include the traffic stream identifier, the service path
The corresponding relation of mark and the next-hop.The addition message that obtains includes:Receive the service message, the business report
Text belongs to Business Stream corresponding to the traffic stream identifier;The traffic stream identifier is obtained according to the service message, according to described
Traffic stream identifier is searched first forward table and identified with obtaining the service path, is identified according to the service path described
Service path option is added in the IP heads of service message, obtains the addition message.It is described according to the service path identify with
And addition message includes described in the forwarding list processing being locally stored:The first forwarding according to the service path identifier lookup
Table, the next-hop of the corresponding service path mark is obtained, and the addition message is forwarded to the next-hop.
In another implementation, described device is used for the function of realizing another stream distribution point.The service path letter
Ceasing also includes the nodes of traffic stream identifier, next-hop and service path corresponding to service path mark, and described first
Forward table includes the corresponding relation of the traffic stream identifier, service path mark, the next-hop and the nodes.
The addition message that obtains includes:The service message is received, the service message belongs to industry corresponding to the traffic stream identifier
Business stream;The traffic stream identifier is obtained according to the service message, first forward table is searched according to the traffic stream identifier
To obtain the service path mark and the nodes, according to service path mark and the nodes in the industry
It is engaged in adding service path option in the IP heads of message, obtains the addition message, the service path option includes the business
ID of trace route path and life span, the value of the life span is the nodes.It is described according to the service path identify with
And addition message includes described in the forwarding list processing being locally stored:The value of life span in the service path option is subtracted 1
Afterwards, the first forward table according to the service path identifier lookup, the next-hop of the corresponding service path mark is obtained, and
The addition message is forwarded to the next-hop.
In another implementation, described device is used for the function of realizing value-added service equipment.The service path letter
Breath also includes next-hop, described to be included according to the service path information updating forward table:According to the service path information more
The second forward table being newly locally stored, second forward table include the correspondence of service path mark and the next-hop
Relation.The addition message that obtains includes:The addition message that upper hop equipment is sent is received, the upper hop equipment includes
Stream distribution point or upper hop value-added service equipment.Then, the operation also includes:Value-added service is carried out to the addition message
Processing, the addition message after being handled.The forwarding list processing institute for identifying and being locally stored according to the service path
Stating addition message includes:According to the second forward table described in the service path identifier lookup, the corresponding service path mark is obtained
The next-hop of knowledge, and forward the addition message after the processing to the next-hop;Or according to the service path identifier lookup
Second forward table, the next-hop of the corresponding service path mark is obtained, when the next-hop is terminates mark, is deleted
The service path option in addition message after the processing, the service message after being handled, after the processing
Service message is normally forwarded;Or when also including life span, and the value of the life span in the service path option
During more than 1, addition message includes described in the forwarding list processing for identifying and being locally stored according to the service path:By institute
The value for stating the generation time in service path option subtracts 1, according to the second forward table described in the service path identifier lookup,
The next-hop of the corresponding service path mark is obtained, the addition message after the processing is forwarded to the next-hop;Or work as institute
Stating also includes life span in service path option, and the value of the life span be 1 when, it is described according to the service path mark
Know and the forwarding list processing that is locally stored described in addition message include:Delete the industry in the addition message after the processing
Business Path Options, the service message after being handled, are normally forwarded to the service message after the processing, i.e., according to
The destination address of service message after processing carries out two layers or three layers forwarding to the service message.
Device shown in above-mentioned Fig. 8 and Fig. 9 is used to realize the method described in above-mentioned Fig. 3, Fig. 6 and Fig. 7.Therefore, originally
The description being not described in embodiment, it may be referred to the above-mentioned explanation for Fig. 3, Fig. 6 and Fig. 7.
In the above embodiment of the present invention, handle the device of message includes what service path identified according to what management equipment was sent
The forward table of service path information updating storage, and E-Packeted according to the forward table, realize business in message repeating process
ID of trace route path and the decoupling of the field in standard tunnel head, avoid and come identification service path using the field in standard tunnel head
Caused service conflict.Also, the above embodiment of the present invention does not need the tunnel work(outside the device commitment of the processing message
Energy, alleviate the burden of described device.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention principle it
It is interior, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.
Claims (12)
- A kind of 1. method for handling message, it is characterised in that including:Addition message is obtained, the addition message is that the report obtained after service path option is added in the IP heads of service message Text, the service path option are identified including service path, and the service path is identified for identification service path;The service path mark is obtained according to the service path option;Message is added according to the forwarding list processing that the service path is identified and is locally stored;Described to obtain before adding message, methods described also includes:The service path information that management equipment is sent is received, the service path information identifies including the service path;According to forward table described in the service path information updating;Wherein, the forward table is the first forward table, and the service path information also includes traffic stream identifier and next-hop, institute State traffic stream identifier and be used for identification service stream;The forward table according to the service path information updating includes:According to the first forward table described in the service path information updating, first forward table include the traffic stream identifier, The corresponding relation of the service path mark and the next-hop.
- 2. according to the method for claim 1, it is characterised in that the addition message that obtains includes:The service message is received, the service message belongs to Business Stream corresponding to the traffic stream identifier;The traffic stream identifier is obtained according to the service message, according to the traffic stream identifier search first forward table with The service path mark is obtained, the business road is added in the IP heads of the service message according to service path mark Footpath option, obtain the addition message.
- 3. according to the method for claim 2, it is characterised in that described to identify and be locally stored according to the service path Forwarding list processing described in addition message include:According to the first forward table described in the service path identifier lookup, the next-hop of the corresponding service path mark is obtained, And forward the addition message to the next-hop.
- 4. according to the method for claim 1, it is characterised in that the service path information also includes the service path mark The nodes of service path corresponding to knowledge, first forward table include the traffic stream identifier, the service path mark, institute State the corresponding relation of next-hop and the nodes.
- 5. according to the method for claim 4, it is characterised in that the addition message that obtains includes:The service message is received, the service message belongs to Business Stream corresponding to the traffic stream identifier;The traffic stream identifier is obtained according to the service message, according to the traffic stream identifier search first forward table with The service path mark and the nodes are obtained, according to service path mark and the nodes in the business Service path option is added in the IP heads of message, obtains the addition message, the service path option includes the business road Footpath identifies and life span, and the value of the life span is the nodes.
- 6. according to the method for claim 5, it is characterised in that described to identify and be locally stored according to the service path Forwarding list processing described in addition message include:After subtracting 1 by the value of the life span in the service path option, first according to the service path identifier lookup Forward table, the next-hop of the corresponding service path mark is obtained, and the addition message is forwarded to the next-hop.
- A kind of 7. device for handling message, it is characterised in that including:First acquisition unit, message is added for obtaining, the addition message is that business road is added in the IP heads of service message The message obtained after the option of footpath, the service path option are identified including service path, and the service path is identified for identifying Service path;Second acquisition unit, identified for obtaining the service path according to the service path option;Memory cell, for forwarding table memory;Processing unit, for adding message according to service path mark and the forwarding list processing;Receiving unit, for receiving the service path information of management equipment transmission, the service path information includes service path Mark;Updating block, for the forward table according to the service path information updating;Wherein, the forward table is the first forward table, and the service path information also includes traffic stream identifier and next-hop, institute State traffic stream identifier and be used for identification service stream;The updating block is used for:According to the first forward table described in the service path information updating, first forward table include the traffic stream identifier, The corresponding relation of the service path mark and the next-hop.
- 8. device according to claim 7, it is characterised in that the first acquisition unit is used for:The service message is received, the service message belongs to Business Stream corresponding to the traffic stream identifier;The traffic stream identifier is obtained according to the service message, according to the traffic stream identifier search first forward table with The service path mark is obtained, the business road is added in the IP heads of the service message according to service path mark Footpath option, obtain the addition message.
- 9. device according to claim 8, it is characterised in that the processing unit is used for:According to the service path mark Know and search first forward table, obtain the next-hop of the corresponding service path mark, and to described in next-hop forwarding Add message.
- 10. device according to claim 7, it is characterised in that the service path information also includes the service path The nodes of service path corresponding to mark, first forward table include the traffic stream identifier, the service path mark, The corresponding relation of the next-hop and the nodes.
- 11. device according to claim 10, it is characterised in that the first acquisition unit is used for:The service message is received, the service message belongs to Business Stream corresponding to the traffic stream identifier;The traffic stream identifier is obtained according to the service message, according to the traffic stream identifier search first forward table with The service path mark and the nodes are obtained, according to service path mark and the nodes in the business Service path option is added in the IP heads of message, obtains the addition message, the service path option includes the business road Footpath identifies and life span, and the value of the life span is the nodes.
- 12. device according to claim 11, it is characterised in that the processing unit is used for:After subtracting 1 by the value of the life span in the service path option, first according to the service path identifier lookup Forward table, the next-hop of the corresponding service path mark is obtained, and the addition message is forwarded to the next-hop.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2013/091177 WO2015100644A1 (en) | 2013-12-31 | 2013-12-31 | Method and apparatus for processing packet |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105009542A CN105009542A (en) | 2015-10-28 |
CN105009542B true CN105009542B (en) | 2018-01-23 |
Family
ID=53492987
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201380003574.8A Active CN105009542B (en) | 2013-12-31 | 2013-12-31 | A kind of method and apparatus for handling message |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105009542B (en) |
WO (1) | WO2015100644A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP4231605A3 (en) | 2016-07-01 | 2023-09-27 | Huawei Technologies Co., Ltd. | Service function chaining sfc-based packet forwarding method, apparatus, and system |
CN109922005B (en) * | 2017-12-13 | 2022-08-19 | 中兴通讯股份有限公司 | Load sharing method, device and system and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1624644A2 (en) * | 2004-08-02 | 2006-02-08 | Novell, Inc. | Privileged network routing |
CN101030918A (en) * | 2006-03-03 | 2007-09-05 | 华为技术有限公司 | Method, apparatus and system for supplying packet service based on IP network |
CN101599895A (en) * | 2008-06-04 | 2009-12-09 | 华为技术有限公司 | Data processing method and wideband network gateway, strategy controller device and access node apparatus |
CN102143035A (en) * | 2010-06-04 | 2011-08-03 | 华为技术有限公司 | Data traffic processing method, network device and network system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10339280B4 (en) * | 2003-08-26 | 2006-09-07 | Siemens Ag | Selection procedure for message paths in communication systems |
CN101360097B (en) * | 2007-08-01 | 2011-11-02 | 华为技术有限公司 | Method, network and network element for forwarding packet |
US8284666B2 (en) * | 2009-06-29 | 2012-10-09 | Alcatel Lucent | Method and apparatus for controlling packet flow in a packet-switched network |
CN102571545A (en) * | 2010-12-27 | 2012-07-11 | 华为技术有限公司 | Method and device for transmitting information in IPv4 (Internet Protocol vision 4) network |
CN102437931B (en) * | 2011-12-29 | 2015-07-08 | 华为技术有限公司 | Detection method and device of service path |
-
2013
- 2013-12-31 CN CN201380003574.8A patent/CN105009542B/en active Active
- 2013-12-31 WO PCT/CN2013/091177 patent/WO2015100644A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1624644A2 (en) * | 2004-08-02 | 2006-02-08 | Novell, Inc. | Privileged network routing |
CN101030918A (en) * | 2006-03-03 | 2007-09-05 | 华为技术有限公司 | Method, apparatus and system for supplying packet service based on IP network |
CN101599895A (en) * | 2008-06-04 | 2009-12-09 | 华为技术有限公司 | Data processing method and wideband network gateway, strategy controller device and access node apparatus |
CN102143035A (en) * | 2010-06-04 | 2011-08-03 | 华为技术有限公司 | Data traffic processing method, network device and network system |
Also Published As
Publication number | Publication date |
---|---|
CN105009542A (en) | 2015-10-28 |
WO2015100644A1 (en) | 2015-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11374848B2 (en) | Explicit routing with network function encoding | |
JP7375068B2 (en) | Data packet detection methods, devices, and systems | |
CN109218178B (en) | Message processing method and network equipment | |
CN104380658B (en) | Flow classifier, business route flip-flop, the method and system of Message processing | |
US7471669B1 (en) | Routing of protocol data units within a communication network | |
US7995477B2 (en) | Collecting network traffic information | |
US10263808B2 (en) | Deployment of virtual extensible local area network | |
CN106603413B (en) | Method and device for transmitting flow through designated path | |
US20050053006A1 (en) | Obtaining path information related to a bridged network | |
CN106487558B (en) | A kind of method and apparatus for realizing the scalable appearance of access device | |
CN103036809A (en) | Methods and apparatus for a scalable network with efficient link utilization | |
CN105765946A (en) | A method and system of supporting service chaining in a data network | |
KR20060024337A (en) | Customer mac frame forwarding method, edge bridge, and program | |
CN105024985A (en) | Message processing method and apparatus | |
WO2015100650A1 (en) | Packet processing method, apparatus and system | |
CN105814943A (en) | VPNv4 ROUTE CONTROL FOR LTE X2 SON USING UNIQUE ROUTE TARGETS | |
CN104429022B (en) | Connectivity Fault Management in communication network | |
CN110380959A (en) | Method for forwarding message and device | |
CN106789625A (en) | A kind of loop detecting method and device | |
CN1697408B (en) | Method for managing routes in virtual private network based on IPv6 | |
CN112995040A (en) | Message path tracing method and device based on equipment identification calculation | |
CN105009542B (en) | A kind of method and apparatus for handling message | |
CN106533503B (en) | A kind of method and device of powerline network communication | |
CN104702505B (en) | A kind of message transmitting method and node | |
EP1770904B1 (en) | Method and network management system for determining the topology of a communication network |
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 |