CN114285794A - Message forwarding control method, message transmission network, electronic device and storage medium - Google Patents

Message forwarding control method, message transmission network, electronic device and storage medium Download PDF

Info

Publication number
CN114285794A
CN114285794A CN202111576623.XA CN202111576623A CN114285794A CN 114285794 A CN114285794 A CN 114285794A CN 202111576623 A CN202111576623 A CN 202111576623A CN 114285794 A CN114285794 A CN 114285794A
Authority
CN
China
Prior art keywords
message
forwarded
line
label
routing rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111576623.XA
Other languages
Chinese (zh)
Other versions
CN114285794B (en
Inventor
李亦绍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN202111576623.XA priority Critical patent/CN114285794B/en
Publication of CN114285794A publication Critical patent/CN114285794A/en
Application granted granted Critical
Publication of CN114285794B publication Critical patent/CN114285794B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a message forwarding control method, a message transmission network, electronic equipment and a storage medium, wherein the method is applied to each service node in the transmission network, the service node is at least accessed into two forwarding lines, and the method comprises the following steps: extracting message characteristic information of a message to be forwarded, and identifying a service application type of the message to be forwarded according to the message characteristic information; adding a corresponding label to the message to be forwarded according to the corresponding relation between the preset service application type and the label; and forwarding the message to be forwarded according to a line specified in a routing rule corresponding to the label, wherein the line specified by the routing rule is determined based on the service application type corresponding to the label.

Description

Message forwarding control method, message transmission network, electronic device and storage medium
Technical Field
The present invention relates to the field of network technologies, and in particular, to a packet forwarding control method, a packet transmission network, an electronic device, and a storage medium.
Background
Network service providers often deploy various transmission lines in a transmission network in order to guarantee quality of service and meet different line requirements of customers in terms of cost, quality, etc.
Common transmission networks include cdn (content Delivery Network), SD-WAN (Software Defined Wide Area Network), and the like, where the SD-WAN is a service formed by applying SDN (Software Defined Network) technology to a Wide Area Network scenario, and the service may be used to connect enterprise networks, data centers, internet applications, and cloud services in a Wide geographic range.
The final purpose of SD-WAN is to use various internet lines to replace expensive private lines such as MPLS (Multi-Protocol Label Switching) lines and physical lines such as SDH (Synchronous Digital Hierarchy) lines, but many enterprises do not completely abandon lines with guaranteed quality of service, but rather tend to deploy hybrid networks, that is, to migrate some relatively unimportant traffic to internet lines on the basis of keeping the original private lines or physical lines transmitting critical service data. Therefore, multiple lines such as a private line, a physical line, and an Internet line may be included between service nodes of the SD-WAN network architecture, for example, between a CPE (Customer Premise Equipment) and a POP (Point of Presence), between a POP and a POP, and in other words, one service node may access multiple lines such as a private line, a physical line, and an Internet line, and currently, when a service node forwards a packet, the service node selects a corresponding transmission line to forward the packet according to a routing policy set by a source IP (Internet Protocol) address or a destination IP address of the packet, and this packet forwarding control manner has at least the following two problems:
firstly, all messages with the same source address or destination address are forwarded through the same transmission line, however, the messages corresponding to the same source address and destination address are not all important service messages, once the non-important service messages occupy expensive lines such as private lines or physical lines, additional cost is generated, and the transmission safety of the important service messages cannot be ensured;
second, in the prior art, the line selected by the central controller or the service node itself according to the source IP or the destination IP is generally a complete transmission line, that is, the line includes a start point, an end point, and all transit nodes passed through.
Disclosure of Invention
In order to solve the problems in the background art, embodiments of the present invention provide a message forwarding control method, a message transmission network, an electronic device, and a storage medium.
In a first aspect, an embodiment of the present invention provides a packet forwarding control method, which is applied to each service node in a transmission network, where the service node has access to at least two forwarding lines, and the method includes: extracting message characteristic information of a message to be forwarded, and identifying a service application type of the message to be forwarded according to the message characteristic information; adding a corresponding label to the message to be forwarded according to the corresponding relation between the preset service application type and the label; and forwarding the message to be forwarded according to a line specified in a routing rule corresponding to the label, wherein the line specified by the routing rule is determined based on the service application type corresponding to the label.
In a possible implementation manner, before forwarding the packet to be forwarded according to the routing rule, the method further includes: and deleting the label added to the message to be forwarded.
In a possible implementation manner, the message feature information of the message to be forwarded is extracted, and the service application type to which the message to be forwarded belongs is identified according to the message feature information; adding a corresponding label to the message to be forwarded according to a corresponding relation between a preset service application type and the label, specifically comprising:
the system kernel of the service node sends the received message to be forwarded to an application layer agent program, the application layer agent program extracts message characteristic information of the message to be forwarded, and the service application type of the message to be forwarded is identified according to the message characteristic information; and adding a corresponding label to the message to be forwarded according to the corresponding relation between the preset service application type and the label, and sending the message to be forwarded carrying the label to the system kernel.
In a possible implementation manner, the adding a corresponding label to the packet to be forwarded specifically includes: determining a socket corresponding to the message to be forwarded, and setting the label in the socket; or, the label is added to the IP characteristic value of the message to be forwarded.
In one possible embodiment, the method further includes: monitoring each line included in the service node, and acquiring state information of each line according to a preset time period; and for any line, updating a first routing rule corresponding to the line when the line is determined to meet a set condition according to the state information of the line.
In a possible implementation manner, when it is determined that the line satisfies the set condition according to the state information of the line, updating the routing rule corresponding to the line specifically includes: and when the state of the line is determined not to meet the requirement of the service application type in the first routing rule, selecting a proper line for the service application type in the first routing rule again, and updating the first routing rule based on the newly selected line.
In a possible implementation manner, when it is monitored that the state of the line meets the requirement of the service application type in the first routing rule before updating, the method further includes: and restoring the line identifier in the updated first routing rule to the line identifier in the first routing rule before updating.
In a second aspect, an embodiment of the present invention provides a packet transmission network, where the transmission network includes a plurality of service nodes, and when receiving a packet to be forwarded, if it is determined that the packet to be forwarded corresponds to at least two forwarding lines, the packet to be forwarded is forwarded based on the packet forwarding control method of the present invention.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program that is stored in the memory and is executable on the processor, where the processor implements the message forwarding control method according to the present invention when executing the computer program.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the message forwarding control method according to the present invention.
The embodiment of the invention has the following beneficial effects:
the message forwarding control method, the message transmission network, the electronic device and the storage medium provided by the embodiment of the invention can be applied to each service node in the transmission network, wherein the service node is at least accessed into two forwarding routes, the service node extracts the message characteristic information of the message to be forwarded after receiving the message to be forwarded, identifies the service application type of the message to be forwarded according to the message characteristic information, adds a corresponding label to the message to be forwarded according to the corresponding relation between the preset service application type and the label, and further forwards the message to be forwarded according to the route specified in the routing rule corresponding to the label, wherein the route specified by the routing rule is determined based on the service application type corresponding to the label, in the embodiment of the invention, the selection of a proper forwarding route for the message according to the service application type of the message is realized, for example, the important service message can be forwarded through a private line or a physical private line, the common service message is forwarded through the Internet line, so that the problem of extra cost caused by the fact that non-important service messages occupy expensive special lines is solved, and the transmission safety of important service messages is improved. Meanwhile, the method provided by the embodiment of the invention can be used for the service node in any transmission network, and any service node in the transmission network, which is accessed into at least two forwarding lines, can select the corresponding forwarding line for the message through the method, so that the flexible adjustment of the forwarding line can be realized, and the stable transmission is ensured.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic view of an application scenario of a message forwarding control method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an implementation flow of a message forwarding control method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to solve the problems in the background art, embodiments of the present invention provide a message forwarding control method, a message transmission network, an electronic device, and a storage medium.
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are merely for illustrating and explaining the present invention, and are not intended to limit the present invention, and that the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
The message forwarding control method provided by the embodiment of the invention is applied to various types of transmission networks, and the embodiment of the invention will be described in detail below by taking an SD-WAN service network as an example.
Referring to fig. 1, which is an application scenario diagram of a packet forwarding control method according to an embodiment of the present invention, a transmission network applied by the packet forwarding control method may be: in an application scenario, the CPE may be configured to communicate with a source end device and/or a destination end device deployed in a client intranet, so as to enable the source end device or the destination end device of the intranet to access a service network constructed by the POP.
The source end and the destination end are used to identify a data sending end and a data receiving end in a data transceiving process, and are generally devices of a client side, such as user equipment, an application server, a data center, and the like.
The access nodes CPE and the transit nodes POP may be deployed in network transit devices, such as switch devices, router devices, servers, and the like.
In an application scenario as shown in fig. 1, a CPE simultaneously accesses a physical dedicated line and an internet line, for example, the CPE and a target server are connected by a physical dedicated line, the CPE and POP1 are connected by an internet line, when the CPE receives a packet sent to the target server (target device) from a source device (not shown in fig. 1), an appropriate line can be selected for the packet to transmit based on the method provided in the embodiment of the present invention, and it is noted that the method provided in the embodiment of the present invention is applicable to any service node in a transmission network that accesses at least two lines, in other words, when forwarding the packet from the CPE, POP2, and POP3, the illustrated POP1 can select an appropriate line to transmit the packet based on the method provided in this embodiment, so that, the autonomous line selection can be performed based on each service node, the flexible adjustment of the transmission line is realized, and the transmission stability is ensured.
Based on the above application scenarios, exemplary embodiments of the present invention will be described in more detail below with reference to fig. 2 to 3, it is understood that the above application scenarios are only shown for the convenience of understanding the spirit and principle of the present invention, and the embodiments of the present invention are not limited in any way herein. Rather, embodiments of the present invention may be applied to any scenario where applicable.
As shown in fig. 2, which is a schematic diagram of an implementation flow of a message forwarding control method provided in an embodiment of the present invention, the message forwarding control method can be applied to any service node (such as CPE, POP1, POP2, and POP3 in fig. 1) accessing at least two transmission lines in a transmission network, and the message forwarding control method includes the following steps:
s11, extracting the message characteristic information of the message to be forwarded, and identifying the service application type of the message to be forwarded according to the message characteristic information.
In specific implementation, a service node (CEP or POP) in the SD-WAN network system receives a message to be forwarded, extracts message characteristic information of the message to be forwarded, and identifies a service application type to which the message to be forwarded belongs according to the extracted message characteristic information.
Specifically, a system kernel in the service node sends a received message to be forwarded to an application layer agent program, the application layer agent program extracts message characteristic information of the message to be forwarded, and identifies a service application type to which the message to be forwarded belongs according to the message characteristic information.
In a preferred implementation, a service node system kernel (such as a Linux kernel) can send a received message to be forwarded to an application layer agent program through an ip _ tables instruction, and the application layer agent program extracts message characteristic information of the message to be forwarded and identifies a service application type to which the message to be forwarded belongs; in another implementation, the system core of the service node may also directly extract the message feature information of the message to be forwarded, and identify the service application type to which the message to be forwarded belongs, which is not limited in the embodiment of the present invention.
In a specific implementation process, the application layer agent program extracts message characteristic information of a message to be forwarded, and identifies a service application type to which the message to be forwarded belongs, which can be implemented based on a DPI (Deep Packet Inspection) technology, so as to set an identification rule according to an actual requirement.
For example, a technician may preset a message identification rule and a feature extraction rule in a service node according to a service requirement of a client to set a mapping relationship between message feature information and a service application type, and an application layer agent may extract the feature information of the message based on the feature extraction rule and identify a service application type to which the application layer agent belongs according to the preset identification rule, where the service application may be different intranet applications, such as an ERP (Enterprise Resource Planning) application, an OA (Office Automation) application, a mail application, a financial management application, and the like, and may also be a video application, a voice application, and the like. Taking an identification rule corresponding to the HTTP protocol and used for identifying a certain video application as an example, if information carried in fields such as a "host" field, a "uri" field, an "origin" field, and the like in a message can be successfully matched with the preset rule for identifying the video application, if the "host" field carries a website or a keyword of the video application, it indicates that the matching is successful, and it is determined that the service application type to which the message feature belongs is the video application. It can be understood that the setting of the service application type can be used for selecting a line for the message subsequently, and therefore, the service application type can be set according to actual requirements, and the present invention is not limited thereto.
And S12, adding a corresponding label to the message to be forwarded according to the corresponding relation between the preset service application type and the label.
In specific implementation, the service node may be configured with a tag corresponding to each service application type in advance, and establish a correspondence between the service application type and the tag, for example, the tag corresponding to the ERP application is set to be a, the tag corresponding to the OA application is set to be b, the tag corresponding to the video conference application is set to be c, and the like. After the application layer agent program in the service node determines the service application type to which the message to be forwarded belongs, the application layer agent program may add a corresponding tag to the message to be forwarded according to a preset correspondence between the service application type and the tag, that is: and adding a label corresponding to the service application type of the message to be forwarded, and sending the message to be forwarded carrying the label to a system kernel.
Specifically, the corresponding label may be added to the packet to be forwarded in the following manner:
the first method is as follows: and determining a socket (socket) corresponding to the message to be forwarded, and setting a label in the socket.
The method is characterized in that a mode of setting a label corresponding to a message to be forwarded in a socket corresponding to the message to be forwarded is adopted, the message to be forwarded does not bring any influence on the message to be forwarded, and the label can automatically fail along with the closing of a socket, so that the label on the socket can act on all messages based on the socket communication.
The second method comprises the following steps: and adding the label into the IP characteristic value of the message to be forwarded.
By adding the label corresponding to the message to be forwarded to the IP characteristic value of the message to be forwarded, if the label is set at the flag bit of the IP message, the line selection of a single message to be forwarded can be realized, that is: the service node can select a corresponding transmission line for each message to be forwarded, so that the line selection is more flexible.
It should be noted that steps S11 and S12 may be implemented in the application layer proxy, and step S13 is implemented in the system kernel of the service node. Steps S11 to S13 may also be implemented in the system kernel of the service node, which is not limited in this embodiment of the present invention.
And S13, forwarding the message to be forwarded according to the route specified in the routing rule corresponding to the label, wherein the route specified by the routing rule is determined based on the service application type corresponding to the label.
In specific implementation, the service node sets a corresponding routing rule in advance based on each label, a transmission line corresponding to the label is designated in the routing rule, a routing rule table is generated, the line designated in the routing rule is determined based on a service application type corresponding to the label, the service application type and the label have a preset corresponding relationship, namely the service application type, the label and the routing rule are in one-to-one correspondence, the routing rule can include a transmission line identifier, and the transmission line corresponding to the corresponding label is uniquely represented by the transmission line identifier.
Specifically, the service node searches a routing rule corresponding to the label added to the packet to be forwarded from the preset routing rule table according to the correspondence between the preset label and the routing rule, and forwards the packet to be forwarded to the next node through the transmission line corresponding to the transmission line identifier specified in the routing rule.
Taking the application scenario of fig. 1 as an example, assuming that a label corresponding to ERP application is a, a label corresponding to OA application is B, the preset label a corresponds to a routing rule 1, and a label B corresponds to a routing rule 2, where a transmission line identifier in the routing rule 1 is a (representing a physical dedicated line), a transmission line identifier in the routing rule 2 is B (representing an internet line), if the label added to the message to be forwarded is a, the message to be forwarded is forwarded using the physical dedicated line corresponding to the transmission line identifier in the routing rule 1 as a, and if the label added to the message to be forwarded is B, the message to be forwarded is forwarded using the internet line corresponding to the transmission line identifier in the routing rule 2 as B.
It should be noted that, in the embodiment of the present invention, a corresponding forwarding exit is set in a routing rule configured on a service node, that is, the service node accesses different transmission lines through different forwarding exits, and only the forwarding exits corresponding to labels in the routing rule are defined, so that the routing rule is only used for controlling which forwarding exit the packet is sent from, and does not control the whole process of packet transmission, in other words, the current service node sends the packet to be forwarded out, a transmission line through which the packet to be forwarded reaches a next service node is selected by the current service node, if the next service node also has at least two lines, then the next node may also select a transmission line for the packet based on the method of the present embodiment, it can be understood that, in the embodiment of the present invention, because the routing rule on each service node is configured separately, then packets belonging to the same service application type may configure different routing rules on different nodes, the method and the device dynamically adapt to the change of each section of transmission line, thereby ensuring the stability of transmission, and being more flexible compared with the mode of selecting the line by an initial node in the prior art.
Before forwarding the message to be forwarded according to the found routing rule, the method further comprises the following steps: and deleting the label added to the message to be forwarded so as to avoid the influence of the label added to the message on the subsequent service node.
Based on the method, the user can preset different transmission lines of the service messages of different service application types according to requirements, for example, important service messages can be set to be forwarded through a private line or a physical private line, and common service messages are set to be forwarded through an internet line, so that the problem that the non-important service messages occupy expensive private lines to generate extra cost is solved, and the transmission safety of the important service messages is improved.
Further, in order to improve transmission stability, in the embodiment of the present invention, the service node may further monitor each line included in the service node, obtain state information of each line according to a preset time period, and update, for any line, the first routing rule corresponding to the line when it is determined that the line satisfies the set condition according to the state information of the line.
In a specific implementation process, when the state of the line is determined not to meet the requirement of the service application type in the first routing rule, a suitable line is selected for the service application type in the first routing rule again, and the first routing rule is updated based on the newly selected line.
Specifically, requirements for business application types may include, but are not limited to including: whether the line is abnormal or not, whether the line is congested or not, whether the line quality is changed or not, and the like. When the state of the line is an abnormal state or a congestion state, or the quality of the line is poor, determining that the state of the line does not meet the requirement of the service application type in the first routing rule, then, the service node selects the line which is most matched with the requirement of the service application type according to the states of all the lines, modifies the line identification in the first routing rule into the most matched line identification, obtains the updated first routing rule, issues the updated first routing rule, and then forwards the message to be forwarded according to the updated first routing rule.
In implementation, whether the line is abnormal or not can be judged through time delay, and whether the line is congested or not can be judged through used bandwidth and residual bandwidth of the line.
Specifically, the service node may send a probe signal to a next service node corresponding to the packet to be forwarded through each line according to a preset time period, record a time delay for each next service node to return a response message through each line, determine that the corresponding line is abnormal if the time delay exceeds a preset time threshold, and determine that the corresponding line is normal if the time delay is less than or equal to the preset time threshold, where the preset time threshold may be set according to an empirical value.
The service node may allocate an available bandwidth to each line according to its physical bandwidth, and in implementation, the service node acquires the used bandwidth of each line according to a preset time period, and may acquire a remaining bandwidth available to each line according to the available bandwidth of each line, and if the remaining bandwidth is less than a preset bandwidth threshold, it determines that the state of the line is a congestion state, and if the remaining bandwidth is greater than or equal to the preset bandwidth threshold, it determines that the state of the line is a non-congestion state, where the preset bandwidth threshold may be set according to actual needs, which is not limited in the embodiments of the present invention.
The preset time period may be set according to the requirement, which is not limited in the embodiments of the present invention.
Further, when the state of the monitored line meets the requirement of the service application type in the first routing rule before updating, if the state of the monitored line returns to normal or is no longer congested, the service node returns the line identifier in the updated first routing rule to the line identifier in the first routing rule before updating.
For example, in fig. 1, when POP1 monitors that physical dedicated line a between POP2 and POP1 is abnormal (or jammed, or has line quality degraded), it may modify line identifier a in routing rule 1 corresponding to label a in POP1 into line identifier B and issue it, or directly delete routing rule 1 corresponding to label a, reset routing rule 1 corresponding to label a, set routing rule 1 as line identifier B of transmission line corresponding to label a and issue it, thus modify the transmission line in routing rule 1 into internet line, further POP1 sends the message to be forwarded to POP2 through internet line between POP2, and when POP1 monitors that physical dedicated line a between POP2 and POP is restored to normal or not jammed, restore modified routing rule 1 to routing rule 1 before update, that is: and modifying the line identification B of the transmission line corresponding to the label a into A.
The message forwarding control method provided by the embodiment of the invention can be directly implemented on a single service node, can realize the guidance of data message flow by the single service node, and can directly reconfigure the local routing rule of the service node when the transmission line needs to be adjusted, without setting the whole routing rule table, so that the flexibility and the efficiency of configuration are higher.
Based on the same inventive concept, the embodiment of the invention also provides a message transmission network, wherein the transmission network comprises a plurality of service nodes, and when the service nodes receive the message to be forwarded, if the message to be forwarded is determined to correspond to at least two forwarding lines, the message to be forwarded is forwarded based on the message forwarding control method.
Based on the same technical concept, an embodiment of the present invention further provides an electronic device 200, and referring to fig. 3, the electronic device 200 is configured to implement the message forwarding control method described in the foregoing method embodiment, where the electronic device 200 of this embodiment may include: a memory 201, a processor 202 and a computer program, such as a message forwarding control program or a message forwarding control program, stored in said memory and executable on said processor. The processor, when executing the computer program, implements the steps in the foregoing message forwarding control method embodiments, such as step S11 shown in fig. 2.
The embodiment of the present invention does not limit the specific connection medium between the memory 201 and the processor 202. In the embodiment of the present application, the memory 201 and the processor 202 are connected by the bus 203 in fig. 3, the bus 203 is represented by a thick line in fig. 3, and the connection manner between other components is merely schematically illustrated and is not limited thereto. The bus 203 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
The memory 201 may be a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 201 may also be a non-volatile memory (non-volatile memory) such as, but not limited to, a read-only memory (rom), a flash memory (flash memory), a hard disk (HDD) or a solid-state drive (SSD), or the memory 201 may be any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 201 may be a combination of the above memories.
The processor 202 is configured to implement a message forwarding control method shown in fig. 2.
The embodiment of the present application further provides a computer-readable storage medium, which stores computer-executable instructions required to be executed by the processor, and includes a program required to be executed by the processor.
In some possible embodiments, the aspects of the message forwarding control method provided by the present invention may also be implemented in the form of a program product, which includes program code for causing an electronic device to execute the steps in the message forwarding control method according to various exemplary embodiments of the present invention described above in this specification when the program product runs on the electronic device.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A message forwarding control method is applied to each service node in a transmission network, wherein the service node has access to at least two forwarding lines, and the method comprises the following steps:
extracting message characteristic information of a message to be forwarded, and identifying a service application type of the message to be forwarded according to the message characteristic information;
adding a corresponding label to the message to be forwarded according to the corresponding relation between the preset service application type and the label;
and forwarding the message to be forwarded according to a line specified in a routing rule corresponding to the label, wherein the line specified by the routing rule is determined based on the service application type corresponding to the label.
2. The method according to claim 1, wherein before forwarding the packet to be forwarded according to the routing rule, the method further comprises:
and deleting the label added to the message to be forwarded.
3. The method according to claim 1 or 2, wherein the message characteristic information of the message to be forwarded is extracted, and the service application type to which the message to be forwarded belongs is identified according to the message characteristic information; adding a corresponding label to the message to be forwarded according to a corresponding relation between a preset service application type and the label, specifically comprising:
the system kernel of the service node sends the received message to be forwarded to an application layer agent program, the application layer agent program extracts message characteristic information of the message to be forwarded, and the service application type of the message to be forwarded is identified according to the message characteristic information; and adding a corresponding label to the message to be forwarded according to the corresponding relation between the preset service application type and the label, and sending the message to be forwarded carrying the label to the system kernel.
4. The method according to claim 1, wherein the adding a corresponding label to the packet to be forwarded specifically includes:
determining a socket corresponding to the message to be forwarded, and setting the label in the socket; or, the label is added to the IP characteristic value of the message to be forwarded.
5. The method of claim 1, further comprising:
monitoring each line contained in the service node, and acquiring state information of each line according to a preset time period;
and for any line, updating a first routing rule corresponding to the line when the line is determined to meet a set condition according to the state information of the line.
6. The method according to claim 5, wherein when it is determined that the line satisfies the set condition according to the state information of the line, updating the routing rule corresponding to the line specifically includes:
and when the state of the line is determined not to meet the requirement of the service application type in the first routing rule, selecting a proper line for the service application type in the first routing rule again, and updating the first routing rule based on the newly selected line.
7. The method of claim 6, wherein when the status of the line is monitored to meet the requirements of the service application type in the first routing rule before updating, further comprising:
and restoring the line identifier in the updated first routing rule to the line identifier in the first routing rule before updating.
8. A message transmission network, characterized in that the transmission network comprises a plurality of service nodes, and when receiving a message to be forwarded, if it is determined that the message to be forwarded corresponds to at least two forwarding lines, the service nodes forward the message to be forwarded based on the message forwarding control method according to any one of claims 1 to 7.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the message forwarding control method according to any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the message forwarding control method according to any one of claims 1 to 7.
CN202111576623.XA 2021-12-22 2021-12-22 Message forwarding control method, message transmission network, electronic equipment and storage medium Active CN114285794B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111576623.XA CN114285794B (en) 2021-12-22 2021-12-22 Message forwarding control method, message transmission network, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111576623.XA CN114285794B (en) 2021-12-22 2021-12-22 Message forwarding control method, message transmission network, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114285794A true CN114285794A (en) 2022-04-05
CN114285794B CN114285794B (en) 2023-08-18

Family

ID=80873903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111576623.XA Active CN114285794B (en) 2021-12-22 2021-12-22 Message forwarding control method, message transmission network, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114285794B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679350A (en) * 2022-05-30 2022-06-28 南凌科技股份有限公司 SD-WAN-based link selection method, device and storage medium
CN115442173A (en) * 2022-06-07 2022-12-06 北京车和家信息技术有限公司 Vehicle message forwarding and processing method and device, electronic equipment and storage medium
CN115632980A (en) * 2022-10-24 2023-01-20 平安银行股份有限公司 Method and device for realizing routing configuration, storage medium and electronic equipment
CN116708311A (en) * 2023-05-29 2023-09-05 南京高达软件有限公司 Rail transit train message transmission method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015043327A1 (en) * 2013-09-30 2015-04-02 华为技术有限公司 Routing method, device and system
CN104618232A (en) * 2015-01-28 2015-05-13 杭州华三通信技术有限公司 Wide area network link selecting method and wide area network link selecting device
CN104753786A (en) * 2012-02-13 2015-07-01 华为技术有限公司 Business routing network and business processing method and equipment
CN106254265A (en) * 2015-06-10 2016-12-21 华为技术有限公司 Process the methods, devices and systems of message
CN107071034A (en) * 2017-04-20 2017-08-18 网宿科技股份有限公司 A kind of data pack transmission method and system
CN108234318A (en) * 2018-03-20 2018-06-29 新华三技术有限公司 The choosing method and device of message forwarding tunnel
CN108880999A (en) * 2013-12-30 2018-11-23 华为技术有限公司 A kind of method, equipment and the system of business routing
US20190068759A1 (en) * 2017-07-31 2019-02-28 Nicira, Inc. Application based egress interface selection
CN110912795A (en) * 2018-09-14 2020-03-24 中兴通讯股份有限公司 Transmission control method, node, network system and storage medium
WO2021017930A1 (en) * 2019-07-26 2021-02-04 新华三技术有限公司 Message forwarding

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104753786A (en) * 2012-02-13 2015-07-01 华为技术有限公司 Business routing network and business processing method and equipment
WO2015043327A1 (en) * 2013-09-30 2015-04-02 华为技术有限公司 Routing method, device and system
CN108880999A (en) * 2013-12-30 2018-11-23 华为技术有限公司 A kind of method, equipment and the system of business routing
CN104618232A (en) * 2015-01-28 2015-05-13 杭州华三通信技术有限公司 Wide area network link selecting method and wide area network link selecting device
CN106254265A (en) * 2015-06-10 2016-12-21 华为技术有限公司 Process the methods, devices and systems of message
CN107071034A (en) * 2017-04-20 2017-08-18 网宿科技股份有限公司 A kind of data pack transmission method and system
US20190068759A1 (en) * 2017-07-31 2019-02-28 Nicira, Inc. Application based egress interface selection
CN108234318A (en) * 2018-03-20 2018-06-29 新华三技术有限公司 The choosing method and device of message forwarding tunnel
CN110912795A (en) * 2018-09-14 2020-03-24 中兴通讯股份有限公司 Transmission control method, node, network system and storage medium
WO2021017930A1 (en) * 2019-07-26 2021-02-04 新华三技术有限公司 Message forwarding

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZHONGYUAN JIANG AND MANGUI LIANG: "A Network Connection Protection Mechanism Based on Random Node Identification", 2011 IEEE 13TH INTERNATIONAL CONFERENCE ON COMMUNICATION TECHNOLOGY, JINAN, CHINA, 2011 *
田立勤,林闯: "报文分类技术的研究及其应用", 计算机研究与发展, no. 06 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679350A (en) * 2022-05-30 2022-06-28 南凌科技股份有限公司 SD-WAN-based link selection method, device and storage medium
CN114679350B (en) * 2022-05-30 2022-09-06 南凌科技股份有限公司 SD-WAN-based link selection method, device and storage medium
CN115442173A (en) * 2022-06-07 2022-12-06 北京车和家信息技术有限公司 Vehicle message forwarding and processing method and device, electronic equipment and storage medium
CN115442173B (en) * 2022-06-07 2024-02-06 北京车和家信息技术有限公司 Vehicle message forwarding and processing method and device, electronic equipment and storage medium
CN115632980A (en) * 2022-10-24 2023-01-20 平安银行股份有限公司 Method and device for realizing routing configuration, storage medium and electronic equipment
CN116708311A (en) * 2023-05-29 2023-09-05 南京高达软件有限公司 Rail transit train message transmission method and device

Also Published As

Publication number Publication date
CN114285794B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
CN114285794B (en) Message forwarding control method, message transmission network, electronic equipment and storage medium
US10601656B2 (en) Network element upgrade method and device
US9106561B2 (en) Configuration of a virtual service network
US9246799B2 (en) Data plane learning of bi-directional service chains
EP3154227B1 (en) Packet transmission method, node, path management server and storage medium
US20170171310A1 (en) Latency virtualization in a transport network using a storage area network
US10587494B2 (en) Network control method and apparatus
US20140192645A1 (en) Method for Internet Traffic Management Using a Central Traffic Controller
US20170104671A1 (en) Data packet processing method, service node, and delivery node
US11190439B2 (en) Data stream transmission
US9967346B2 (en) Passing data over virtual links
US11652739B2 (en) Service related routing method and apparatus
CN106688209B (en) Method and system for transmitting broadcast data
US9967140B2 (en) Virtual links for network appliances
US10397791B2 (en) Method for auto-discovery in networks implementing network slicing
WO2018068588A1 (en) Method and software-defined networking (sdn) controller for providing multicast service
US10511544B2 (en) Path computation element protocol response and simple network management protocol confirmation for tunnel configuration
US9356861B2 (en) Secondary lookup for scaling datapath architecture beyond integrated hardware capacity
CN109756412B (en) Data message forwarding method and equipment
KR101802037B1 (en) Method and system of transmitting oam message for service function chaining in software defined network environment
EP3163812B1 (en) Method and apparatus for cross-layer path establishment
WO2023109200A1 (en) Route advertisement method, communication system, and related device
US11258720B2 (en) Flow-based isolation in a service network implemented over a software-defined network
US11196673B2 (en) Traffic shaping over multiple hops in a network
CN113783802A (en) Bandwidth adjusting method and system

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