CN114221898B - Message processing method and network system - Google Patents
Message processing method and network system Download PDFInfo
- Publication number
- CN114221898B CN114221898B CN202111638902.4A CN202111638902A CN114221898B CN 114221898 B CN114221898 B CN 114221898B CN 202111638902 A CN202111638902 A CN 202111638902A CN 114221898 B CN114221898 B CN 114221898B
- Authority
- CN
- China
- Prior art keywords
- message
- node
- source route
- source
- functional
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 19
- 238000000034 method Methods 0.000 claims abstract description 33
- 238000004806 packaging method and process Methods 0.000 claims abstract description 9
- 238000012545 processing Methods 0.000 claims description 22
- 238000005516 engineering process Methods 0.000 abstract description 8
- 238000011161 development Methods 0.000 abstract description 7
- 230000007774 longterm Effects 0.000 abstract description 7
- 238000012423 maintenance Methods 0.000 abstract description 7
- 230000006978 adaptation Effects 0.000 abstract description 4
- 230000005540 biological transmission Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 230000001010 compromised effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
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/34—Source routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/0816—Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
-
- 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/02—Topology update or discovery
-
- 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/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/02—Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
Abstract
The invention provides a message processing method, which is used for a network system comprising a plurality of functional nodes capable of source routing, wherein the functional nodes at least comprise a starting node and a terminating node; the method comprises the following steps: s1: the initial node judges source route information of the message to form a first source route data packet, and sends the first source route data packet to a first functional node; s2: the first functional node receives and analyzes the first source route data packet to form a second source route data packet and sends the second source route data packet to the next functional node; s3: and sequentially packaging the message and the source route information of the message to obtain a source route data packet, and transmitting the source route data packet to a termination node through a plurality of functional nodes. Therefore, the adaptation degree of the functional nodes in the network system is increased, the functional nodes can be accessed to the network system only by supporting the source routing technology, the specific network environment is not required to be perceived, and the development cost and the difficulty of long-term maintenance are greatly reduced. The invention also provides a network system.
Description
Technical Field
The present invention belongs to the technical field of network communication, and in particular, relates to a message processing method and a network system.
Background
Currently, there are two general approaches to adding new functional nodes to existing network systems.
The first method is to take the new functional node as an independent functional node to join the existing network system, and in the process that the new functional node joins the existing network system, the forwarding rules of all devices communicating with the new functional node need to be modified, so that the workload is huge. And the new function node needs to add complex network functions and is strongly bound with the network, so that the network is required to be adapted for upgrading, and once the technology stack of the new function node is iteratively updated, the network is required to be re-adapted, so that the universality is extremely poor.
The second method is to bind the new function with the demand node equipment, directly merge the functions of the demand node, such as speed limiting, firewall and the like, and need to be additionally realized in products of NAT gateway, load balancing, VPN gateway and the like. Thus, when the demand node is updated, the attached functions need to be redeveloped on the new technology stack. In addition, different demand nodes may have multiple sets of technical schemes for new functions due to different implementation modes, so that development cost of the new functions and difficulty in long-term maintenance are increased.
Disclosure of Invention
The invention aims to solve the problems of huge workload and poor universality in the prior art when a new functional node is used as an independent node to join a network; and when the new function and the demand node equipment are fused and bound and the demand node is updated, the auxiliary function needs to be redeveloped on the new technology stack, and the different demand nodes have multiple sets of technical schemes due to different implementation modes, so that the problems of high development cost and high long-term maintenance difficulty are caused.
In order to solve the above problems, an embodiment of the present invention discloses a message processing method, which is used in a network system including a plurality of functional nodes capable of source routing, wherein the plurality of functional nodes at least includes a start node and a termination node; the processing method comprises the following steps:
s1: the method comprises the steps that an initial node judges source route information of a message, packages the message and the source route information of the message to form a first source route data packet, and sends the first source route data packet to a first functional node;
s2: the first functional node receives and analyzes the first source route data packet, obtains a message and source route information of the message, and caches the source route information of the message; and, in addition, the processing unit,
processing the message based on the function of the first functional node, packaging the processed message and the source route information of the cached message to form a second source route data packet, and determining the next functional node sent by the second source route data packet according to the source route information of the message and sending the next functional node;
s3: and sequentially packaging the message and the source route information of the message to obtain a source route data packet, and transmitting the source route data packet to a termination node through a plurality of functional nodes.
By adopting the technical scheme, the network system consists of a plurality of functional nodes capable of performing source routing, before the message is sent, the sending path of the message can be obtained according to the source routing information of the message only by determining the source routing information of the message, and the message is sent from the starting node to the ending node of the network system along the determined message sending path through the information of the plurality of functional nodes in the message sending process. In the process, when the functional node in the network system changes, the source route information of the message is judged again only according to the content of the message; it is not necessary to modify the forwarding rules of all devices communicating with the changed functional node to re-determine the transmission path of the message. Therefore, the adaptation degree of the functional nodes in the network system is increased, the functional nodes can be accessed to the network system only by supporting the source routing technology, and the specific network environment is not required to be perceived. The workload of re-determining the message sending path when the functional nodes in the network are changed is greatly reduced, the functional nodes in the network system can be flexibly combined, the functional requirements of different network systems are met, and the universality of the network system is improved.
Furthermore, the new function in the network system does not need to be bound with the demand node equipment, and only needs to be used as a function node according to the information of the new function so as to enable the new function to perform source routing. Therefore, once the demand node equipment is updated, auxiliary functions are not required to be redeveloped and are used for adapting to the function nodes, a plurality of sets of technical schemes are not required to be prepared for new function nodes, the new function nodes are used for binding the demand node equipment with different realization modes, and the function nodes are decoupled, so that development cost and difficulty of long-term maintenance are greatly reduced.
According to another embodiment of the present invention, in the method for processing a message disclosed in the embodiment of the present invention, in step S1, the method further includes:
if the new function node is determined to be added into the network system, acquiring information of the new function node, and updating source route information of the message according to the information of the new function node;
if the function node in the network system is deleted, the information of the deleted function node is removed, and the source route information of the message is updated.
By adopting the technical scheme, whether a new functional node is added in the network system or an original functional node is removed in the network system, all the functional nodes are required to perform source routing, so that before the message is sent, the source routing information of the message is updated according to the content of the message and the information of the functional nodes, and the message is only required to be sent according to the sending path of the message in the updated source routing information. Therefore, the forwarding path of the message is convenient to be redetermined after the functional node is newly added or deleted in the network system.
According to another embodiment of the present invention, in step S1, source routing information of a message is encapsulated in an IP header of the message.
By adopting the technical scheme, a plurality of functional nodes can conveniently acquire the sending paths of the messages from the source routing information.
According to another embodiment of the present invention, the method for processing a message disclosed in the embodiment of the present invention further includes, after step S3:
s4: the termination node removes the IP header of the message and sends the message obtained after processing to the target server.
According to another embodiment of the present invention, the method for processing a message disclosed in the embodiment of the present invention, after step S4, sends a reply message from a terminating node to an originating node, and includes the steps of:
s5: the termination node judges the source route information of the reply message, encapsulates the reply message and the source route information of the reply message to form a reply source route data packet, and sends the reply source route data packet from the termination node to the starting node based on the source route information of the reply message.
By adopting the technical scheme, the termination node is used as the starting node for sending the reply message, the source route information of the reply message is judged, the sending path of the reply message is determined according to the content of the reply message, and only the reply message can be appointed to reach the starting node through the necessary functional nodes. Therefore, the reply message does not need to be repeated according to the sending path of the received message, and the functional nodes in the network system can be flexibly combined according to actual needs.
According to another embodiment of the present invention, in step S5, source routing information of a reply message is encapsulated in an IP header of the reply message.
By adopting the technical scheme, a plurality of reply function nodes can conveniently acquire the sending path of the reply message from the source route information of the reply message.
According to another embodiment of the present invention, the present invention further discloses a network system for executing the above packet processing method, where the network system includes a plurality of functional nodes capable of source routing, and the plurality of functional nodes includes at least a start node and a stop node;
the initial node is used for judging the source route information of the message, and encapsulating the message and the source route information of the message to form a source route data packet;
the method comprises the steps that a plurality of functional nodes analyze received source route data packets to obtain messages and source route information of the messages, the messages are processed based on functions of the functional nodes, the processed messages and the source route information of the messages are packaged, and the messages and the source route data packets obtained by packaging the source route information of the messages are sequentially sent to a terminal node according to the source route information of the messages.
According to another embodiment of the present invention, a network system disclosed in the present invention includes a termination node, a first reply function node, a second reply function node, and a first reply function node, wherein the termination node is configured to determine source routing information of a reply message, encapsulate the reply message and the source routing information of the reply message to form a reply source routing data packet, and send the reply source routing data packet to the first reply function node through which the reply message passes.
The beneficial effects of the invention are as follows:
the invention provides a message processing method, which is applied to a network system comprising a plurality of functional nodes capable of performing source routing, wherein before a message is sent, the message sending path can be obtained only by determining the source routing information of the message according to the source routing information of the message, and the message is sent from a starting node to a final node of the network system along the determined message sending path. In the process, when the functional node in the network system changes, whether the new functional node is added or the functional node in the network system is deleted, the source route information of the message is only needed to be judged again according to the content of the message. The forwarding rules of all devices communicating with the changed functional node do not need to be modified, so that the sending path of the message is redetermined. Therefore, the adaptation degree of the functional nodes in the network system is increased, the functional nodes can be accessed to the network system only by supporting the source routing technology, and the specific network environment is not required to be perceived. The workload of re-determining the message sending path when the functional nodes in the network are changed is greatly reduced, the functional nodes in the network system can be flexibly combined, the functional requirements of different network systems are met, and the universality of the network system is improved.
Furthermore, the new function in the network system does not need to be bound with the demand node equipment, and only needs to be used as a function node according to the information of the new function so as to enable the new function to perform source routing. Therefore, once the demand node equipment is updated, auxiliary functions are not required to be redeveloped and are used for adapting to the function nodes, a plurality of sets of technical schemes are not required to be prepared for new function nodes, the new function nodes are used for binding the demand node equipment with different realization modes, and the function nodes are decoupled, so that development cost and difficulty of long-term maintenance are greatly reduced.
Drawings
Fig. 1 is a schematic structural diagram of a network system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a message processing method according to an embodiment of the invention
FIG. 3 is a schematic diagram of a speed limit node according to an embodiment of the present invention;
FIG. 4 is a flow chart of an internal information processing process of a speed limit node provided by an embodiment of the invention;
fig. 5 is a schematic structural diagram of a firewall node according to an embodiment of the present invention.
Reference numerals illustrate:
100: a start node; 200: terminating the node; 300: a speed limiting node; 400: a firewall node; 500: encrypting and decrypting nodes; 600: node one; 700: and a second node.
Detailed Description
Further advantages and effects of the present invention will become apparent to those skilled in the art from the disclosure of the present specification, by describing the embodiments of the present invention with specific examples. While the description of the invention will be described in connection with the preferred embodiments, it is not intended to limit the inventive features to the implementation. Rather, the purpose of the invention described in connection with the embodiments is to cover other alternatives or modifications, which may be extended by the claims based on the invention. The following description contains many specific details for the purpose of providing a thorough understanding of the present invention. The invention may be practiced without these specific details. Furthermore, some specific details are omitted from the description in order to avoid obscuring the invention. It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other.
It should be noted that in this specification, like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
In the description of the present embodiment, it should be noted that the azimuth or positional relationship indicated by the terms "upper", "lower", "inner", "bottom", etc. are based on the azimuth or positional relationship shown in the drawings, or the azimuth or positional relationship in which the inventive product is conventionally put in use, are merely for convenience of describing the present invention and simplifying the description, and are not indicative or implying that the apparatus or element to be referred to must have a specific azimuth, be configured and operated in a specific azimuth, and therefore should not be construed as limiting the present invention.
The terms "first," "second," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
In the description of the present embodiment, it should also be noted that, unless explicitly specified and limited otherwise, the terms "disposed," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present embodiment can be understood in a specific case by those of ordinary skill in the art.
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
The method aims at solving the problems that in the prior art, when a new functional node is used as an independent node to join a network, the workload is huge and the universality is poor; and if the new function and the demand node equipment are fused and bound, when the demand node is updated, the auxiliary function needs to be redeveloped on the new technology stack, and the different demand nodes have multiple sets of technical schemes due to different implementation modes, so that the problems of high development cost and high long-term maintenance difficulty are caused. The invention provides a message processing method and a network system.
Next, referring to fig. 1 to fig. 5, a detailed description is given of the message processing method and the network system provided by the present invention.
As shown in fig. 1, the network system of the present invention includes a plurality of functional nodes, where the plurality of functional nodes includes at least an originating node 100 and a terminating node 200, and the plurality of functional nodes further includes a speed limiting node 300, a firewall node 400, an encryption/decryption node 500, a node one 600, a node two 700, and so on, and each functional node is capable of performing source routing, that is, forwarding a message based on a specified message sending path.
It should be noted that, the plurality of functional nodes in the network system provided by the present invention may communicate with each other.
Fig. 2 is a flowchart of a message processing method provided by the present invention, where the processing method includes:
s1: the initial node judges the source route information of the message, encapsulates the message and the source route information of the message to form a first source route data packet, and sends the first source route data packet to the first functional node.
Specifically, the start node and the end node of the network system are generally source hosts, and the source hosts can judge source route information of the message according to the content of the message, and encapsulate the message and the source route information to form a first source route data packet. The source route information of the message comprises information of a plurality of functional nodes through which the message passes, information of a termination node reached by the message and a sending path of the message.
Further, the information of the plurality of functional nodes comprises address information of the plurality of functional nodes, and in the process of sending the message, the message is sent in sequence according to the address information of the plurality of functional nodes.
In addition, in a specific embodiment of the present invention, functional nodes in the network system may be flexibly combined according to the content of the message.
For example, as shown in fig. 1, the message to be sent by the source host is a message 1, and according to the content of the message 1, the message 1 only needs to pass through the speed limiting node and the firewall node in the process from the start node to the end node, and the message 1 does not need an encryption and decryption function. Therefore, according to the content of the message 1, the source host determines that the functional node through which the message 1 passes is the starting node, the speed limiting node, the firewall node and the termination node in the source routing information of the message 1, and does not allow the message 1 to pass through the encryption and decryption node, the node I and the node II which do not need to pass through. At this time, in the sending process, the message 1 is sent along the path of the starting node, the speed limiting node, the firewall node and the terminating node shown by the dotted line in fig. 1.
Or the message to be sent by the source host is message 2, and in the sending process of message 2, not only the limit of speed and firewall function is limited, but also encryption and decryption are carried out. Therefore, the source host determines the nodes passing through by the message 2 as the starting node, the speed limiting node, the firewall node and the encryption and decryption node in the source route information of the message 2 according to the content of the message 2, and finally reaches the ending node. In the process of sending the message 2, the message is sent along the sending path of the starting node, the speed limiting node, the firewall node, the encryption and decryption node and the termination node shown by the solid line in fig. 1. Of course, the source host may determine, according to the specific content and the transmission requirement of the message, that the transmission path of the message may also pass through the node one and/or the node two, which is not specifically limited in the embodiment of the present invention.
After judging the source route information of the message, the source host encapsulates the message and the source route information of the message to form a source route data packet.
Specifically, according to one embodiment of the present invention, in step S1, the source host encapsulates the source routing information of the message in the IP header of the message, so that the plurality of functional nodes can obtain the transmission paths of the message from the source routing information.
And then, the source host judges a first functional node sent by the first source routing data packet according to the source routing information of the message. For example, the message to be sent by the source host is message 1. The source host analyzes the source route information of the message 1 to obtain a starting node, namely a first functional node behind the source host is a speed limiting node, then the address of the speed limiting node is found according to the information of the speed limiting node, and the source host sends a source route data packet to the speed limiting node according to the address of the speed limiting node.
S2: the first functional node receives and analyzes the first source route data packet, obtains a message and source route information of the message, and caches the source route information of the message; and, in addition, the processing unit,
and processing the message based on the function of the first functional node, packaging the processed message and the cached source routing information to form a second source routing data packet, and determining the next functional node sent by the second source routing data packet according to the source routing information of the message and sending the next functional node.
Specifically, as shown in fig. 3, in one embodiment of the present invention, the first functional node is a speed limit node. The speed limiting node comprises a speed limiting module and a source routing module. After receiving the first source route data packet, the speed limiting node needs to perform speed limiting processing on the message in the first source route data packet, and then sends the message to the second functional node.
As shown in fig. 4, the process of data processing is performed inside the functional node after the functional node receives the source route data packet of the message. Specifically, the functional node is a speed limiting node, after the speed limiting node receives a first source route data packet sent by the initial node, the first source route data packet is firstly analyzed to obtain source route information of an original message and a message, the source route information of the message is cached in a source route module of the speed limiting node, and the speed limiting module carries out speed limiting function processing on the original message to obtain the processed message.
And finally, extracting the source route information of the cached message from the source route module by the speed limiting node, and packaging the source route information of the message and the message subjected to speed limiting processing to form a second source route data packet. And acquiring the next functional node according to the message sending path recorded in the source routing information of the message, and sending the second source routing data packet to the next functional node.
S3: and sequentially sending the message and the source route information of the message to the termination node through a plurality of functional nodes.
It should be noted that, in the process of sending a message, each time the message is sent to a functional node, the functional node will parse the received data and perform functional processing on the original message, and then send the message to the next functional node together with the source route information of the message,
for example, as shown in fig. 5, in an embodiment of the present invention, a node after the first functional node in the packet sending path is a firewall node, where the firewall node includes a firewall module and a source routing module. After receiving the second source route data packet sent by the first functional node, the firewall node analyzes the second source route data packet to obtain a message processed by the first functional node and source route information of the message. And buffering the source route information of the message in a source route module, and then performing firewall processing on the message processed by the first functional node to obtain the message processed again. And the firewall node encapsulates the reprocessed message and the source route information of the message to form a third source route data packet, and the third source route data packet is continuously sent to the next functional node and finally sent to the termination node.
After receiving the source route data packet sent by the last functional node, the termination node needs to process the source route data packet to obtain an original message, and then sends the original message to the destination server.
Specifically, according to one embodiment of the present invention, after step S3, step S4 is included: the termination node removes the IP header of the message and sends the message obtained after processing to the target server.
By adopting the technical scheme, the network system comprises a plurality of functional nodes capable of performing source routing, before the message is sent, the sending path of the message can be obtained only by determining the source routing information of the message according to the source routing information of the message, and the message is sent from the starting node to the ending node of the network system along the determined message sending path through the information of the plurality of functional nodes in the message sending process. In the process, when the functional node in the network system changes, the source route information of the message is judged again only according to the content of the message; the forwarding rules of all devices communicating with the changed functional node do not need to be modified, so that the sending path of the message is redetermined. Therefore, the adaptation degree of the functional nodes in the network system is increased, the functional nodes can be accessed to the network system only by supporting the source routing technology, and the specific network environment is not required to be perceived. The workload of re-determining the message sending path when the functional nodes in the network are changed is greatly reduced, the functional nodes in the network system can be flexibly combined, the functional requirements of different network systems are met, and the universality of the network system is improved.
Furthermore, the new function in the network system does not need to be bound with the demand node equipment, and only needs to be used as a function node according to the information of the new function so as to enable the new function to perform source routing. Therefore, once the demand node equipment is updated, auxiliary functions are not required to be redeveloped and are used for adapting to the function nodes, a plurality of sets of technical schemes are not required to be prepared for new function nodes, the new function nodes are used for binding the demand node equipment with different realization modes, and the function nodes are decoupled, so that development cost and difficulty of long-term maintenance are greatly reduced.
According to another embodiment of the present invention, in the method for processing a message disclosed in the embodiment of the present invention, in step S1, the method further includes:
if the new function node is determined to be added into the network system, acquiring information of the new function node, and updating source route information of the message according to the information of the new function node;
if the function node in the network system is deleted, the information of the deleted function node is removed, and the source route information of the message is updated.
Specifically, each functional node in the original network system can perform source routing, and if a new functional node accesses the original network system, the new functional node is required to be capable of performing source routing. And the new functional node is also added into the network system as an independent functional node, and only the information of the new functional node is required to be sent to the source host, and the source host inputs the information of the new functional node. When the source route information of the message is judged by the subsequent message sending, the new functional node is added to a specific position of the message sending path, namely between the two functional nodes according to the information of the new functional node, and the sending path of the message is updated.
Further, if the function node in the network system is deleted, the information of the deleted function node is sent to the source host, the source host deletes the information of the removed function node from the stored plurality of function nodes, and when the message is sent, the sending path of the message is updated from the remaining plurality of function nodes.
It should be noted that, the message sending path may be manually specified by specific software, or may be determined by the source host according to the set message path determining logic and according to the content of the message, which is not specifically limited by the embodiment of the present invention.
By adopting the technical scheme, whether a new functional node is added in the network system or an original functional node is removed in the network system, all the functional nodes are required to perform source routing, so that before the message is sent, the source routing information of the message is updated according to the content of the message and the information of the functional nodes, and the message is only required to be sent according to the sending path of the message in the updated source routing information. Therefore, the forwarding path of the message is convenient to be redetermined after the functional node is newly added or deleted in the network system.
According to another embodiment of the present invention, the method for processing a message disclosed in the embodiment of the present invention, after step S4, sends a reply message from a terminating node to an originating node, and includes the steps of:
s5: the termination node judges the source route information of the reply message, encapsulates the reply message and the source route information of the reply message to form a reply source route data packet, and sends the reply source route data packet from the termination node to the starting node based on the source route information of the reply message.
It should be noted that, the terminating node may not send a reply message to the originating node, or may send a reply message to the originating node, and if the terminating node sends a reply message to the originating node, the reply message may be a message for confirming receipt, or may be some reply messages made according to the message sent by the originating node. Because each functional node in the network system can perform source routing, the termination node can determine the sending path of the reply message according to the content of the reply message to the starting node. The transmission path of the reply message, which is formed by a plurality of reply function nodes, through which the reply message passes, may be the same as or different from the transmission path of the message from the starting node to the terminating node.
For example, if the message received by the termination node is message 2 and the content of the reply message is a message for confirming receipt, the message has no confidentiality, and the functional node with encryption and decryption functions is not required to pass through in the process of replying the message from the termination node to the initial node. Therefore, when judging the source route information of the reply message, the termination node determines that the reply message does not pass through the encryption and decryption function point in the sending path of the message, and only passes through the firewall and the speed limit from the termination node to the starting node.
Or, the reply message is some reply information made by the termination node according to the message sent by the starting node, and in the sending process of the reply information, in order not to be compromised, encryption processing is needed. Therefore, when judging the source route information of the reply message, the termination node determines that the reply message is sent out from the termination node in the sending path of the message, then the reply message needs to pass through the second node and the encryption and decryption function node, reaches the firewall and the speed limiting function node, and finally reaches the starting node.
According to another embodiment of the present invention, in step S5, source routing information of a reply message is encapsulated in an IP header of the reply message.
By adopting the technical scheme, a plurality of reply function nodes can conveniently acquire the sending path of the reply message from the source route information of the reply message.
While the invention has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that the foregoing is a further detailed description of the invention with reference to specific embodiments, and it is not intended to limit the practice of the invention to those descriptions. Various changes in form and detail may be made therein by those skilled in the art, including a few simple inferences or alternatives, without departing from the spirit and scope of the present invention.
Claims (7)
1. A message processing method, which is used for a network system comprising a plurality of functional nodes capable of source routing, wherein the functional nodes at least comprise a starting node and a terminating node; the processing method is characterized by comprising the following steps:
s1: the initial node judges source route information of a message, encapsulates the message and the source route information of the message to form a first source route data packet, and sends the first source route data packet to a first functional node;
s2: the first functional node receives and analyzes the first source route data packet, obtains the message and source route information of the message, and caches the source route information of the message; and, in addition, the processing unit,
processing the message based on the function of the first functional node, packaging the processed message and the cached source route information of the message to form a second source route data packet, and determining the next functional node sent by the second source route data packet according to the source route information of the message and sending the next functional node;
s3: sequentially encapsulating the message and the source route information of the message to obtain a source route data packet, and transmitting the source route data packet to the termination node through a plurality of functional nodes;
if the new function node is determined to be added into the network system, acquiring information of the new function node, and updating source route information of the message according to the information of the new function node;
and if the functional node in the network system is deleted, removing the information of the deleted functional node and updating the source route information of the message.
2. The message processing method according to claim 1, wherein in step S1, source routing information of the message is encapsulated in an IP header of the message.
3. The message processing method according to claim 2, further comprising, after step S3, the steps of:
s4: and the termination node removes the IP header of the message and sends the message obtained after processing to a target server.
4. A method of processing a message as claimed in claim 3, wherein after step S4, a reply message is sent from the terminating node to the originating node, comprising the steps of:
s5: the termination node judges source route information of the reply message, encapsulates the reply message and the source route information of the reply message to form a reply source route data packet, and sends the reply source route data packet from the termination node to the starting node based on the source route information of the reply message.
5. The message processing method as claimed in claim 4, wherein in step S5, source routing information of the reply message is encapsulated in an IP header of the reply message.
6. A network system for performing the message processing method according to any of claims 1-5, the network system comprising a plurality of functional nodes capable of source routing, the plurality of functional nodes comprising at least a start node and a stop node; the method is characterized in that:
the initial node is used for judging source route information of a message, and encapsulating the message and the source route information of the message to form a source route data packet;
the plurality of functional nodes analyze the received source routing data packet to obtain a message and source routing information of the message, process the message based on the functions of the functional nodes, package the processed message and the source routing information of the message, and sequentially send the message and the source routing data packet obtained by packaging the source routing information of the message to the termination node according to the source routing information of the message.
7. The network system of claim 6, wherein:
the termination node is used for judging source route information of a reply message, packaging the reply message and the source route information of the reply message to form a reply source route data packet, and sending the reply source route data packet to a first reply function node through which the reply message passes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111638902.4A CN114221898B (en) | 2021-12-29 | 2021-12-29 | Message processing method and network system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111638902.4A CN114221898B (en) | 2021-12-29 | 2021-12-29 | Message processing method and network system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114221898A CN114221898A (en) | 2022-03-22 |
CN114221898B true CN114221898B (en) | 2023-11-10 |
Family
ID=80706845
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111638902.4A Active CN114221898B (en) | 2021-12-29 | 2021-12-29 | Message processing method and network system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114221898B (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104243302A (en) * | 2013-06-20 | 2014-12-24 | 华为技术有限公司 | Service routing message processing method and device and network system |
WO2015180560A1 (en) * | 2014-05-30 | 2015-12-03 | 华为技术有限公司 | Service router packet processing method and service node |
CN106105115A (en) * | 2014-03-13 | 2016-11-09 | 思科技术公司 | The service chaining originated by service node in network environment |
WO2016197344A1 (en) * | 2015-06-10 | 2016-12-15 | 华为技术有限公司 | Method, device and system for realizing service link |
CN107493235A (en) * | 2016-06-13 | 2017-12-19 | 中兴通讯股份有限公司 | A kind of method and apparatus of fast-forwarding message |
CN108156077A (en) * | 2016-12-02 | 2018-06-12 | 中兴通讯股份有限公司 | A kind of Segment routing retransmission method and device based on IPv6 data planes |
CN109495320A (en) * | 2018-12-24 | 2019-03-19 | 新华三技术有限公司 | A kind of transmission method and device of data message |
CN111669422A (en) * | 2019-03-08 | 2020-09-15 | 华为技术有限公司 | Message transmission method and device |
CN112422426A (en) * | 2020-10-28 | 2021-02-26 | 中盈优创资讯科技有限公司 | Service processing method and device based on SR |
CN112953831A (en) * | 2021-01-22 | 2021-06-11 | 新华三大数据技术有限公司 | Message forwarding method and device |
CN113207192A (en) * | 2021-03-29 | 2021-08-03 | 新华三信息安全技术有限公司 | Message forwarding method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7860100B2 (en) * | 2008-10-01 | 2010-12-28 | Cisco Technology, Inc. | Service path selection in a service network |
US9634936B2 (en) * | 2014-06-30 | 2017-04-25 | Juniper Networks, Inc. | Service chaining across multiple networks |
US9736063B2 (en) * | 2015-02-17 | 2017-08-15 | Huawei Technologies Co., Ltd. | Service chaining using source routing |
US10038766B2 (en) * | 2016-05-06 | 2018-07-31 | Cisco Technology, Inc. | Partial reassembly and fragmentation for decapsulation |
-
2021
- 2021-12-29 CN CN202111638902.4A patent/CN114221898B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104243302A (en) * | 2013-06-20 | 2014-12-24 | 华为技术有限公司 | Service routing message processing method and device and network system |
CN106105115A (en) * | 2014-03-13 | 2016-11-09 | 思科技术公司 | The service chaining originated by service node in network environment |
WO2015180560A1 (en) * | 2014-05-30 | 2015-12-03 | 华为技术有限公司 | Service router packet processing method and service node |
WO2016197344A1 (en) * | 2015-06-10 | 2016-12-15 | 华为技术有限公司 | Method, device and system for realizing service link |
CN107493235A (en) * | 2016-06-13 | 2017-12-19 | 中兴通讯股份有限公司 | A kind of method and apparatus of fast-forwarding message |
CN108156077A (en) * | 2016-12-02 | 2018-06-12 | 中兴通讯股份有限公司 | A kind of Segment routing retransmission method and device based on IPv6 data planes |
CN109495320A (en) * | 2018-12-24 | 2019-03-19 | 新华三技术有限公司 | A kind of transmission method and device of data message |
CN111669422A (en) * | 2019-03-08 | 2020-09-15 | 华为技术有限公司 | Message transmission method and device |
CN112422426A (en) * | 2020-10-28 | 2021-02-26 | 中盈优创资讯科技有限公司 | Service processing method and device based on SR |
CN112953831A (en) * | 2021-01-22 | 2021-06-11 | 新华三大数据技术有限公司 | Message forwarding method and device |
CN113207192A (en) * | 2021-03-29 | 2021-08-03 | 新华三信息安全技术有限公司 | Message forwarding method and device |
Non-Patent Citations (3)
Title |
---|
基于SDN服务链的云平台数据中心安全技术探究;徐俭;;电视工程(第04期);全文 * |
基于控制信息集约的SDN流表更新策略;周创明,于明秋;空军工程大学学报(自然科学版);第20卷(第4期);全文 * |
蒋元兵 ; 瞿辉 ; 夏洪君 ; 雷文虎 ; 康宗绪 ; 颜浩洋 ; .基于SR的IPv6过渡技术设计与实现.通信技术.2020,(第05期),全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN114221898A (en) | 2022-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9992107B2 (en) | Processing data packets using a policy based network path | |
US9414136B2 (en) | Methods and apparatus to route fibre channel frames using reduced forwarding state on an FCoE-to-FC gateway | |
CN112954001B (en) | Method and device for HTTP-to-HTTPS bidirectional transparent proxy | |
US20040233904A1 (en) | Universal plug-and-play mirroring device, system and method | |
CN100372347C (en) | 4 over 6 tunnel packing and depacking method for extending boundary gateway protocol | |
CN110380959B (en) | Message forwarding method and device | |
CN103023898A (en) | Method and device for accessing intranet resource of virtual private network (VPN) server | |
CN101645851B (en) | Recombination method for IP fragment messages and device thereof | |
CN112671628A (en) | Business service providing method and system | |
CN109412927B (en) | Multi-VPN data transmission method and device and network equipment | |
CN105939297A (en) | TCP message reassembling method and TCP message reassembling device | |
CN112671938A (en) | Business service providing method and system and remote acceleration gateway | |
CN112087381B (en) | Method and device for realizing service function processing | |
CN107733765B (en) | Mapping method, system and related equipment | |
CN109246016B (en) | Cross-VXLAN message processing method and device | |
CN112272134B (en) | IPSec tunnel establishment method and device, branch equipment and center-end equipment | |
CN113364660A (en) | Data packet processing method and device in LVS load balancing | |
CN114221898B (en) | Message processing method and network system | |
CN107979619B (en) | TWAMP session negotiation method, client and server | |
CN110391984B (en) | Message forwarding method and device | |
CN102655476B (en) | Internet protocol flow transmitting method and device | |
WO2019041332A1 (en) | Method and system for optimizing transmission of acceleration network | |
CN104639439B (en) | The processing method and equipment of a kind of service message | |
CN112242943B (en) | IPSec tunnel establishment method and device, branch equipment and center-end equipment | |
CN112910791B (en) | Diversion system and method thereof |
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 |