Message transmission method and device and electronic equipment
By enabling network acceleration on the egress router, packets requiring acceleration are directly forwarded to the destination, solving the problems of slow access between terminals and wasted bandwidth resources, and achieving efficient packet transmission.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- NEW H3C TECH CO LTD
- Filing Date
- 2026-03-12
- Publication Date
- 2026-05-19
AI Technical Summary
In existing technologies, access speeds between terminals in different locations are slow, and bandwidth resources between the egress router and the headquarters router are wasted significantly.
By enabling network acceleration on the egress router, the application to which the packet belongs is identified, and packets that need acceleration are forwarded directly to the destination without going through the main network router, while packets that do not need acceleration are forwarded through the main network router.
This avoids slow access between terminals and wasted bandwidth resources between the egress router and the headquarters router, thus improving transmission efficiency.
Smart Images

Figure CN122069221A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network communication technology, and in particular to message transmission methods, apparatus and electronic equipment. Background Technology
[0002] Currently, in practical applications, all communication between terminals in different locations requires forwarding through the headquarters router (i.e., the router to which the headquarters server is connected, also known as the main network router). For example, when terminal 1 in location A needs to transfer a file to terminal 2 in location B, the file transfer path is: Terminal 1 in location A → the egress router connected to terminal 1 → headquarters router → the ingress router connected to terminal 2 in location B → terminal 2 in location B. However, since the above transmission process all requires forwarding through the headquarters router, this leads to issues such as slow access between terminals and wasted bandwidth resources between local egress routers and the headquarters router. Summary of the Invention
[0003] In view of this, this application provides message transmission methods, apparatus and electronic equipment to minimize situations such as slow access between terminals and wasted bandwidth resources between local exit routers and headquarters routers.
[0004] This application provides a message transmission method. The method is applied to a first egress router in a first subnet of a network architecture. The first egress router has network acceleration enabled, and the network acceleration function is associated with applications requiring network acceleration. The network architecture also includes a main network and at least one second subnet other than the first subnet. The first egress router and the second egress routers in each of the second subnets are all connected to the main network router in the main network. The method includes: Based on the enabled network acceleration function, identify whether the currently received packet from the first subnet belongs to one of the applications that require network acceleration; If so, then forwarding the packet to the main network router is prohibited, and when the destination of the packet is a terminal in the first subnet, the packet is forwarded directly to the destination of the packet; when the destination of the packet is a terminal in the second subnet, the packet is forwarded to the ingress router in the second subnet. If not, the message is forwarded to the main network router.
[0005] This application embodiment also provides a message transmission device, which is applied to a first egress router in a first subnet of a network architecture. The first egress router has a network acceleration function enabled, and the network acceleration function is associated with applications that require network acceleration. The network architecture also includes a main network and at least one second subnet other than the first subnet. The first egress router and the second egress routers in each of the second subnets are all connected to the main network router in the main network. The device includes: The identification module is used to identify, based on the enabled network acceleration function, whether the currently received packet from the first subnet belongs to one of the applications that require network acceleration. The transmission module is configured to: if yes, prohibit forwarding the message to the main network router, and if the destination of the message is a terminal in the first subnet, directly forward the message to the destination of the message; if the destination of the message is a terminal in the second subnet, forward the message to the ingress router in the second subnet; otherwise, forward the message to the main network router.
[0006] This application also provides an electronic device, which includes: Processor; and A computer-readable storage medium storing computer program instructions that, when executed by a processor, cause the processor to perform the steps of the method described above.
[0007] This application also provides a computer-readable storage medium storing computer program instructions that, when executed by a processor, cause the processor to perform the steps in the above method.
[0008] As can be seen from the above technical solutions, in the network architecture including a main network and at least one subnet, after the egress router in any subnet receives a packet sent by the connected terminal (i.e., a packet from its own subnet), it identifies the application to which the packet belongs based on the enabled network acceleration function. If the application to which the packet belongs is one of the applications that needs network acceleration, it directly forwards the packet to the corresponding destination via the egress router in the subnet, instead of the existing method which requires the main network router in the main network to forward the packet. This fast packet forwarding method without going through the main network router in this embodiment can minimize situations such as slow access between terminals and wasted bandwidth resources between local egress routers and the headquarters router. Attached Figure Description
[0009] The accompanying drawings, which are incorporated in and form part of this application, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0010] Figure 1 This is a flowchart illustrating a message transmission method provided in an embodiment of this application.
[0011] Figure 2 This is a flowchart illustrating another message transmission method provided in an embodiment of this application.
[0012] Figure 3 This is a schematic diagram illustrating the implementation of the networking architecture provided in the embodiments of this application.
[0013] Figure 4 This is a schematic diagram of a message transmission device provided in an embodiment of this application.
[0014] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0015] To enable those skilled in the art to better understand the technical solutions provided in the embodiments of this application, and to make the above-mentioned objectives, features and advantages of the embodiments of this application more apparent and understandable, the technical solutions in the embodiments of this application will be further described in detail below with reference to the accompanying drawings.
[0016] See Figure 1 , Figure 1 This is a flowchart illustrating a message transmission method provided in an embodiment of this application. In this embodiment, as one example, the method is applied to a first egress router in a first subnet of a network architecture. This first egress router has network acceleration enabled, and this network acceleration function is associated with applications that require network acceleration. The network architecture also includes a main network and at least one second subnet other than the first subnet. The first egress router in the first subnet and the second egress routers in each of the second subnets are all connected to the main network router in the main network.
[0017] like Figure 1 As shown, the process may include the following steps: Step 101: Based on the enabled network acceleration function, identify whether the currently received packet from the first subnet belongs to one of the applications that need network acceleration. If yes, proceed to step 102; otherwise, proceed to step 103.
[0018] In this embodiment, the first egress router can connect to at least one terminal to forward packets sent by the connected terminal to the destination of the packet. Therefore, the currently received packet from the first subnet can refer to a packet sent by one of the terminals connected to the first egress router.
[0019] In this embodiment, as an example, specific service characteristics for identifying applications that require network acceleration can be configured in the first egress router in advance based on actual application needs. That is, applications that require network acceleration can be represented by specific service characteristics.
[0020] Based on this, as an example, in this step, identifying whether the currently received packet from the first subnet belongs to one of the applications that need network acceleration can be implemented as follows: check whether the information in the service characteristic field carried by the packet matches the specified service characteristics mentioned above. If so, determine that the packet belongs to one of the applications that need network acceleration; otherwise, determine that the packet does not belong to one of the applications that need network acceleration.
[0021] The specific configuration of the aforementioned specified business characteristics, and how to check whether the information in the business characteristic field carried by the message matches the aforementioned specified business characteristics, will be described with examples below, and will not be elaborated here.
[0022] Step 102: Prohibit the forwarding of the packet to the main network router. If the destination of the packet is a terminal in the first subnet, forward the packet directly to the destination of the packet. If the destination of the packet is a terminal in the second subnet, forward the packet to the ingress router in the second subnet.
[0023] In this embodiment, as an example, both the egress router and the ingress router in the above-described network architecture are connected to the same dedicated network line to achieve direct connectivity between any two routers. Based on this, in this embodiment, if the first egress router identifies that the currently received packet from the first subnet belongs to one of the applications requiring network acceleration, it can prohibit the forwarding of the packet to the main network router; and if the destination of the packet is a terminal in the first subnet, it directly forwards the packet to the destination; if the destination of the packet is a terminal in the second subnet, it forwards the packet to the ingress router in the second subnet, so that the ingress router in the second subnet, upon receiving the packet, directly forwards it to the destination.
[0024] Optionally, in this embodiment, the egress router in any subnet can also serve as the ingress router of that subnet; this is not specifically limited. Based on this, as an example, if the first egress router also serves as the ingress router of the first subnet, after receiving a message sent by the main network router or the egress router of any second subnet, the first egress router will forward the message to its destination.
[0025] Step 103: Forward the message to the main network router.
[0026] In this embodiment, if the first egress router recognizes that the currently received packet from the first subnet does not belong to any application that requires network acceleration, it will forward the packet to the main network router.
[0027] Based on this, as an example, after receiving the message, if the destination of the message is a terminal in the first subnet, the main network router forwards the message to the entry router in the first subnet so that the entry router of the first subnet can forward the message to the destination of the message; if the destination of the message is a terminal in the second subnet, the main network router forwards the message to the entry router in the second subnet so that the entry router of the second subnet can forward the message to the destination of the message.
[0028] This concludes the process. Figure 1 The process is shown below.
[0029] pass Figure 1 As can be seen from the process shown, in this embodiment of the application, under a network architecture that includes a main network and at least one subnet, after the egress router in any subnet receives a message sent by a connected terminal (i.e., a message from its own subnet), it identifies the application to which the message belongs based on the enabled network acceleration function. If the application to which the message belongs is one of the applications that requires network acceleration, it directly forwards the message to the corresponding destination via the egress router in the subnet, instead of the existing method which requires the main network router in the main network to forward the message. This fast message forwarding method without going through the main network router in this embodiment can minimize situations such as slow access between terminals and wasted bandwidth resources between local egress routers and the headquarters router.
[0030] The following describes the specific configuration of the specified service characteristics mentioned above, and how to check whether the information in the service characteristic field carried by the message matches the specified service characteristics: In this embodiment, as one example, the specified service characteristics may include at least one of the following information: specified source IP address, specified source port, specified destination IP address, specified destination port, specified transport layer protocol, specified application layer protocol type, specified application layer protocol ID, and specified DSCP value. Wherein, IP is an abbreviation for Internet Protocol; ID is an abbreviation for Identification; and DSCP is an abbreviation for Differentiated Services Code Point.
[0031] Based on this, as an example, the above-mentioned check of whether the information in the service characteristic field carried by the message matches the specified service characteristic may, in specific implementation, include: Check whether the information in at least one of the following service characteristic fields carried by the message—source IP address field, source port field, destination IP address field, destination port field, transport layer protocol field, application layer protocol type field, application layer protocol ID field, and DSCP field—corresponds to the information in the specified service characteristics configured above.
[0032] If yes, then it is determined that the information in the service characteristic field carried by the message matches the specified service characteristic mentioned above; otherwise, it is determined that the information in the service characteristic field carried by the message does not match the specified service characteristic mentioned above.
[0033] Optionally, in this embodiment, multiple sets of specified service characteristics can be configured in the first egress router. Each set of specified service characteristics may include at least one of the following: a specified source IP address, a specified source port, a specified destination IP address, a specified destination port, a specified transport layer protocol, a specified application layer protocol type, a specified application layer protocol ID, and a specified DSCP value. Different sets of specified service characteristics have different characteristics. The applications represented by different sets of specified service characteristics can be the same or different; this is not specifically limited. It should be noted that configuring multiple sets of specified service characteristics here can also be understood as configuring multiple sets of ACL rules for application identification; ACL is an abbreviation for Access Control List.
[0034] Based on this, in this embodiment, as an example, after receiving a packet from the first subnet, the first egress router can traverse each configured set of specified service features and check whether the information in the service feature field carried by the packet corresponds to the information in the currently traversed specified service feature. If so, it is determined that the packet belongs to the application represented by the currently traversed specified service feature; otherwise, it continues to traverse each configured set of specified service features. When the traversal is completed and no application to which the packet belongs has been identified, it can be determined that the packet does not belong to any application that requires network acceleration.
[0035] For example, suppose two sets of specified service characteristics are configured in the first egress router. The first set of specified service characteristics includes the following information: source IP address 1.1.1.1, source port 51234, destination IP address 1.1.1.2, destination port 445, DSCP value AF31, and transport layer protocol TCP; the second set of specified service characteristics includes the following information: source IP address 2.2.2.1, source port 12345, destination IP address 2.2.2.2, destination port 446, DSCP value AF21, and transport layer protocol TCP. The first set of specified service characteristics can represent application A, and the second set can represent application B. TCP is an abbreviation for Transmission Control Protocol.
[0036] When the first exit router receives a packet from the first subnet, if the service characteristic field carried by the packet includes: source IP address 1.1.1.1, source port 51234, destination IP address 1.1.1.2, destination port 445, DSCP value AF31, and transport layer protocol TCP, it can be determined that the packet corresponds to the information in the first set of specified service characteristics mentioned above. Therefore, the packet belongs to application A, meaning it belongs to one of the applications requiring network acceleration.
[0037] If the information in the service characteristic fields carried by the message includes: source IP address 3.3.3.1, source port 23451, destination IP address 3.3.3.2, destination port 789, DSCP value AF26, and transport layer protocol TCP, it can be seen that the message does not correspond to any of the above-mentioned specified service characteristics. In this case, it can be determined that the message does not belong to any application that requires network acceleration.
[0038] The above message transmission method will now be described from the perspective of the overall network architecture through a specific embodiment: As an example, see Figure 2 As shown, the message transmission method provided in this embodiment may include the following steps: Step 201: A terminal in the first subnet sends a message to the first exit router in the first subnet.
[0039] Step 202: After receiving the message sent by the terminal, the first egress router identifies whether the message belongs to one of the applications that need network acceleration based on the enabled network acceleration function. If yes, proceed to step 203; otherwise, proceed to step 206.
[0040] Step 203: The first egress router prohibits the forwarding of the packet to the main network router and checks whether the destination of the packet is a terminal in the first subnet. If yes, proceed to step 204; otherwise, proceed to step 205.
[0041] Step 204: The first egress router forwards the packet directly to the destination of the packet.
[0042] Step 205: Determine that the destination of the message is a terminal in the second subnet. The first egress router forwards the message to the ingress router in the second subnet, so that the ingress router in the second subnet can directly forward the message to the destination after receiving it.
[0043] Step 206: The first egress router forwards the packet to the main network router and continues to execute step 207.
[0044] Step 207: After receiving the message, if the destination of the message is a terminal in the first subnet, the main network router forwards the message to the ingress router in the first subnet, so that the ingress router in the first subnet can directly forward the message to the destination after receiving it; if the destination of the message is a terminal in the second subnet, the main network router forwards the message to the ingress router in the second subnet, so that the ingress router in the second subnet can directly forward the message to the destination after receiving it.
[0045] This concludes the process. Figure 2 The process is shown below.
[0046] To facilitate understanding of the specific implementation process of the above message transmission method, the following will further combine... Figure 3 The following examples are provided for illustration.
[0047] As an example, see Figure 3 The diagram illustrates a network architecture 300, which includes a main network 301, a first subnet 302, and a second subnet 303. The main network 301 includes a headquarters server and a main network router. The first subnet 302 includes an exit router 1 (e.g., the exit router in location A) and terminals 1 and 2 connected to it. The second subnet 303 includes an exit router 2 (e.g., the exit router in location B) and terminals 3 and 4 connected to it. Figure 3 In the network architecture shown, the exit router in any subnet can also serve as the entry router.
[0048] In this embodiment, under the above-described network architecture, terminals in different locations will access the headquarters server through their respective connected egress routers. There will also be mutual access between terminals in different locations. For example, terminal 1 in location A will send a file to terminal 2 in location A, or terminal 1 in location A will send a file to terminal 3 in location B, and so on.
[0049] In the scenario described above where terminals access each other, all communication between terminals goes through the main network router, which then forwards the packets to their destination (the destination terminal). For example, for communication between terminal 1 and terminal 2 in location A, the packet transmission path is: Terminal 1 in location A → Egress Router 1 → Main Network Router → Egress Router 1 → Terminal 2 in location A. Similarly, for communication between terminal 1 in location A and terminal 3 in location B, the packet transmission path is: Terminal 1 in location A → Egress Router 1 → Main Network Router → Egress Router 2 → Terminal 3 in location B. This can lead to issues such as slow inter-terminal access and wasted bandwidth resources between the main network router at headquarters and egress routers in various locations.
[0050] To address the aforementioned technical issues, this embodiment provides a message transmission method that eliminates the need for message forwarding via the main network router for each inter-terminal access, thereby minimizing slow access between terminals and the waste of bandwidth resources between the egress router and the main network router.
[0051] In this embodiment, as an example, see [example]. Figure 3 As shown, the message transmission method of this embodiment is described using the example of terminal 1 sending a message to terminal 2. The specific implementation process of this method is as follows: When terminal 1 sends a message to terminal 2, it first checks its local routing table to see if a detailed route matching the message exists. If no matching route exists, it retrieves a default route from the local routing table. This default route indicates that the next-hop device is the egress router 1 to which terminal 1 is connected, and the message is forwarded to egress router 1 according to this default route. If a matching route exists in the local routing table, it retrieves the matching route from the local routing table. This matching route indicates that the next-hop device is the egress router 1 to which terminal 1 is connected, and the message is forwarded to egress router 1 according to this detailed route.
[0052] When the outgoing router 1 receives a packet from terminal 1, it uses the enabled network acceleration function to determine whether the packet belongs to one of the applications requiring network acceleration. If the packet belongs to one of the applications requiring network acceleration, it can directly look up the detailed route matching the packet in its local routing table. The next-hop device indicated by this detailed route is the destination of the packet (i.e., terminal 2), and the packet is forwarded to terminal 2 according to this detailed route. If the packet does not belong to any application requiring network acceleration, it can be forwarded to the main network router.
[0053] When the main network router receives the message sent by the egress router 1, it will perform a specified security check on the message. After the check passes, it will look up the detailed route that matches the message in its local routing table. The next-hop device indicated by the detailed route is the egress router 1 connected to the destination of the message. The main network router will then forward the message to the egress router 1 according to the detailed route.
[0054] When the egress router 1 receives the packet forwarded by the main network router, it will look up the detailed route that matches the packet in its local routing table. The next hop device indicated by the detailed route is the destination of the packet (i.e., terminal 2), and the packet will be forwarded to terminal 2 according to the detailed route.
[0055] Based on this, after receiving the message sent by the egress router 1, terminal 2 will generate a response message for the message and return it to the egress router 1.
[0056] After receiving the response message from terminal 2, the outgoing router 1 will, based on the enabled network acceleration function, identify whether the response message belongs to one of the applications requiring network acceleration. If the response message belongs to one of the applications requiring network acceleration, it can directly look up the detailed route matching the response message in its local routing table. The next-hop device indicated by this detailed route is the destination of the response message (i.e., terminal 1), and the response message is forwarded to terminal 1 according to this detailed route. If the response message does not belong to any application requiring network acceleration, it can be forwarded to the main network router.
[0057] Similar to the way the main network router processes this message, after receiving the response message sent by the egress router 1, the main network router will perform a specified security check on the response message. After the check passes, it will look up the detailed route that matches the response message in its local routing table. The next-hop device indicated by the detailed route is the egress router 1 connected to the destination of the response message, and forward the response message to the egress router 1 according to the detailed route.
[0058] Similar to the processing method of the aforementioned egress router 1, after receiving the response message forwarded by the main network router, egress router 1 will look up the detailed route that matches the response message in its local routing table. The next-hop device indicated by the detailed route is the destination of the response message (i.e., terminal 1), and the response message will be forwarded to terminal 1 according to the detailed route.
[0059] It should be noted that the detailed routes and default routes mentioned in the above embodiments can be flexibly set in advance based on actual application needs. There are no specific limitations on this here. For details, please refer to the specific implementation of detailed routes and default routes in related technologies.
[0060] This completes the example of terminal 1 sending a message to terminal 2.
[0061] In this embodiment, as another embodiment, see [link to embodiment]. Figure 3 As shown, taking the example of terminal 1 sending a message to terminal 3, the message transmission method of this embodiment is described. The specific implementation process of this method is as follows: When terminal 1 sends a message to terminal 3, it first checks its local routing table to see if a detailed route matching the message exists. If no matching route exists, it retrieves a default route from the local routing table. This default route indicates that the next-hop device is the egress router 1 to which terminal 1 is connected, and the message is forwarded to egress router 1 according to this default route. If a matching route exists in the local routing table, it retrieves the matching route from the local routing table. This matching route indicates that the next-hop device is the egress router 1 to which terminal 1 is connected, and the message is forwarded to egress router 1 according to this detailed route.
[0062] When the egress router 1 receives a packet from terminal 1, it identifies whether the packet belongs to one of the applications requiring network acceleration, based on the enabled network acceleration function. If the packet belongs to one of the applications requiring network acceleration, it can directly look up the detailed route matching the packet in its local routing table. The next-hop device indicated by this detailed route is the egress router 2 connected to the destination of the packet (i.e., terminal 3), and the packet is forwarded to the egress router 2 according to this detailed route. If the packet does not belong to any application requiring network acceleration, it can be forwarded to the main network router.
[0063] When the main network router receives the message, it will perform a specified security check on the message. After the check passes, it will look up the detailed route that matches the message in its local routing table. The next-hop device indicated by the detailed route is the egress router 2 connected to the destination of the message. The router will then forward the message to the egress router 2 according to the detailed route.
[0064] When the egress router 2 receives the packet forwarded by the main network router or the egress router 1, it will look up the detailed route that matches the packet in its local routing table. The next hop device indicated by the detailed route is the destination of the packet (i.e., terminal 3), and the packet will be forwarded to terminal 3 according to the detailed route.
[0065] Based on this, after receiving the message sent by the egress router 2, terminal 3 will generate a response message for the message and return it to the egress router 2.
[0066] Upon receiving the response message, egress router 2 will, based on its enabled network acceleration function, identify whether the response message belongs to one of the applications requiring network acceleration. If the response message belongs to one of the applications requiring network acceleration, it can directly look up the detailed route matching the response message in its local routing table. The next-hop device indicated by this detailed route is egress router 1, which is connected to the destination of the response message (i.e., terminal 1), and the response message will be forwarded to egress router 1 according to this detailed route. If the response message does not belong to any application requiring network acceleration, it can be forwarded to the main network router.
[0067] Similar to the way the main network router processes this message, after receiving the response message sent by the egress router 2, the main network router will perform a specified security check on the response message. After the check passes, it will look up the detailed route that matches the response message in its local routing table. The next-hop device indicated by the detailed route is the egress router 1 connected to the destination of the response message, and forward the response message to the egress router 1 according to the detailed route.
[0068] Similar to the processing method of the aforementioned egress router 1, after receiving the response message of the message forwarded by the main network router or egress router 2, egress router 1 will look up the detailed route that matches the response message in its local routing table. The next-hop device indicated by the detailed route is the destination of the response message (i.e., terminal 1), and the response message will be forwarded to terminal 1 according to the detailed route.
[0069] This completes the example of terminal 1 sending a message to terminal 3.
[0070] The following describes the process of checking if a detailed route matching the packet exists in the local routing table: In this embodiment, as one example, the detailed route may at least include the destination IP address to which the packet is to be routed, and the IP address of the next-hop device. Based on this, the aforementioned check of whether a detailed route matching the packet exists in the local routing table can, in a specific implementation, be as follows: based on the destination IP address in the packet, find a detailed route in the local routing table that matches the destination IP address, and use this as the detailed route matching the packet. Here, "the destination IP address matches the destination IP address" can be understood as the destination IP address being the same.
[0071] The specific implementation of checking whether there is a detailed route in the local routing table that matches the response message is similar to the above-mentioned method of checking whether there is a detailed route in the local routing table that matches the message, and will not be repeated here.
[0072] This concludes the description of the method provided in the embodiments of this application. The apparatus provided in the embodiments of this application will now be described: As an example, this embodiment also provides a message transmission device. For example, see... Figure 4 , Figure 4 This is a schematic diagram of a message transmission device provided in an embodiment of this application. The device corresponds to… Figure 1 The method flow is shown below. Figure 4 As shown, the message transmission device 400 is applied to a first egress router in a first subnet of a network architecture. The first egress router has network acceleration enabled, and the network acceleration function is associated with applications that require network acceleration. The network architecture also includes a main network and at least one second subnet other than the first subnet. The first egress router and the second egress routers in each of the second subnets are all connected to the main network router in the main network. The message transmission device 400 includes: The identification module 401 is used to: identify whether the currently received packet from the first subnet belongs to one of the applications that need network acceleration, based on the enabled network acceleration function; The transmission module 402 is configured to: if yes, prohibit forwarding the message to the main network router, and if the destination of the message is a terminal in the first subnet, directly forward the message to the destination of the message; if the destination of the message is a terminal in the second subnet, forward the message to the ingress router in the second subnet; otherwise, forward the message to the main network router.
[0073] As one example, the applications that require network acceleration associated with the network acceleration function are represented by specified service characteristics; The identification module 401 is further used for: Check whether the information in the service characteristic field carried by the message matches the specified service characteristic. If yes, determine that the message belongs to one of the applications that need network acceleration; otherwise, determine that the message does not belong to one of the applications that need network acceleration.
[0074] As an example, the specified service feature includes at least one of the following information: specified source Internet Protocol IP address, specified source port, specified destination IP address, specified destination port, specified transport layer protocol, specified application layer protocol type, specified application layer protocol identifier ID, and specified differential service code point (DSCP) value. The step of checking whether the information in the service characteristic field carried by the message matches the specified service characteristic includes: Check whether the information in at least one of the following service characteristic fields carried in the message—source IP address field, source port field, destination IP address field, destination port field, transport layer protocol field, application layer protocol type field, application layer protocol ID field, and DSCP field—corresponds to the information in the specified service characteristic. If yes, then it is determined that the information in the service feature field carried by the message matches the specified service feature; otherwise, it is determined that the information in the service feature field carried by the message does not match the specified service feature.
[0075] As one embodiment, the first egress router also serves as the ingress router for the first subnet; the device further includes: The receiving module is configured to: receive a message sent by the main network router or the egress router in any second subnet, and forward the message to the destination of the message.
[0076] As an example, the egress router and ingress router in the network architecture are both connected to the same dedicated network line to enable direct connectivity between any two routers.
[0077] This concludes the process. Figure 4 Structural description of the device shown.
[0078] The specific implementation process of the functions and roles of each module in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.
[0079] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this application according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0080] Please see Figure 5 This is a schematic diagram of the hardware structure of an electronic device provided as an exemplary embodiment of this application. The electronic device includes a processor and a computer-readable storage medium; the computer-readable storage medium stores a plurality of computer program instructions, which, when executed by the processor, implement the method disclosed in the above example of this application. Depending on the actual function of the electronic device, other hardware may also be included, which will not be elaborated further.
[0081] Based on the same concept as the above method, this application also provides a computer-readable storage medium storing a plurality of computer program instructions, which, when executed by a processor, can implement the method disclosed in the above examples of this application.
[0082] For example, the aforementioned computer-readable storage medium can be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, messages, etc. For instance, computer-readable storage media can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drives (such as hard disk drives), solid-state drives, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or combinations thereof.
[0083] The above are merely preferred embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A message transmission method, characterized in that, The method is applied to the first egress router in the first subnet of the network architecture. The first egress router has enabled the network acceleration function, which is associated with the application that needs to be accelerated. The network architecture also includes a main network and at least one second subnet other than the first subnet. The first egress router and the second egress routers in each second subnet are all connected to the main network router in the main network. The method includes: Based on the enabled network acceleration function, identify whether the currently received packet from the first subnet belongs to one of the applications that require network acceleration; If so, then forwarding the packet to the main network router is prohibited, and when the destination of the packet is a terminal in the first subnet, the packet is forwarded directly to the destination of the packet; when the destination of the packet is a terminal in the second subnet, the packet is forwarded to the ingress router in the second subnet. If not, the message is forwarded to the main network router.
2. The method according to claim 1, characterized in that, The applications that require network acceleration associated with the network acceleration function are represented by specified business characteristics. The step of identifying whether the currently received packet from the first subnet belongs to one of the applications requiring network acceleration includes: Check whether the information in the service characteristic field carried by the message matches the specified service characteristic. If yes, determine that the message belongs to one of the applications that need network acceleration; otherwise, determine that the message does not belong to one of the applications that need network acceleration.
3. The method according to claim 2, characterized in that, The specified service characteristics include at least one of the following: specified source Internet Protocol IP address, specified source port, specified destination IP address, specified destination port, specified transport layer protocol, specified application layer protocol type, specified application layer protocol identifier ID, and specified differential service code point (DSCP) value. The step of checking whether the information in the service characteristic field carried by the message matches the specified service characteristic includes: Check whether the information in at least one of the following service characteristic fields carried in the message—source IP address field, source port field, destination IP address field, destination port field, transport layer protocol field, application layer protocol type field, application layer protocol ID field, and DSCP field—corresponds to the information in the specified service characteristic. If yes, then it is determined that the information in the service feature field carried by the message matches the specified service feature; otherwise, it is determined that the information in the service feature field carried by the message does not match the specified service feature.
4. The method according to claim 1, characterized in that, The first egress router also serves as the ingress router for the first subnet; the method further includes: Receives a message sent by the main network router or the exit router in any second subnet, and forwards the message to the destination of the message.
5. The method according to claim 1, characterized in that, In the aforementioned network architecture, both the egress router and the ingress router are connected to the same dedicated network line to enable direct connectivity between any two routers.
6. A message transmission device, characterized in that, The device is applied to the first egress router in the first subnet of the network architecture. The first egress router has network acceleration enabled, and the network acceleration function is associated with the application that needs network acceleration. The network architecture also includes a main network and at least one second subnet other than the first subnet. The first egress router and the second egress routers in each second subnet are all connected to the main network router in the main network. The device includes: The identification module is used to identify, based on the enabled network acceleration function, whether the currently received packet from the first subnet belongs to one of the applications that require network acceleration. The transmission module is configured to: if yes, prohibit forwarding the message to the main network router, and if the destination of the message is a terminal in the first subnet, directly forward the message to the destination of the message; if the destination of the message is a terminal in the second subnet, forward the message to the ingress router in the second subnet; otherwise, forward the message to the main network router.
7. The apparatus according to claim 6, characterized in that, The applications that require network acceleration associated with the network acceleration function are represented by specified business characteristics. The identification module is further used for: Check whether the information in the service characteristic field carried by the message matches the specified service characteristic. If yes, determine that the message belongs to one of the applications that need network acceleration; otherwise, determine that the message does not belong to one of the applications that need network acceleration. And / or, The specified service characteristics include at least one of the following: specified source Internet Protocol IP address, specified source port, specified destination IP address, specified destination port, specified transport layer protocol, specified application layer protocol type, specified application layer protocol identifier ID, and specified differential service code point (DSCP) value. The step of checking whether the information in the service characteristic field carried by the message matches the specified service characteristic includes: Check whether the information in at least one of the following service characteristic fields carried in the message—source IP address field, source port field, destination IP address field, destination port field, transport layer protocol field, application layer protocol type field, application layer protocol ID field, and DSCP field—corresponds to the information in the specified service characteristic. If yes, then it is determined that the information in the service feature field carried by the message matches the specified service feature; otherwise, it is determined that the information in the service feature field carried by the message does not match the specified service feature.
8. The apparatus according to claim 6, characterized in that, The first egress router also serves as the ingress router for the first subnet; the device further includes: The receiving module is configured to: receive a message sent by the main network router or the egress router in any second subnet, and forward the message to the destination of the message; And / or, In the aforementioned network architecture, both the egress router and the ingress router are connected to the same dedicated network line to enable direct connectivity between any two routers.
9. An electronic device, characterized in that, The electronic device includes: Processor; and A computer-readable storage medium storing computer program instructions that, when executed by the processor, cause the processor to perform the steps of the method according to any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions that, when executed by a processor, cause the processor to perform the steps of the method as described in any one of claims 1 to 5.