CN114285794B - Message forwarding control method, message transmission network, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN114285794B
CN114285794B CN202111576623.XA CN202111576623A CN114285794B CN 114285794 B CN114285794 B CN 114285794B CN 202111576623 A CN202111576623 A CN 202111576623A CN 114285794 B CN114285794 B CN 114285794B
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.)
Active
Application number
CN202111576623.XA
Other languages
Chinese (zh)
Other versions
CN114285794A (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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application 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, and the service node is at least connected with two forwarding lines, and comprises the following steps: extracting message characteristic information of a message to be forwarded, and identifying the 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 the line specified in the 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 equipment and storage medium
Technical Field
The present application relates to the field of network technologies, and in particular, to a method for controlling packet forwarding, 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 ensure quality of service and to meet different line requirements of customers in terms of cost, quality, etc.
Common transmission networks such as CDN (Content Delivery Network), SD-WAN (Software Defined Wide Area Network ), and the like, for example, SD-WAN is a service formed by applying SDN (Software Defined Network ) technology to a wide area network scenario, where the service can be used to connect to enterprise networks, data centers, internet applications, and cloud services over a wide geographic range.
The final goal of SD-WAN is to use various internet lines instead of expensive private dedicated lines such as MPLS (Multi-Protocol Label Switching, multiprotocol label switching) dedicated lines, physical dedicated lines such as SDH (Synchronous Digital Hierarchy ) dedicated lines, but many enterprises do not currently completely discard dedicated lines with quality of service guarantees, but rather prefer to deploy hybrid networks, i.e. to migrate part of the relatively unimportant traffic onto the internet lines on the basis of preserving the original private or physical dedicated lines to carry critical traffic data. Therefore, the service nodes of the SD-WAN network architecture may include multiple lines, such as private dedicated lines, physical dedicated lines, and internet lines, between CPE (Customer Premise Equipment ) and POP (Point of Presence, access point), and between POP and POP, in other words, one service node may access multiple lines, such as private dedicated lines, physical dedicated lines, and internet lines, and currently, when the service node forwards a message, the service node selects a corresponding transmission line to forward the message according to a routing policy set by a source IP (Internet Protocol, network protocol) address or a destination IP address of the message, and the message forwarding control method has at least two problems as follows:
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 important service messages, and once non-important service messages occupy the private special line or physical special line and other expensive lines, additional cost is generated, and the safety of the transmission of the important service messages cannot be ensured;
second, in the prior art, the line selected by the central controller or the service node according to the source IP or the destination IP is generally a complete transmission line, i.e. a line including a start point and an end point, and all the transit nodes passing through, and once the line is selected, the transit nodes are only responsible for forwarding, and when an abnormality occurs in a certain section of the line, the transit nodes cannot be adjusted in time, which may cause transmission interruption.
Disclosure of Invention
In order to solve the problems in the background art, the embodiment of the application provides a message forwarding control method, a message transmission network, electronic equipment and a storage medium.
In a first aspect, an embodiment of the present application provides a method for controlling forwarding of a packet, which is applied to each service node in a transport network, where the service node is at least connected to two forwarding lines, and includes: extracting message characteristic information of a message to be forwarded, and identifying the 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 the line specified in the 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 one possible implementation manner, before forwarding the message to be forwarded according to the routing rule, the method further includes: and deleting the label added to the message to be forwarded.
In one possible implementation manner, the extracting the message characteristic information of the message to be forwarded identifies the service application type to which the message to be forwarded belongs according to the message characteristic information; according to the corresponding relation between the preset service application type and the label, adding the corresponding label to the message to be forwarded, specifically comprising:
the system kernel of the service node sends the received message to be forwarded to an application layer proxy program, the application layer proxy program extracts the 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 message to be forwarded specifically includes: determining a socket corresponding to the message to be forwarded, and setting the tag in the socket; or adding the label in the IP characteristic value of the message to be forwarded.
In one possible embodiment, the method further comprises: 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, when the line is determined to meet the set condition according to the state information of the line, updating a first routing rule corresponding to the line.
In one possible implementation manner, when it is determined that the line meets a 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 the state of the line is monitored to meet the requirement of the service application type in the first routing rule before updating, the method further includes: and restoring the line identification in the updated first routing rule to the line identification in the first routing rule before updating.
In a second aspect, an embodiment of the present application provides a packet transport network, where the transport network includes a plurality of service nodes, and when the service nodes receive a packet to be forwarded, if it is determined that the packet to be forwarded corresponds to at least two forwarding lines, forwarding the packet to be forwarded based on the packet forwarding control method according to the present application.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the method for controlling forwarding of a message according to the present application when executing the program.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the method for controlling forwarding of a message according to the present application.
The embodiment of the application 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 application can be applied to each service node in the transmission network, wherein the service node is at least connected with 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. Meanwhile, the method provided by the embodiment of the application can be applied to the service node in any transmission network, and the service node which is accessed to at least two forwarding lines in the transmission network can select the corresponding forwarding line for the message by 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 application 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 application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
fig. 1 is a schematic diagram of an application scenario of a method for controlling forwarding of a message according to an embodiment of the present application;
fig. 2 is a schematic flow chart of an implementation of a message forwarding control method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to solve the problems in the background art, the embodiment of the application provides a message forwarding control method, a message transmission network, electronic equipment and a storage medium.
The preferred embodiments of the present application will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are for illustration and explanation only, and not for limitation of the present application, and embodiments of the present application and features of the embodiments may be combined with each other without conflict.
The method for controlling message forwarding provided by the embodiment of the application is applied to various types of transmission networks, and the embodiment of the application will be described in detail by taking an SD-WAN service network as an example.
Referring first to fig. 1, which is a schematic diagram of an application scenario of a packet forwarding control method according to an embodiment of the present application, a transmission network to which the packet forwarding control method is applied may be: the SD-WAN service network can comprise service nodes such as access nodes CPE, transit nodes POP and the like in the service network architecture, and in an application scene, the CPE can be used for communicating with source end equipment and/or destination end equipment deployed in a customer intranet so as to realize that the intranet source end equipment or the destination end equipment accesses the service network constructed by the POP, and in the application scene of the illustration, the destination end equipment can be equipment deployed in a public network, so that the service network can also be directly communicated with the POP.
The source end and the destination end are used for identifying a data transmitting end and a data receiving end in the data receiving and transmitting process, and are generally devices of a client side, such as user equipment, an application server, a data center and the like.
The access node CPE, the transit node POP may be deployed in a network transit device, such as a switch device, a router device, a server, etc.
In an application scenario shown in fig. 1, a CPE is simultaneously connected to a physical dedicated line and an internet line, for example, the CPE and a target server are connected by a physical dedicated line, and the CPE and the POP1 are connected by an internet line, when the CPE receives a message sent to the target server (destination device) from a source device (not shown in fig. 1), an appropriate line can be selected for the message to transmit based on a method provided by an embodiment of the present application, and it is noted that the method provided by the embodiment of the present application can be applied to any service node in a transmission network that is connected to at least two lines, in other words, when the POP1 in the illustration forwards a message from the CPE, the POP2, and the POP3 forwards a message from the server, the appropriate line can be selected for transmitting the message based on the method provided by the embodiment, so that an autonomous line selection of each service node can be implemented, and the transmission stability can be ensured.
Based on the above application scenario, an exemplary embodiment of the present application will be described in more detail below with reference to fig. 2 to 3, and it will be understood that the above application scenario is only shown for the convenience of understanding the spirit and principle of the present application, and the embodiments of the present application are not limited in any way herein. Rather, embodiments of the application may be applied to any scenario where applicable.
As shown in fig. 2, which is a schematic implementation flow chart of a packet forwarding control method according to an embodiment of the present application, the packet forwarding control method may be applied to any service node (such as CPE, POP1, POP2 and POP3 in fig. 1) in a transmission network, where the service node is connected to at least two transmission lines, and the packet forwarding control method includes the following steps:
s11, extracting 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, the system kernel in the service node sends the received message to be forwarded to the application layer proxy program, the application layer proxy program extracts the message characteristic information of the message to be forwarded, and identifies the service application type to which the message to be forwarded belongs according to the message characteristic information, preferably, the application layer proxy program can be implemented in a user mode so as to reduce the influence on the operation of the system kernel.
In a preferred implementation, a service node system kernel (such as a Linux kernel) may send a received message to be forwarded to an application layer proxy program through an ip_tables instruction, and the application layer proxy 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 kernel of the service node may 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 application.
In a specific implementation process, the application layer agent program extracts the message characteristic information of the message to be forwarded, and identifies the 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 actual requirements.
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 customer, so as to set a mapping relationship between feature information of a message and a service application type, and an application layer agent program may extract feature information of the message based on the feature extraction rule and identify a service application type to which the message belongs according to the preset identification rule, where the service application may be a different intranet application, such as an ERP (Enterprise Resource Planning ) application, an OA (Office Automation, office automation) application, a mail application, a financial management application, and the like, or may be a video application, a voice application, and the like. Taking an identification rule corresponding to an HTTP protocol and used for identifying a certain video application as an example, if information carried in a "host" field, a "uri" field, an "origin" field and other fields 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, the matching is indicated to be successful, and then the service application type to which the message feature belongs can be determined to be the video application. It will be appreciated that the setting of the service application type may be used to select a route for the message later, so the service application type may be set according to the actual requirement, and the present application is not limited thereto.
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 labels corresponding to the service application types can be preconfigured on the service node, and the corresponding relation between the service application types and the labels is established, for example, the label corresponding to the ERP application is set as a, the label corresponding to the OA application is set as b, the label corresponding to the video conference application is set as 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 can add a corresponding label to the message to be forwarded according to the corresponding relation between the preset service application type and the label, namely: 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 tag may be added to the message to be forwarded by:
mode one: 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 that a label corresponding to a message to be forwarded is arranged in a socket corresponding to the message to be forwarded is adopted, the message to be forwarded does not bring any influence, the label can also automatically fail along with the closing of the socket, therefore, the label on the socket can act on all messages based on the socket communication, that is, if the mode is adopted, an application layer agent program sets the label on the socket after completing the identification of a first message on the socket, and then, when receiving other messages to be forwarded based on the transmission of the socket, a service node system kernel can directly determine whether the socket corresponding to the message to be forwarded is provided with the label or not, if so, forwarding can be directly carried out based on the label, and therefore, the message forwarding efficiency is higher.
Mode two: 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 in the IP characteristic value of the message to be forwarded, if the label is set in the flag bit of the IP message, the line selection of a single message to be forwarded can be realized, namely: 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, step S11 and step S12 may be implemented in the application layer agent program, 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 the embodiment of the present application.
S13, forwarding the message to be forwarded according to the line specified in the 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 specific implementation, the service node sets a corresponding routing rule in advance based on each label, designates a transmission line corresponding to the label in the routing rule, generates a routing rule table, and the designated line in the routing rule is determined based on the service application type corresponding to the label.
Specifically, the service node searches a routing rule corresponding to a label added to the message to be forwarded according to the corresponding relation between the preset label and the routing rule in the preset routing rule table, and forwards the message to be forwarded to the next node through a transmission line corresponding to the transmission line identifier specified in the routing rule.
Taking the application scenario of fig. 1 as an example, assume that a label corresponding to the ERP application is a, a label corresponding to the OA application is B, a preset label a corresponds to a routing rule 1, a label B corresponds to a routing rule 2, 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 physical dedicated line corresponding to the transmission line identifier in the routing rule 1 is used for forwarding the message to be forwarded, and if the label added to the message to be forwarded is B, the internet line corresponding to the transmission line identifier in the routing rule 2 is used for forwarding the message to be forwarded.
It should be noted that, in the embodiment of the present application, the corresponding forwarding outlets are set in the routing rule configured on the service node, that is, the service node accesses different transmission lines through different forwarding outlets, and the routing rule only defines the forwarding outlets corresponding to each label, so that the routing rule is only used to control from which forwarding outlet the message is sent out, and does not control the whole process of message transmission, in other words, the current service node sends out the message to be forwarded, the transmission line of the message to be forwarded reaching the next service node is selected by the current service node, if the next service node also accesses at least two lines, the next node can also select the transmission line for the message based on the method of the embodiment, and it can be understood that, in the embodiment of the present application, since the routing rule on each service node is configured separately, different routing rules can be configured on different nodes for messages belonging to the same service application type, so as to dynamically adapt to the change of each segment of transmission line, thereby ensuring the stability of transmission, compared with the method of initial node selection 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 nodes.
Based on the above, the user can preset different transmission lines of the service messages of different service application types according to the requirements, for example, can set important service messages to be forwarded through private special lines or physical special lines, and set common service messages to be forwarded through internet lines, so that the problem that additional cost is generated due to the fact that non-important service messages occupy expensive special lines is avoided, and the safety of transmission of the important service messages is improved.
Further, in order to improve transmission stability, in the embodiment of the present application, the service node may 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, a first routing rule corresponding to the line when determining that the line meets a set condition according to the state information of the line.
In the implementation process, when the state of the line is determined to not 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 particular, the requirements of the business application type may include, but are not limited to, including: whether the line is abnormal, whether the line is jammed, whether the line quality is changed, 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, further, the service node selects a 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 an updated first routing rule, issues the updated first routing rule, and further forwards a 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 the used bandwidth and the residual bandwidth of the line.
Specifically, the service node may send a detection signal to the next service node corresponding to the message to be forwarded through each line according to a preset time period, record the time delay of the response message returned by each next service node 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 usable bandwidth to each line according to its physical bandwidth, and when implementing, the service node obtains the used bandwidth of each line according to a preset time period, and may obtain a residual bandwidth usable by each line according to the usable bandwidth of each line, if the residual bandwidth is smaller than a preset bandwidth threshold, the state of the line is determined to be a congestion state, and if the residual bandwidth is greater than or equal to the preset bandwidth threshold, the state of the line is determined to be a non-congestion state, where the preset bandwidth threshold may be set by itself according to actual needs, and the embodiment of the present application is not limited to this.
The preset time period can be set according to the needs, and the embodiment of the application is not limited to this.
Further, when the service node monitors that the state of the line meets the requirement of the service application type in the first routing rule before updating, if the state of the line is monitored to be normal or congestion is not generated any more, the service node restores the line identifier in the first routing rule after updating to the line identifier in the first routing rule before updating.
For example, in fig. 1, if the POP1 monitors that an abnormality (or congestion, or a line quality deterioration) occurs in a physical dedicated line a between the POP1 and the POP2, the line identifier a in the routing rule 1 corresponding to the label a in the POP1 may be modified to be a line identifier B and issued, or the routing rule 1 corresponding to the label a may be deleted directly, the routing rule 1 corresponding to the label a may be reset, the routing rule 1 may be set to be a line identifier B of a transmission line corresponding to the label a and issued, so that the transmission line in the routing rule 1 is modified to be an internet line, and further, the POP1 sends a message to be forwarded to the POP2 through the internet line between the POP1 and the POP2, and when the POP1 monitors that the physical dedicated line a between the POP1 and the POP2 is recovered to be normal or no longer congested, the modified routing rule 1 is recovered to be the routing rule 1 before updating, that is: and modifying the line identifier B of the transmission line corresponding to the tag a into A.
The message forwarding control method provided by the embodiment of the application can be directly implemented on a single service node, can realize the guidance of the single service node on the data message flow, can directly reconfigure the local routing rule of the service node when the transmission line needs to be regulated, does not need to relate to the setting of the integral routing rule table, and has higher configuration flexibility and efficiency.
Based on the same inventive concept, the embodiment of the application also provides a message transmission network, wherein the transmission network comprises a plurality of service nodes, and when the service nodes receive a 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, the embodiment of the present application further provides an electronic device 200, referring to fig. 3, where the electronic device 200 is configured to implement the method for controlling forwarding of a message described in the foregoing method embodiment, and the electronic device 200 of this embodiment may include: memory 201, processor 202, and a computer program stored in the memory and executable on the processor, such as a message forwarding control program or a message forwarding control program. The steps in the above embodiments of the method for controlling forwarding of a packet are implemented when the processor executes the computer program, for example, step S11 shown in fig. 2.
The specific connection medium between the memory 201 and the processor 202 is not limited in the embodiment of the present application. In the embodiment of the present application, the memory 201 and the processor 202 are connected through the bus 203 in fig. 3, the bus 203 is shown by a thick line in fig. 3, and the connection manner between other components is only schematically illustrated, but not limited to. The bus 203 may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one thick line is shown in fig. 3, but not only one bus or one type of bus.
The memory 201 may be a volatile memory (RAM) such as a random-access memory (RAM); the memory 201 may also be a non-volatile memory (non-volatile memory), such as a read-only memory, a flash memory (flash memory), a Hard Disk Drive (HDD) or a Solid State Drive (SSD), or 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, but is not limited thereto. The memory 201 may be a combination of the above memories.
Processor 202 is configured to implement a message forwarding control method as shown in fig. 2.
The embodiment of the application also provides a computer readable storage medium which stores computer executable instructions required to be executed by the processor and contains a program for executing the processor.
In some possible embodiments, various aspects of the packet forwarding control method provided in the present application may also be implemented in the form of a program product, which includes program code for causing an electronic device to perform the steps of the packet forwarding control method according to various exemplary embodiments of the present application as described in the present specification, when the program product is run on the electronic device.
It will be apparent to those skilled in the art that embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 application 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. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (9)

1. The message forwarding control method is characterized by being applied to each service node in a transmission network, wherein the service node is at least accessed to two forwarding lines, and the method comprises the following steps:
extracting message characteristic information of a message to be forwarded, and identifying the 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;
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;
before forwarding the message to be forwarded according to the routing rule, the method further comprises:
and deleting the label added to the message to be forwarded.
2. The method of claim 1, wherein the extracting the message characteristic information of the message to be forwarded identifies a service application type to which the message to be forwarded belongs according to the message characteristic information; according to the corresponding relation between the preset service application type and the label, adding the corresponding label to the message to be forwarded, specifically comprising:
the system kernel of the service node sends the received message to be forwarded to an application layer proxy program, the application layer proxy program extracts the 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.
3. The method of claim 1, wherein the adding a corresponding label to the message to be forwarded specifically includes:
determining a socket corresponding to the message to be forwarded, and setting the tag in the socket; or adding the label in the IP characteristic value of the message to be forwarded.
4. The method as recited in 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, when the line is determined to meet the set condition according to the state information of the line, updating a first routing rule corresponding to the line.
5. The method of claim 4, wherein updating the routing rule corresponding to the line when the line is determined to satisfy the set condition according to the state information of the line, specifically comprises:
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.
6. The method of claim 4, wherein 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, further comprising:
and restoring the line identification in the updated first routing rule to the line identification in the first routing rule before updating.
7. A packet transmission network, wherein the transmission network includes a plurality of service nodes, and when the service nodes receive a packet to be forwarded, if it is determined that the packet to be forwarded corresponds to at least two forwarding paths, forwarding the packet to be forwarded based on the packet forwarding control method according to any one of claims 1 to 6.
8. 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 of any of claims 1-6 when the program is executed by the processor.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the message forwarding control method according to any one of claims 1 to 6.
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 CN114285794A (en) 2022-04-05
CN114285794B true 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)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679350B (en) * 2022-05-30 2022-09-06 南凌科技股份有限公司 SD-WAN-based link selection method, device 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
CN115801335A (en) * 2022-10-27 2023-03-14 兴业银行股份有限公司 Abnormal scene testing method and system based on man-in-the-middle message hijacking
WO2024119498A1 (en) * 2022-12-09 2024-06-13 Oppo广东移动通信有限公司 Rfid tag information transmission methods and apparatuses, device, and storage medium
CN116708311A (en) * 2023-05-29 2023-09-05 南京高达软件有限公司 Rail transit train message transmission method and device
CN117914973A (en) * 2024-01-05 2024-04-19 凌锐蓝信科技(北京)有限公司 Message forwarding method, device, network equipment and storage medium

Citations (9)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10721338B2 (en) * 2017-07-31 2020-07-21 Nicira, Inc. Application based egress interface selection

Patent Citations (9)

* 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
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 (1)

* 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.2012,全文. *

Also Published As

Publication number Publication date
CN114285794A (en) 2022-04-05

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
US9887917B2 (en) Port extender
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
US9450874B2 (en) Method for internet traffic management using a central traffic controller
US20170171310A1 (en) Latency virtualization in a transport network using a storage area network
CN113261240A (en) Multi-tenant isolation using programmable clients
US8958282B2 (en) 1-for-N redundancy in private IP session border control networks
US11190439B2 (en) Data stream transmission
US9967346B2 (en) Passing data over virtual links
US20210377162A1 (en) Malleable routing for data packets
US20220345331A1 (en) Two-layer private line network system, configuration method, and device
US9967140B2 (en) Virtual links for network appliances
CN106688209B (en) Method and system for transmitting broadcast data
US9356861B2 (en) Secondary lookup for scaling datapath architecture beyond integrated hardware capacity
US10511544B2 (en) Path computation element protocol response and simple network management protocol confirmation for tunnel configuration
CN109756412B (en) Data message forwarding method and equipment
US20240205087A1 (en) Traffic message forwarding method, and client, controller and storage medium
WO2017143958A1 (en) System, method and apparatus for implementing fast reroute (frr)
US10715420B2 (en) System, method and apparatus for implementing fast reroute (FRR)
EP3163812B1 (en) Method and apparatus for cross-layer path establishment
WO2023273941A1 (en) Path switching method, controller, node and storage medium
US12009998B1 (en) Core network support for application requested network service level objectives

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