CN109150720A - Business chain message forwarding method, device, equipment and computer readable storage medium - Google Patents
Business chain message forwarding method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN109150720A CN109150720A CN201710472256.6A CN201710472256A CN109150720A CN 109150720 A CN109150720 A CN 109150720A CN 201710472256 A CN201710472256 A CN 201710472256A CN 109150720 A CN109150720 A CN 109150720A
- Authority
- CN
- China
- Prior art keywords
- service
- chain
- business
- business chain
- message
- 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
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
- H04L45/50—Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of business chain message forwarding methods, this method comprises: receiving the service message that upstream business node is sent, identify the corresponding type of service of the service message;It determines abstract service chain corresponding with the type of service, obtains the service path mark of the abstract service chain;According to the preset business chain mapping table of the service path identifier lookup of the abstract service chain, specific business chain corresponding with the abstract service chain is obtained;The service message is forwarded to the next-hop service node of current business node according to the business chain information by the business chain information for obtaining the specific business chain.The invention also discloses a kind of business chain apparatus for forwarding message, equipment and a kind of computer readable storage mediums.The present invention is able to ascend the message forward efficiency of business catenary system.
Description
Technical field
The present invention relates to network communication technology fields more particularly to business chain message forwarding method, device and computer can
Read storage medium.
Background technique
One data flow is sequentially handled by a series of network service node, a series of this orderly network service section
Point is known as business chain (Service Function Chain, abbreviation SFC), and business catenary system includes classifier, business function turn
Multiple functional nodes such as device, service node, business function agency are sent out, and in order to realize various businesses logic, it is necessary to business chain
Realizing can define, is programmable, and here it is arranging services.The layout in business chain path includes two logical levels: abstract service chain
With specific business chain.Wherein, abstract service chain refers to business chain that is notional, not instantiating, as layout one comprising anti-
The business chain of wall with flues business function;Specific business chain then refer to physically, instantiated business chain.For specification, stream
The considerations of amount, disaster tolerance etc., an abstract service chain meeting example are melted into a plurality of specific business chain, and same abstract service chain
Under specific business chain between to carry out load sharing.
In the prior art, abstract service chain and specific business chain all use SPI (Service Path ID, business chain mark
Know) carry out unique identification, but the SPI of the two does not have relevance, thus when carrying out message forwarding, it is also necessary to additionally layout and under
Hair relevant parameter could allow the node in business catenary system to know that abstract service chain completes number with being associated with for specific business chain in turn
According to forwarding, this undoubtedly increases the complexity of system processing, reduces system treatment effeciency.
Summary of the invention
It is a primary object of the present invention to propose a kind of business chain message forwarding method, device, equipment and computer-readable
Storage medium, it is intended to promote the message forward efficiency of business catenary system.
To achieve the above object, the present invention provides a kind of business chain message forwarding method, business chain message forwarding side
Method includes the following steps:
The service message that upstream business node is sent is received, identifies the corresponding type of service of the service message;
It determines abstract service chain corresponding with the type of service, obtains the service path mark of the abstract service chain;
According to the preset business chain mapping table of the service path identifier lookup of the abstract service chain, obtain being abstracted with described
The corresponding specific business chain of business chain;
The service message is forwarded to by the business chain information for obtaining the specific business chain according to the business chain information
The next-hop service node of current business node.
Preferably, the service message for receiving upstream business node and sending, identifies the corresponding business of the service message
Before the step of type, further includes:
The service path mark of abstract service chain is set;
The abstract service chain is instantiated as several specific business chains, the service path of every specific business chain is set
Mark, wherein the service path mark of the specific business chain is identified comprising the service path of the abstract service chain;
Setting result is saved into business chain mapping table.
Preferably, the service path mark of the specific business chain also includes flag bit, and the flag bit is for identifying institute
State the generation method of the service path mark of specific business chain.
Preferably, the business chain information for obtaining the specific business chain, according to the business chain information by the industry
Business message the step of being forwarded to the next-hop service node of current business node includes:
When finding a plurality of specific business chain, the default weighted value of the specific business chain of every found is obtained;
The service message is forwarded to the next-hop service node of current business node according to the default weighted value.
Preferably, the next-hop that the service message is forwarded to current business node according to the default weighted value
The step of service node includes:
The maximum specific business chain of the default weighted value is chosen as first object business chain;
The service message is forwarded to the next-hop business section of current business node according to the first object business chain
Point.
Preferably, the business chain information for obtaining the specific business chain, according to the business chain information by the industry
Business message the step of being forwarded to the next-hop service node of current business node includes:
When finding a plurality of specific business chain, the default instance number of the specific business chain of every found is obtained, it is described
Instance number is used to indicate the instantiation ordinal number of specific business chain;
The service message is forwarded to the next-hop service node of current business node according to the instance number.
Preferably, the next-hop business that the service message is forwarded to current business node according to the instance number
The step of node includes:
The priority of the specific business chain is determined according to the size of the instance number;
The specific business chain of highest priority is chosen as the second target service chain;
The service message is forwarded to the next-hop business section of current business node according to the second target service chain
Point.
In addition, to achieve the above object, the present invention also provides a kind of business chain apparatus for forwarding message, the business chain message
Retransmission unit includes:
Receiving module identifies the corresponding industry of the service message for receiving the service message of upstream business node transmission
Service type;
Determining module obtains the abstract service chain for determining abstract service chain corresponding with the type of service
Service path mark;
Searching module, for the preset business chain mapping table of service path identifier lookup according to the abstract service chain,
Obtain specific business chain corresponding with the abstract service chain;
Forwarding module will be described according to the business chain information for obtaining the business chain information of the specific business chain
Service message is forwarded to the next-hop service node of current business node.
In addition, to achieve the above object, the present invention also provides a kind of business chain message forwarding equipment, the business chain message
Forwarding device includes: memory, processor and is stored in the business chain that can be run on the memory and on the processor
Message retransmission process, the business chain message retransmission process realize following steps when being executed by the processor:
The service message that upstream business node is sent is received, identifies the corresponding type of service of the service message;
It determines abstract service chain corresponding with the type of service, obtains the service path mark of the abstract service chain;
According to the preset business chain mapping table of the service path identifier lookup of the abstract service chain, obtain being abstracted with described
The corresponding specific business chain of business chain;
The service message is forwarded to by the business chain information for obtaining the specific business chain according to the business chain information
The next-hop service node of current business node.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
Business chain message retransmission process is stored on storage medium, under realizing when the business chain message retransmission process is executed by processor
Step:
The service message that upstream business node is sent is received, identifies the corresponding type of service of the service message;
It determines abstract service chain corresponding with the type of service, obtains the service path mark of the abstract service chain;
According to the preset business chain mapping table of the service path identifier lookup of the abstract service chain, obtain being abstracted with described
The corresponding specific business chain of business chain;
The service message is forwarded to by the business chain information for obtaining the specific business chain according to the business chain information
The next-hop service node of current business node.
The present invention receives the service message that upstream business node is sent, and identifies the corresponding type of service of the service message;
It determines abstract service chain corresponding with the type of service, obtains the service path mark of the abstract service chain;According to described
The preset business chain mapping table of the service path identifier lookup of abstract service chain obtains corresponding with the abstract service chain specific
Business chain;The service message is forwarded to by the business chain information for obtaining the specific business chain according to the business chain information
The next-hop service node of current business node.Compared with the existing technology, the present invention is by abstract service chain and specific business chain
Incidence relation writes direct in service path mark, so that current business node can be according to business when carrying out message forwarding
ID of trace route path quickly determines specific business chain corresponding with abstract service chain, improves the message forward efficiency of business catenary system.
Detailed description of the invention
Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of business chain message forwarding method first embodiment of the present invention;
Fig. 3 is the flow diagram of business chain message forwarding method second embodiment of the present invention;
Fig. 4 is the flow diagram of business chain message forwarding method 3rd embodiment of the present invention;
Fig. 5 is the flow diagram of business chain message forwarding method fourth embodiment of the present invention;
Fig. 6 is the functional block diagram of one embodiment of business chain apparatus for forwarding message of the present invention.
The object of the invention is realized, the embodiments will be further described with reference to the accompanying drawings for functional characteristics and advantage.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are: the service message that reception upstream business node is sent, described in identification
The corresponding type of service of service message;It determines abstract service chain corresponding with the type of service, obtains the abstract service chain
Service path mark;According to the preset business chain mapping table of the service path identifier lookup of the abstract service chain, obtain with
The corresponding specific business chain of the abstract service chain;The business chain information for obtaining the specific business chain, according to the business chain
The service message is forwarded to the next-hop service node of current business node by information.
In the prior art, abstract service chain and specific business chain all use SPI (Service Path ID, business chain mark
Know) carry out unique identification, but the SPI of the two does not have relevance, thus when carrying out message forwarding, it is also necessary to additionally layout and under
Hair relevant parameter could allow the node in business catenary system to know that abstract service chain completes number with being associated with for specific business chain in turn
According to forwarding, this undoubtedly increases the complexity of system processing, reduces system treatment effeciency.
The present invention writes direct the incidence relation of abstract service chain and specific business chain in service path mark, thus
When carrying out message forwarding, it is corresponding with abstract service chain specific that current business node can identify quick determination according to service path
Business chain improves the message forward efficiency of business catenary system.
The present invention provides a kind of business chain message forwarding method.
As shown in Figure 1, Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
Business chain message forwarding equipment of the embodiment of the present invention can be PC, be also possible to smart phone, tablet computer, portable
The packaged type terminal device having a display function such as computer.
As shown in Figure 1, the equipment may include: processor 1001, such as CPU, network interface 1004, user interface
1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these components.
User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface
1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include that the wired of standard connects
Mouth, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of device structure shown in Fig. 1, can wrap
It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium
Believe module, Subscriber Interface Module SIM and business chain message retransmission process.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server
Data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client;And processor
1001 can be used for calling the business chain message retransmission process stored in memory 1005, and execute following operation:
The service message that upstream business node is sent is received, identifies the corresponding type of service of the service message;
It determines abstract service chain corresponding with the type of service, obtains the service path mark of the abstract service chain;
According to the preset business chain mapping table of the service path identifier lookup of the abstract service chain, obtain being abstracted with described
The corresponding specific business chain of business chain;
The service message is forwarded to by the business chain information for obtaining the specific business chain according to the business chain information
The next-hop service node of current business node.
Further, processor 1001 can call the business chain message retransmission process stored in memory 1005, also hold
The following operation of row:
The service path mark of abstract service chain is set;
The abstract service chain is instantiated as several specific business chains, the service path of every specific business chain is set
Mark, wherein the service path mark of the specific business chain is identified comprising the service path of the abstract service chain;
Setting result is saved into business chain mapping table.
Further, the service path mark of the specific business chain also includes flag bit, and the flag bit is for identifying
The generation method of the service path mark of the specific business chain.
Further, processor 1001 can call the business chain message retransmission process stored in memory 1005, also hold
The following operation of row:
When finding a plurality of specific business chain, the default weighted value of the specific business chain of every found is obtained;
The service message is forwarded to the next-hop service node of current business node according to the default weighted value.
Further, processor 1001 can call the business chain message retransmission process stored in memory 1005, also hold
The following operation of row:
The maximum specific business chain of the default weighted value is chosen as first object business chain;
The service message is forwarded to the next-hop business section of current business node according to the first object business chain
Point.
Further, processor 1001 can call the business chain message retransmission process stored in memory 1005, also hold
The following operation of row:
When finding a plurality of specific business chain, the default instance number of the specific business chain of every found is obtained, it is described
Instance number is used to indicate the instantiation ordinal number of specific business chain;
The service message is forwarded to the next-hop service node of current business node according to the instance number.
Further, processor 1001 can call the business chain message retransmission process stored in memory 1005, also hold
The following operation of row:
The priority of the specific business chain is determined according to the size of the instance number;
The specific business chain of highest priority is chosen as the second target service chain;
The service message is forwarded to the next-hop business section of current business node according to the second target service chain
Point.
Based on above-mentioned hardware configuration, business chain message forwarding method embodiment of the present invention is proposed.
It is the flow diagram of business chain message forwarding method first embodiment of the present invention, the business referring to Fig. 2, Fig. 2
Chain message forwarding method includes:
Step S10 receives the service message that upstream business node is sent, identifies the corresponding service class of the service message
Type;
The present embodiment carries out the forwarding of business chain message by the service node in business catenary system.Firstly, current business
Node receives the service message that upstream business node is sent, and identifies the corresponding type of service of service message received.
Specifically, current business node can identify the corresponding type of service of service message by preset business game,
Wherein, preset business game includes type of service and message characteristic information corresponding with type of service, according to different business
Demand, type of service may include access webpage, access database, access server etc..With a upper industry for current business node
Node be engaged in as user equipment, user equipment receives user instructions first and generate corresponding service message, current business section
Point receives the service message of user equipment transmission, parses to the service message received, to obtain such as user
Then the characteristic informations such as grade, access style and wireless communication status carry out business game matching according to these characteristic informations, thus
Identify corresponding type of service.
Step S20 determines abstract service chain corresponding with the type of service, obtains the business road of the abstract service chain
Diameter mark;
After identifying the type of service of service message, current business node determines corresponding with the type of service abstract again
Business chain, and obtain the service path mark of the abstract service chain.
In the present embodiment, abstract service chain refers to that business chain that is notional, not instantiating, service path mark are
SPI (Service Path ID) is used for one business chain of unique identification.Administrative staff can be preparatory according to actual business requirement
Business chain layout is carried out, is identified according to the service path of different type of service setting abstract service chain and abstract service chain,
Then business chain arrangement information is issued and is stored in business chain node, business chain node is in the business for identifying service message
After type, abstract service chain corresponding with the type of service and abstract service chain just can determine according to the business chain arrangement information
Service path mark.
Step S30, according to the preset business chain mapping table of the service path identifier lookup of the abstract service chain, obtain with
The corresponding specific business chain of the abstract service chain;
After the service path mark for getting abstract service chain, according to the preset business chain of service path identifier lookup
Mapping table obtains specific business chain corresponding with the abstract service chain.
In the present embodiment, business chain mapping table is reflected by the preparatory layout of business chain layout device in service node, business chain
In firing table include abstract service chain and specific business chain mapping relations, and this mapping relations be by service path mark come
It realizes.In one embodiment, the service path mark of abstract service chain can be preset, then is arranged under abstract service chain
The service path mark of specific business chain, and industry of the service path mark of specific business chain comprising the abstract service chain belonging to it
Be engaged in ID of trace route path, in this way, when known abstract service chain service path mark when, so that it may from business chain mapping table search with
The service path of the abstract service chain identifies the service path mark of identical specific business chain, to obtain and the abstract service
The corresponding specific business chain of chain.
Step S40 obtains the business chain information of the specific business chain, according to the business chain information by the business report
Text is forwarded to the next-hop service node of current business node.
Later, current business node obtains the business chain information of specific business chain, which may include specific
The service path mark of business chain, the service node for being included, the ordinal relation of service node, business chain weight, business chain are real
Example number etc., similarly, the business chain information of specific business chain can also be obtained by preparatory layout.
After getting the business chain information of specific business chain, current business node can determine current business node
Next-hop service node, to carry out service message forwarding.There are two kinds of situations at this time: when the specific business chain found only has
At one, service message can be directly forwarded to currently according to the business chain information of the specific business chain of this by current business node
The next-hop service node of service node;When the specific business chain found has a plurality of, this plurality of specific business can be compared
The default weighted value of chain selects the higher specific business chain of weighted value to carry out service message forwarding, alternatively, can also be more according to this
The pre-set priority of the specific business chain of item, it is preferential that the higher specific business chain of priority is selected to carry out service message forwarding, specifically
Flexible setting can be carried out in implementation.
When carrying out service message forwarding, current business node encapsulates the service path mark of specific business chain to business
In message, next-hop service node parses the business road of the specific business chain in service message when receiving service message
Then diameter mark searches business chain mapping table and determines abstract service chain belonging to the specific business chain, and then can continue to determine
Next-hop service node ensure that the smooth transmitting in business chain of service message.
In the present embodiment, current business node receives the service message that upstream business node is sent, and identifies the business
The corresponding type of service of message;It determines abstract service chain corresponding with the type of service, obtains the industry of the abstract service chain
Business ID of trace route path;According to the preset business chain mapping table of the service path identifier lookup of the abstract service chain, obtain with it is described
The corresponding specific business chain of abstract service chain;The business chain information for obtaining the specific business chain, according to the business chain information
The service message is forwarded to the next-hop service node of current business node.Compared with the existing technology, the present embodiment will be taken out
As the incidence relation of business chain and specific business chain writes direct in service path mark, thus when carrying out message forwarding, when
Preceding service node can identify quick determination specific business chain corresponding with abstract service chain according to service path, improve business
The message forward efficiency of catenary system.
It further, is the flow diagram of business chain message forwarding method second embodiment of the present invention referring to Fig. 3, Fig. 3.
Based on above-mentioned embodiment shown in Fig. 2, before step S10, can also include:
Step S50, the service path mark of setting abstract service chain;
The abstract service chain is instantiated as several specific business chains, every specific business chain is arranged by step S60
Service path mark, wherein the service path mark of the specific business chain includes the service path mark of the abstract service chain
Know;
Step S70 saves setting result into business chain mapping table.
The present embodiment carries out the layout of business chain mapping table, business chain layout by the business chain layout device of service node
Device can receive the setting instruction of administrative staff, first the service path mark of setting abstract service chain, then by abstract service
Chain is instantiated, and the considerations of for specification, flow, disaster tolerance etc., often example chemical conversion is a plurality of for an abstract service chain
Specific business chain, and load sharing is carried out between the specific business chain under same abstract service chain.By abstract service chain
After being instantiated as several specific business chains, then the service path mark of every specific business chain is set, wherein specific business chain
Service path mark should be identified comprising the service path of the abstract service chain, subsequent just can so be identified by service path
Quickly recognize the specific business chain under abstract service chain, or abstract service chain belonging to specific business chain.It is being provided with
Afterwards, business chain layout device is saved result is arranged into business chain mapping table, to facilitate subsequent lookup.
Further, the service path mark of the specific business chain also includes flag bit, and the flag bit is for identifying
The generation method of the service path mark of the specific business chain.
In practical business catenary system, except the generating mode of the service path mark of specific business chain provided by the present invention
Outside, it is also possible to there are other modes to generate the service path mark of specific business chain, such as not according to the business road of abstract service chain
Diameter mark generates the service path mark of specific business chain, thus, the present embodiment can be in the service path mark of specific business chain
Marker is set in knowledge, which is used to identify the generation method of the service path mark of specific business chain of the invention, such as
When flag bit is 1, the SPI that abstract service chain is encapsulated in the SPI of specific business chain can be indicated, it, can when flag bit is 0
The SPI of unencapsulated abstract service chain in SPI to indicate specific business chain, in this way, service node just can be incited somebody to action according to marker
The generating mode and other generating modes of the service path mark of the specific business chain of the present invention distinguish, after guaranteeing
The process of the continuous specific business chain of service path identifier lookup by abstract service chain is gone on smoothly.
It further, is the flow diagram of business chain message forwarding method 3rd embodiment of the present invention referring to Fig. 4, Fig. 4.
Based on business chain message forwarding method the first embodiment or the second embodiment of the present invention, step S40 may include:
Step S41 obtains the default weight of the specific business chain of every found when finding a plurality of specific business chain
Value;
The service message is forwarded to the next-hop industry of current business node according to the default weighted value by step S42
Business node.
In the present embodiment, when finding a plurality of specific business chain, current business node obtain first find it is every
Then service message is forwarded to current industry further according to the weighted value of each specific business chain by the default weighted value of the specific business chain of item
The next-hop service node of business node.Wherein, weighted value is used to indicate the load capacity of specific business chain, and load capacity is higher,
Then weighted value is bigger, and the purpose that weighted value is arranged is to realize load balancing, for example, when there are a plurality of specific business chain, it can
Data forwarding is carried out with the higher specific business chain of preoption weight values, or is distributed to service message not according to weighted value
The case where same specific business chain is forwarded, and can so avoid the occurrence of idle business chain node or overload, guarantees business chain
The effective use of resource.
Further, as an implementation, step S42 may include:
Step S421 chooses the default maximum specific business chain of weighted value as first object business chain;
The service message is forwarded to the next of current business node according to the first object business chain by step S422
Jump service node.
As first object business chain, then current business node can choose the maximum specific business chain of default weighted value
The next-hop service node of service message forwarding is determined according to the first object business chain and carries out the forwarding of service message.It needs
Illustrate, before carrying out message forwarding, current business node can detecte whether next-hop service node can be used, such as whether
Failure etc., if so, the forwarding of service message is carried out, if it is not, can then reselect a target industry according to default weighted value
Business chain carries out the forwarding of service message.
As another embodiment, current business node can also distribute to service message not according to default weighted value
Same specific business chain is forwarded, for example, there are two specific business chains under a certain abstract service chain, and this two specific industry
The weight of business chain is 0.5, then current business node can be by service message mean allocation to this two specific business chains, in turn
It is forwarded to the corresponding next-hop service node of this two specific business chains respectively, is achieved in load balancing.
It further, is the flow diagram of business chain message forwarding method fourth embodiment of the present invention referring to Fig. 5, Fig. 5.
Based on business chain message forwarding method the first embodiment or the second embodiment of the present invention, step S40 can also include:
Step S43 obtains the default example of the specific business chain of every found when finding a plurality of specific business chain
Number, the instance number is used to indicate the instantiation ordinal number of specific business chain;
The service message is forwarded to the next-hop business section of current business node according to the instance number by step S44
Point.
In the present embodiment, when finding a plurality of specific business chain, current business node obtain first find it is every
Service message, is then forwarded to the next-hop of current business node by the default instance number of the specific business chain of item further according to instance number
Service node.Wherein, instance number is used to indicate the instantiation ordinal number of specific business chain, such as a pumping comprising firewall functionality
As business chain, two specific business chains are instantiated as, the example number is respectively 1 and 2,1 and 2 i.e. instantiation ordinal number.
Further, step S44 may include:
Step S441 determines the priority of the specific business chain according to the size of the instance number;
Step S442 chooses the specific business chain of highest priority as the second target service chain;
The service message is forwarded to the next of current business node according to the second target service chain by step S443
Jump service node.
Specifically, current business node can determine the priority of specific business chain according to the size of instance number, for example, root
The sequence of priority is determined according to the ascending sequence of instance number, instance number is smaller, then priority is higher, the choosing of current business node
It takes a specific business chain of highest priority as the second target service chain, industry is then determined according to the second target service chain
The next-hop service node of business message forwarding and the forwarding for carrying out service message.Similarly, before carrying out message forwarding, currently
Service node can detecte whether next-hop service node can be used, if so, the forwarding of service message is carried out, if it is not, then can be with
The forwarding that a target business chain carries out service message is reselected according to instance number.
The present embodiment can make current business node know the example of specific business chain by the instance number of specific business chain
Change ordinal number, to carry out message forwarding according to suitable specific business chain is chosen according to instantiation ordinal number, ensure that message forwards
Process is gone on smoothly.
The present invention also provides a kind of business chain apparatus for forwarding message.
It is the functional block diagram of one embodiment of business chain apparatus for forwarding message of the present invention referring to Fig. 6, Fig. 6.The present invention
Business chain apparatus for forwarding message includes:
Receiving module 10 identifies that the service message is corresponding for receiving the service message of upstream business node transmission
Type of service;
The present embodiment carries out the forwarding of business chain message by the service node in business catenary system.Firstly, receiving module
10 receive the service message that upstream business node is sent, and identify the corresponding type of service of service message received.
Specifically, receiving module 10 can identify the corresponding type of service of service message by preset business game,
In, preset business game includes type of service and message characteristic information corresponding with type of service, according to different business need
It asks, type of service may include access webpage, access database, access server etc..With a upper business for current business node
Node is for user equipment, user equipment receives user instructions first and generates corresponding service message, and receiving module 10 connects
The service message for receiving user equipment transmission, parses the service message received, to obtain such as user gradation, connect
Enter the characteristic informations such as type and wireless communication status, then business game matching is carried out according to these characteristic informations, to identify
Corresponding type of service out.
Determining module 20 obtains the abstract service chain for determining abstract service chain corresponding with the type of service
Service path mark;
After receiving module 10 identifies the type of service of service message, determining module 20 determines and the type of service pair again
The abstract service chain answered, and obtain the service path mark of the abstract service chain.
In the present embodiment, abstract service chain refers to that business chain that is notional, not instantiating, service path mark are
SPI (Service Path ID) is used for one business chain of unique identification.Administrative staff can be preparatory according to actual business requirement
Business chain layout is carried out, is identified according to the service path of different type of service setting abstract service chain and abstract service chain,
Then business chain arrangement information is issued and is stored in business chain node, receiving module 10 is in the business for identifying service message
After type, determining module 20 according to the business chain arrangement information just can determine abstract service chain corresponding with the type of service and
The service path of abstract service chain identifies.
Searching module 30, for the preset business chain mapping of service path identifier lookup according to the abstract service chain
Table obtains specific business chain corresponding with the abstract service chain;
After the service path mark for getting abstract service chain, searching module 30 is pre- according to the service path identifier lookup
If business chain mapping table, obtain specific business chain corresponding with the abstract service chain.
In the present embodiment, business chain mapping table is reflected by the preparatory layout of business chain layout device in service node, business chain
In firing table include abstract service chain and specific business chain mapping relations, and this mapping relations be by service path mark come
It realizes.In one embodiment, the service path mark of abstract service chain can be preset, then is arranged under abstract service chain
The service path mark of specific business chain, and industry of the service path mark of specific business chain comprising the abstract service chain belonging to it
Business ID of trace route path, in this way, searching module 30 can be mapped from business chain when the service path of known abstract service chain mark
The service path for identifying identical specific business chain with the service path of the abstract service chain is searched in table to identify, thus obtain with
The corresponding specific business chain of the abstract service chain.
Forwarding module 40, for obtaining the business chain information of the specific business chain, according to the business chain information by institute
State the next-hop service node that service message is forwarded to current business node.
Later, forwarding module 40 obtains the business chain information of specific business chain, which may include specific industry
Service path mark, ordinal relation, business chain weight, the business chain example of the service node for being included, service node of business chain
Number etc., similarly, the business chain information of specific business chain can also be obtained by preparatory layout.
After getting the business chain information of specific business chain, forwarding module 40 can be determined under current business node
One jumps service node, to carry out service message forwarding.There are two kinds of situations at this time: when the specific business chain found only has one
When, service message directly can be forwarded to current business according to the business chain information of the specific business chain of this by forwarding module 40
The next-hop service node of node;When the specific business chain found has a plurality of, forwarding module 40 can compare this plurality of tool
The default weighted value of body business chain selects the higher specific business chain of weighted value to carry out service message forwarding, alternatively, can also root
It is preferential that the higher specific business chain of priority is selected to carry out service message turn according to the pre-set priority of this plurality of specific business chain
It sends out, flexible setting can be carried out in specific implementation.
When carrying out service message forwarding, forwarding module 40 encapsulates the service path mark of specific business chain to business report
Wen Zhong, next-hop service node parse the service path of the specific business chain in service message when receiving service message
Then mark searches business chain mapping table and determines abstract service chain belonging to the specific business chain, and then can continue under determining
One jumps service node, ensure that the smooth transmitting in business chain of service message.
In the present embodiment, receiving module 10 receives the service message that upstream business node is sent, and identifies the business report
The corresponding type of service of text;Determining module 20 determines abstract service chain corresponding with the type of service, obtains the abstract industry
The service path mark of business chain;Searching module 30 is according to the preset business chain of service path identifier lookup of the abstract service chain
Mapping table obtains specific business chain corresponding with the abstract service chain;Forwarding module 40 obtains the industry of the specific business chain
The service message, the next-hop service node of current business node is forwarded to according to the business chain information by business chain information.
Compared with the existing technology, the incidence relation of abstract service chain and specific business chain is write direct service path mark by the present embodiment
In, so that current business node can identify quick determination and abstract service chain according to service path when carrying out message forwarding
Corresponding specific business chain improves the message forward efficiency of business catenary system.
The present invention also provides a kind of business chain message forwarding equipments.
Business chain message forwarding equipment of the present invention includes: memory, processor and is stored on the memory and can be
The business chain message retransmission process run on the processor, when the business chain message retransmission process is executed by the processor
Realize following steps:
The service message that upstream business node is sent is received, identifies the corresponding type of service of the service message;
It determines abstract service chain corresponding with the type of service, obtains the service path mark of the abstract service chain;
According to the preset business chain mapping table of the service path identifier lookup of the abstract service chain, obtain being abstracted with described
The corresponding specific business chain of business chain;
The service message is forwarded to by the business chain information for obtaining the specific business chain according to the business chain information
The next-hop service node of current business node.
Wherein, the business chain message retransmission process run on the processor, which is performed realized method, can refer to
The each embodiment of business chain message forwarding method of the present invention, details are not described herein again.
The present invention also provides a kind of computer readable storage mediums.
Business chain message retransmission process, the business chain message forwarding are stored on computer readable storage medium of the present invention
Following steps are realized when program is executed by processor:
The service message that upstream business node is sent is received, identifies the corresponding type of service of the service message;
It determines abstract service chain corresponding with the type of service, obtains the service path mark of the abstract service chain;
According to the preset business chain mapping table of the service path identifier lookup of the abstract service chain, obtain being abstracted with described
The corresponding specific business chain of business chain;
The service message is forwarded to by the business chain information for obtaining the specific business chain according to the business chain information
The next-hop service node of current business node.
Wherein, the business chain message retransmission process run on the processor, which is performed realized method, can refer to
The each embodiment of business chain message forwarding method of the present invention, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of business chain message forwarding method, which is characterized in that the business chain message forwarding method includes the following steps:
The service message that upstream business node is sent is received, identifies the corresponding type of service of the service message;
It determines abstract service chain corresponding with the type of service, obtains the service path mark of the abstract service chain;
According to the preset business chain mapping table of the service path identifier lookup of the abstract service chain, obtain and the abstract service
The corresponding specific business chain of chain;
The service message is forwarded to currently by the business chain information for obtaining the specific business chain according to the business chain information
The next-hop service node of service node.
2. business chain message forwarding method as described in claim 1, which is characterized in that the reception upstream business node is sent
Service message, before the step of identifying the service message corresponding type of service, further includes:
The service path mark of abstract service chain is set;
The abstract service chain is instantiated as several specific business chains, the service path mark of every specific business chain is set
Know, wherein the service path mark of the specific business chain is identified comprising the service path of the abstract service chain;
Setting result is saved into business chain mapping table.
3. business chain message forwarding method as claimed in claim 2, which is characterized in that the service path of the specific business chain
Mark also includes flag bit, and the flag bit is used to identify the generation method of the service path mark of the specific business chain.
4. business chain message forwarding method as claimed any one in claims 1 to 3, which is characterized in that described in the acquisition
The service message, is forwarded under current business node by the business chain information of specific business chain according to the business chain information
One includes: the step of jumping service node
When finding a plurality of specific business chain, the default weighted value of the specific business chain of every found is obtained;
The service message is forwarded to the next-hop service node of current business node according to the default weighted value.
5. business chain message forwarding method as claimed in claim 4, which is characterized in that described to be incited somebody to action according to the default weighted value
The service message is forwarded to the step of next-hop service node of current business node and includes:
The maximum specific business chain of the default weighted value is chosen as first object business chain;
The service message is forwarded to the next-hop service node of current business node according to the first object business chain.
6. business chain message forwarding method as claimed any one in claims 1 to 3, which is characterized in that described in the acquisition
The service message, is forwarded under current business node by the business chain information of specific business chain according to the business chain information
One includes: the step of jumping service node
When finding a plurality of specific business chain, the default instance number of the specific business chain of every found, the example are obtained
Number for indicating the instantiation ordinal number of specific business chain;
The service message is forwarded to the next-hop service node of current business node according to the instance number.
7. business chain message forwarding method as claimed in claim 6, which is characterized in that it is described will be described according to the instance number
Service message is forwarded to the step of next-hop service node of current business node and includes:
The priority of the specific business chain is determined according to the size of the instance number;
The specific business chain of highest priority is chosen as the second target service chain;
The service message is forwarded to the next-hop service node of current business node according to the second target service chain.
8. a kind of business chain apparatus for forwarding message, which is characterized in that the business chain apparatus for forwarding message includes:
Receiving module identifies the corresponding service class of the service message for receiving the service message of upstream business node transmission
Type;
Determining module obtains the business of the abstract service chain for determining abstract service chain corresponding with the type of service
ID of trace route path;
Searching module is obtained for the preset business chain mapping table of service path identifier lookup according to the abstract service chain
Specific business chain corresponding with the abstract service chain;
Forwarding module, for obtaining the business chain information of the specific business chain, according to the business chain information by the business
Message is forwarded to the next-hop service node of current business node.
9. a kind of business chain message forwarding equipment, which is characterized in that the business chain message forwarding equipment includes: memory, place
Reason device and the business chain message retransmission process that is stored on the memory and can run on the processor, the business chain
Message retransmission process realizes following steps when being executed by the processor:
The service message that upstream business node is sent is received, identifies the corresponding type of service of the service message;
It determines abstract service chain corresponding with the type of service, obtains the service path mark of the abstract service chain;
According to the preset business chain mapping table of the service path identifier lookup of the abstract service chain, obtain and the abstract service
The corresponding specific business chain of chain;
The service message is forwarded to currently by the business chain information for obtaining the specific business chain according to the business chain information
The next-hop service node of service node.
10. a kind of computer readable storage medium, which is characterized in that be stored with business chain on the computer readable storage medium
Message retransmission process, the business chain message retransmission process realize following steps when being executed by processor:
The service message that upstream business node is sent is received, identifies the corresponding type of service of the service message;
It determines abstract service chain corresponding with the type of service, obtains the service path mark of the abstract service chain;
According to the preset business chain mapping table of the service path identifier lookup of the abstract service chain, obtain and the abstract service
The corresponding specific business chain of chain;
The service message is forwarded to currently by the business chain information for obtaining the specific business chain according to the business chain information
The next-hop service node of service node.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710472256.6A CN109150720B (en) | 2017-06-19 | 2017-06-19 | Service chain message forwarding method, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710472256.6A CN109150720B (en) | 2017-06-19 | 2017-06-19 | Service chain message forwarding method, device, equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109150720A true CN109150720A (en) | 2019-01-04 |
CN109150720B CN109150720B (en) | 2022-04-12 |
Family
ID=64804638
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710472256.6A Active CN109150720B (en) | 2017-06-19 | 2017-06-19 | Service chain message forwarding method, device, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109150720B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110147378A (en) * | 2019-04-02 | 2019-08-20 | 平安科技(深圳)有限公司 | Verification of data method, apparatus, computer equipment and storage medium |
CN112449751A (en) * | 2019-06-28 | 2021-03-05 | 华为技术有限公司 | Data transmission method, switch and station |
WO2024045177A1 (en) * | 2022-09-02 | 2024-03-07 | 华为技术有限公司 | Data message transmission method, communication apparatus and communication system |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103096490A (en) * | 2011-11-01 | 2013-05-08 | 中国移动通信集团设计院有限公司 | Business access method and equipment |
CN103929492A (en) * | 2014-04-28 | 2014-07-16 | 华为技术有限公司 | Method, devices and system for load balancing of service chain |
CN104283806A (en) * | 2014-10-31 | 2015-01-14 | 杭州华三通信技术有限公司 | Service link processing method and device |
CN104618232A (en) * | 2015-01-28 | 2015-05-13 | 杭州华三通信技术有限公司 | Wide area network link selecting method and wide area network link selecting device |
CN104811326A (en) * | 2014-01-24 | 2015-07-29 | 中兴通讯股份有限公司 | Service chain management method, service chain management system, and devices |
US20150236948A1 (en) * | 2014-02-14 | 2015-08-20 | Futurewei Technologies, Inc. | Restoring service functions after changing a service chain instance path |
CN105453493A (en) * | 2014-07-23 | 2016-03-30 | 华为技术有限公司 | Service message forwarding method and apparatus |
CN105471693A (en) * | 2014-08-18 | 2016-04-06 | 华为技术有限公司 | Packet sending method and network node |
CN105553714A (en) * | 2015-12-14 | 2016-05-04 | 中国联合网络通信集团有限公司 | Service configuration method and system |
CN105577579A (en) * | 2014-10-17 | 2016-05-11 | 中兴通讯股份有限公司 | Protocol message processing method and system in SFC (Service Function Chaining) and service function nodes |
CN105704167A (en) * | 2014-11-24 | 2016-06-22 | 华为技术有限公司 | Service chain processing method, device and system |
CN105871733A (en) * | 2015-01-19 | 2016-08-17 | 中兴通讯股份有限公司 | Method, device and system for processing user data packet |
CN106034087A (en) * | 2015-03-20 | 2016-10-19 | 中兴通讯股份有限公司 | Service function chain load balancing method, device and system |
CN106130894A (en) * | 2016-06-03 | 2016-11-16 | 上海华为技术有限公司 | The creation method of a kind of business function chain and system |
US20160344565A1 (en) * | 2015-05-20 | 2016-11-24 | Cisco Technology, Inc. | System and method to facilitate the assignment of service functions for service chains in a network environment |
CN106559333A (en) * | 2015-09-29 | 2017-04-05 | 中兴通讯股份有限公司 | Message forwarding method, business chain agent apparatus and agent equipment |
CN106856619A (en) * | 2015-12-08 | 2017-06-16 | 中兴通讯股份有限公司 | Control cut-in method, system and gateway |
-
2017
- 2017-06-19 CN CN201710472256.6A patent/CN109150720B/en active Active
Patent Citations (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103096490A (en) * | 2011-11-01 | 2013-05-08 | 中国移动通信集团设计院有限公司 | Business access method and equipment |
CN104811326A (en) * | 2014-01-24 | 2015-07-29 | 中兴通讯股份有限公司 | Service chain management method, service chain management system, and devices |
US20150236948A1 (en) * | 2014-02-14 | 2015-08-20 | Futurewei Technologies, Inc. | Restoring service functions after changing a service chain instance path |
CN103929492A (en) * | 2014-04-28 | 2014-07-16 | 华为技术有限公司 | Method, devices and system for load balancing of service chain |
US20170048148A1 (en) * | 2014-04-28 | 2017-02-16 | Huawei Technologies Co., Ltd. | Method, apparatus, and system for load balancing of service chain |
US20170134275A1 (en) * | 2014-07-23 | 2017-05-11 | Huawei Technologies Co., Ltd. | Service Packet Forwarding Method and Apparatus |
CN105453493A (en) * | 2014-07-23 | 2016-03-30 | 华为技术有限公司 | Service message forwarding method and apparatus |
CN105471693A (en) * | 2014-08-18 | 2016-04-06 | 华为技术有限公司 | Packet sending method and network node |
CN105577579A (en) * | 2014-10-17 | 2016-05-11 | 中兴通讯股份有限公司 | Protocol message processing method and system in SFC (Service Function Chaining) and service function nodes |
CN104283806A (en) * | 2014-10-31 | 2015-01-14 | 杭州华三通信技术有限公司 | Service link processing method and device |
CN105704167A (en) * | 2014-11-24 | 2016-06-22 | 华为技术有限公司 | Service chain processing method, device and system |
CN105871733A (en) * | 2015-01-19 | 2016-08-17 | 中兴通讯股份有限公司 | Method, device and system for processing user data packet |
CN104618232A (en) * | 2015-01-28 | 2015-05-13 | 杭州华三通信技术有限公司 | Wide area network link selecting method and wide area network link selecting device |
CN106034087A (en) * | 2015-03-20 | 2016-10-19 | 中兴通讯股份有限公司 | Service function chain load balancing method, device and system |
US20160344565A1 (en) * | 2015-05-20 | 2016-11-24 | Cisco Technology, Inc. | System and method to facilitate the assignment of service functions for service chains in a network environment |
CN106559333A (en) * | 2015-09-29 | 2017-04-05 | 中兴通讯股份有限公司 | Message forwarding method, business chain agent apparatus and agent equipment |
CN106856619A (en) * | 2015-12-08 | 2017-06-16 | 中兴通讯股份有限公司 | Control cut-in method, system and gateway |
CN105553714A (en) * | 2015-12-14 | 2016-05-04 | 中国联合网络通信集团有限公司 | Service configuration method and system |
CN106130894A (en) * | 2016-06-03 | 2016-11-16 | 上海华为技术有限公司 | The creation method of a kind of business function chain and system |
Non-Patent Citations (2)
Title |
---|
SAMEER KULKARNI: "Neo-NSH: Towards Scalable and Efficient Dynamic Service Function Chaining of Elastic Network Functions", 《IEEE XPLORE》 * |
许力: "云环境下虚拟网络动态演化管理技术研究", 《CNKI中国硕士论文全文数据库》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110147378A (en) * | 2019-04-02 | 2019-08-20 | 平安科技(深圳)有限公司 | Verification of data method, apparatus, computer equipment and storage medium |
CN110147378B (en) * | 2019-04-02 | 2024-05-31 | 平安科技(深圳)有限公司 | Data checking method, device, computer equipment and storage medium |
CN112449751A (en) * | 2019-06-28 | 2021-03-05 | 华为技术有限公司 | Data transmission method, switch and station |
CN112449751B (en) * | 2019-06-28 | 2022-08-26 | 华为云计算技术有限公司 | Data transmission method, switch and station |
US11870701B2 (en) | 2019-06-28 | 2024-01-09 | Huawei Technologies Co., Ltd. | Data transmission method, switch, and site |
WO2024045177A1 (en) * | 2022-09-02 | 2024-03-07 | 华为技术有限公司 | Data message transmission method, communication apparatus and communication system |
Also Published As
Publication number | Publication date |
---|---|
CN109150720B (en) | 2022-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111818136B (en) | Data processing method, device, electronic equipment and computer readable medium | |
CN110086636A (en) | A kind of message distributing method based on mqtt, server and storage medium | |
EP3836486A1 (en) | Service link selection control method and device | |
CN103929492A (en) | Method, devices and system for load balancing of service chain | |
CN109995877A (en) | Information-pushing method and device | |
CN109150720A (en) | Business chain message forwarding method, device, equipment and computer readable storage medium | |
CN107094280A (en) | A kind of customer group establishment, resource allocation methods and equipment | |
CN110446228B (en) | Data transmission method, device, terminal equipment and storage medium | |
CN110336865A (en) | Service calling method, device, storage medium and electronic equipment | |
CN105208065A (en) | File transmitting method and device | |
CN111858083A (en) | Remote service calling method and device, electronic equipment and storage medium | |
CN114338650A (en) | File transmission method and device, electronic equipment and readable storage medium | |
CN110647634B (en) | Method and device for searching media resources, storage medium and electronic device | |
CN111800447A (en) | Server scheduling method and device for cloud game and readable storage medium | |
CN112346751A (en) | Application program installation method and device, electronic equipment and storage medium | |
CN113489593A (en) | JSON message checking method and JSON message checking device | |
CN106230999A (en) | A kind of contact person information processing method, terminal and server | |
CN117633102A (en) | Block chain data integration method, device, computer equipment and storage medium | |
CN103957306A (en) | Method and device for sharing information between communication terminals | |
CN113329096B (en) | Message transmission method and device, electronic equipment and storage medium | |
CN112650710B (en) | Data migration sending method and device, storage medium and electronic device | |
CN105049452B (en) | Switching method, device and the intelligent terminal of resource downloading mode | |
CN103152216B (en) | The method of testing of system and device in a kind of the Internet | |
CN115629951B (en) | Task full-link tracking method, first node, link system and medium | |
CN114302351B (en) | Short message service processing method and device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |