Message transmission method, device, electronic device and computer-readable storage medium
By obtaining and issuing the maximum transmission unit information of each link in the transmission path, the problem of packet loss in the SRv6 network is solved, and efficient packet encapsulation and forwarding is achieved.
Patent Information
- Application Number
- CN202111345335.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-15
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2041-11-15
AI Technical Summary
In SRv6 network, the source node cannot obtain the path MTU information, resulting in packet loss for too long, or packet loss is too small, affecting forwarding performance.
By obtaining the maximum transmission unit information of each link in the transmission path, the maximum transmission unit information of the path is determined and sent to the source node so that the source node can encapsulate the packet.
It avoids packet loss caused by too long messages, and at the same time, it avoids too small messages affecting forwarding performance, and improves packet packaging efficiency.
Smart Images

Figure CN116155789B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data communication technology, and in particular to a message transmission method, device, electronic device, and computer-readable storage medium. Background Art
[0002] The IPv6 (Internet Protocol Version 6) standard protocol stipulates that IPv6 packets are usually fragmented at the source device and cannot be fragmented in intermediate node devices. If the length of the packet to be forwarded received by the intermediate node device exceeds the MTU (Maximum Transmission Unit) value of its own interface, the packet will be discarded.
[0003] Currently, in SRv6 (Segment Routing IPv6, a combination of SR and IPv6 network technologies), there is no mechanism for negotiating SRv6 tunnel path information. Therefore, source nodes cannot obtain the path's MTU (Path Maximum Transmission Unit), or PMTU. During SRv6 packet forwarding, if a packet is too long and exceeds the MTU of an intermediate node, packet loss will occur. If the packet is too small, forwarding performance will be affected.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute prior art known to ordinary technicians in the field. Summary of the Invention
[0005] The present disclosure provides a message transmission method, device, electronic device and computer-readable storage medium, which at least to a certain extent overcome the technical problem that packet loss may occur in the message forwarding solutions provided in the related art.
[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by practice of the present disclosure.
[0007] According to one aspect of the present disclosure, there is provided a network communication method, comprising:
[0008] Acquire maximum transmission unit information of each link in a transmission path, wherein the transmission path includes: multiple links from a source node to a destination node;
[0009] Determining path maximum transmission unit information of the transmission path according to maximum transmission unit information of each link in the transmission path, wherein the path maximum transmission unit length of the transmission path is the minimum maximum transmission unit length of each link;
[0010] The path maximum transmission unit information of the transmission path is sent to the source node; wherein the source node encapsulates the message according to the path maximum transmission unit information and sends it to the target node through the transmission path.
[0011] In one embodiment of the present disclosure, before obtaining the maximum transmission unit information of each link in the transmission path, the method includes:
[0012] Locate the source node and the target node in the network according to their node identifiers;
[0013] According to the positions of the source node and the target node in the network, a transmission path from the source node to the target node is determined.
[0014] In one embodiment of the present disclosure, obtaining maximum transmission unit information of each link in the transmission path includes:
[0015] Send a maximum transmission unit request to each node according to the node identifier of each node;
[0016] Receive the maximum transmission unit information returned by each node according to the longest transmission unit request.
[0017] In one embodiment of the present disclosure, sending the path maximum transmission unit information of the transmission path to the source node includes:
[0018] According to the position of the source node in the network, the path maximum transmission unit information of the transmission path is sent to the source node.
[0019] In one embodiment of the present disclosure, sending the path maximum transmission unit information of the transmission path to the source node includes:
[0020] Based on a path computation unit communication protocol, the path maximum transmission unit information of the transmission path is sent to the source node.
[0021] In one embodiment of the present disclosure, the acquiring of node identifiers of a source node and a destination node in the network and the acquiring of maximum transmission unit information of each link in the transmission path are acquired based on BGP-LS collection.
[0022] In one embodiment of the present disclosure, the network is an SRv6 network.
[0023] According to another aspect of the present disclosure, there is also provided a message transmission device, comprising:
[0024] A maximum transmission unit information acquisition module is configured to acquire maximum transmission unit information of each link in a transmission path, wherein the transmission path includes: multiple links from a source node to a destination node;
[0025] a path maximum transmission unit information determining module, configured to determine path maximum transmission unit information of the transmission path based on maximum transmission unit information of each link in the transmission path, wherein the path maximum transmission unit length of the transmission path is the minimum maximum transmission unit length among the links;
[0026] The path maximum transmission unit information sending module sends the path maximum transmission unit information of the transmission path to the source node; wherein the source node encapsulates the message according to the path maximum transmission unit information and sends it to the target node through the transmission path.
[0027] According to another aspect of the present disclosure, there is also provided an electronic device, including:
[0028] Memory; and
[0029] A processor coupled to the memory, the processor being configured to execute any one of the above-mentioned message transmission methods based on instructions stored in the memory.
[0030] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a program is stored. When the program is executed by a processor, any one of the above-mentioned message transmission methods is implemented.
[0031] The message transmission method, device, electronic device, and computer-readable storage medium provided by the embodiments of the present disclosure obtain node identifiers of a source node and a target node in a network; determine a transmission path from the source node to the target node based on the node identifiers of the source node and the target node, wherein the transmission path includes: multiple links; obtain maximum transmission unit information of each link in the transmission path; determine path maximum transmission unit information of the transmission path based on the maximum transmission unit information of each link in the transmission path, wherein the path maximum transmission unit length of the transmission path is the minimum maximum transmission unit length of each link; send the path maximum transmission unit information of the transmission path to the source node; wherein the source node encapsulates the message based on the path maximum transmission unit information and sends it to the target node via the transmission path. The embodiments of the present disclosure can avoid the problem of packet loss caused by excessively long messages and improve message encapsulation efficiency.
[0032] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and those skilled in the art can derive other drawings based on these drawings without inventive effort.
[0034] Figure 1 A flow chart of a message transmission method according to an embodiment of the present disclosure is shown;
[0035] Figure 2 A flow chart of a method for determining a transmission path from a source node to a target node according to an embodiment of the present disclosure is shown;
[0036] Figure 3 A flow chart of a method for obtaining maximum transmission unit information of each link in a transmission path according to an embodiment of the present disclosure is shown;
[0037] Figure 4 A flow chart of a method for sending path maximum transmission unit information of a transmission path to a source node according to an embodiment of the present disclosure is shown;
[0038] Figure 5 A flow chart of another method for sending path maximum transmission unit information of a transmission path to a source node in an embodiment of the present disclosure is shown;
[0039] Figure 6 A schematic diagram of a message transmission device according to an embodiment of the present disclosure is shown;
[0040] Figure 7 A flow chart of another message transmission method according to an embodiment of the present disclosure is shown;
[0041] Figure 8 A schematic diagram of a message transmission method according to an embodiment of the present disclosure is shown;
[0042] Figure 9 A schematic diagram of a data transmission format based on a path computation unit communication protocol in an embodiment of the present disclosure is shown;
[0043] Figure 10 A structural block diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0044] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0045] In addition, the accompanying drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. Identical reference numerals in the figures denote identical or similar parts, and thus repetitive descriptions thereof will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0046] For ease of understanding, several terms involved in this disclosure are explained below:
[0047] IPv6: The full name is Internet Protocol Version 6, which is the next-generation IP protocol designed by the Internet Engineering Task Force to replace IPv4.
[0048] SRv6: Segment Routing IPv6, a combination of SR and IPv6 network technologies.
[0049] Segment ID: A special IPv6 address that uniquely identifies each segment in SRv6. It has both the routing capabilities of a common IPv6 address and the unique behavioral capabilities of SRv6.
[0050] MTU: The full name is Maximum Transmission Unit, which is used to inform the other party of the maximum size of the data service unit that can be accepted, indicating the payload size that the sender can accept.
[0051] PMTU: Path Maximum Transmission Unit, a technology that dynamically discovers the maximum transmission unit of any path on the Internet.
[0052] This exemplary implementation is described in detail below with reference to the accompanying drawings and examples.
[0053] An embodiment of the present disclosure provides a message transmission method, which can be executed by any electronic device with computing and processing capabilities.
[0054] Figure 1 A flow chart of a message transmission method according to an embodiment of the present disclosure is shown as follows: Figure 1 As shown, the message transmission method provided in the embodiment of the present disclosure includes the following steps:
[0055] Step S102: Acquire maximum transmission unit information of each link in a transmission path, wherein the transmission path includes: multiple links from a source node to a destination node;
[0056] Step S104, determining the path maximum transmission unit information of the transmission path according to the maximum transmission unit information of each link in the transmission path, wherein the path maximum transmission unit length of the transmission path is the minimum maximum transmission unit length of each link;
[0057] Step S106 : Send the path maximum transmission unit information of the transmission path to the source node; wherein the source node encapsulates the message according to the path maximum transmission unit information and sends it to the target node through the transmission path.
[0058] It should be noted that the above network can be but is not limited to an SRv6 network. The embodiments of the present disclosure are introduced using the SRv6 network as an example. The SRv6 network issues a node identifier (SID) to each node. The node identifier (SID) is a special IPv6 address. Based on the node identifiers of the source node and the destination node, the transmission path from the source node to the destination node is determined, and the maximum transmission unit (MTU) information of each link in the transmission path is obtained. Based on the MTU information of each link in the transmission path, the path MTU information of the transmission path is determined. The path MTU length of the transmission path is the minimum MTU length of each link. For example, the transmission path includes link 1, link 2, and link N. The MTU length of link 1 is 600, the MTU length of link 2 is 500, and the MTU length of link N is 800. The path MTU length of the transmission path is 500. The path MTU information of the transmission path is issued to the source node. The source node encapsulates the message according to the data transmission format of the path computation unit communication protocol based on the path MTU information and sends it to the destination node through the transmission path. Through the above embodiment, the source node encapsulates the message according to the path MTU information, which can avoid the problem of packet loss caused by excessive message length and the problem of poor forwarding performance caused by excessive message size.
[0059] In one embodiment of the present disclosure, Figure 2 A flow chart of a method for determining a transmission path from a source node to a target node in an embodiment of the present disclosure is shown. Figure 2 As shown, before obtaining the maximum transmission unit information of each link in the transmission path, the method for determining the transmission path from the source node to the target node can be implemented by the following steps:
[0060] Step S202: locating the source node and the target node in the network according to the node identifiers of the source node and the target node;
[0061] Step S204, determining a transmission path from the source node to the target node based on the locations of the source node and the target node in the network;
[0062] It should be noted that the network is an SRv6 network, and the network issues node identifiers to each node. The controller collects node identifiers in the network through BGP-LS, obtains the node identifiers of the source node and the target node, and locates the position of the source node and the target node in the network based on the node identifiers of the source node and the target node; deploys VPN services between the source node and the target node, determines the transmission path from the source node to the target node based on the VPN service policy, and then obtains the maximum transmission unit information of each link in the transmission path; through the above embodiment, the transmission path can be quickly determined through the node identifiers of the source node and the target node.
[0063] In one embodiment of the present disclosure, Figure 3 A flow chart of a method for obtaining maximum transmission unit information of each link in a transmission path according to an embodiment of the present disclosure is shown. Figure 3 As shown, the above step S102 can be implemented by the following steps:
[0064] Step S302, sending a longest transmission unit request to each node according to the node identifier of each node;
[0065] Step S304: Receive maximum transmission unit information returned by each node according to the longest transmission unit request.
[0066] It should be noted that the network sends each node identifier to each node, the controller collects each node identifier in the network through BGP-LS, obtains the node identifier in the above-mentioned determined transmission path, and sends a maximum transmission unit request to each node based on the node identifier of each node; each node returns the maximum transmission unit information based on the longest transmission unit request; based on the maximum transmission unit information returned by each node, the maximum transmission unit information of each link in the transmission path is determined; through the above embodiment, the maximum transmission unit information of each link in the transmission path can be determined.
[0067] In one embodiment of the present disclosure, Figure 4 A flow chart of a method for sending the maximum transmission unit information of a transmission path to a source node in an embodiment of the present disclosure is shown. Figure 4 As shown, according to the location of the source node in the network, sending the path maximum transmission unit information of the transmission path to the source node can be achieved by the following steps:
[0068] Step S402, obtaining the node identifier of the source node;
[0069] Step S404: locating the source node in the network according to the node identifier of the source node;
[0070] Step S406: Send the path maximum transmission unit information of the transmission path to the source node.
[0071] It should be noted that the network sends a node identifier to each node. The controller collects the node identifier of each node in the network through BGP-LS, obtains the node identifier of the source node, locates the position of the source node in the network based on the node identifier of the source node, and sends the path maximum transmission unit information of the transmission path to the source node; the source node encapsulates the message according to the data transmission format of the path calculation unit communication protocol based on the path maximum transmission unit information, and sends it to the destination node through the transmission path.
[0072] In one embodiment of the present disclosure, Figure 5 A flow chart of another method for sending the maximum transmission unit information of the transmission path to the source node in an embodiment of the present disclosure is shown. Figure 5 As shown, based on the path computation unit communication protocol, sending the path maximum transmission unit information of the transmission path to the source node can be achieved by the following steps:
[0073] Step S502: The path computation unit communication protocol sends data transmission format data;
[0074] Step S504: Based on the data transmission format data of the path computation unit communication protocol, the path maximum transmission unit information of the transmission path is sent to the source node.
[0075] It should be noted that the path computation unit communication protocol is the PCEP protocol, and the data transmission format based on the path computation unit communication protocol includes Type (TBD), Length, Reserved, and Path MTU. Path MTU represents the minimum value of the maximum transmission unit information of each link in the transmission path calculated by the path computation unit communication protocol. Type (TBD) is the path maximum transmission unit type, for example, the type value is defined as A1. Length is the path maximum transmission unit length field. Reserved indicates the path maximum transmission unit status. The path maximum transmission unit is determined based on the maximum transmission units of each link in the transmission path, and the information is sent to the source node in the data transmission format of the path computation unit communication protocol, carrying the path maximum transmission unit information. The source node encapsulates the message based on the path maximum transmission unit, thereby ensuring that the maximum transmission unit information of any link is not exceeded during message forwarding. Through the above embodiment, the path maximum transmission unit information can be sent to the source node in the data transmission format of the path computation unit communication protocol, thereby ensuring transmission accuracy.
[0076] Based on the same inventive concept, the present disclosure also provides a message transmission device, such as the following embodiment. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.
[0077] Figure 6 A schematic diagram of a message transmission device according to an embodiment of the present disclosure is shown. Figure 6 As shown, the message transmission device 6 includes: a maximum transmission unit information acquisition module 61, a path maximum transmission unit information determination module 62 and a path maximum transmission unit information sending module 63;
[0078] The maximum transmission unit information acquisition module 61 obtains the maximum transmission unit information of each link in the transmission path; the maximum transmission unit information acquisition module 61 is also used to send a maximum transmission unit request to each node based on the node identification of each node; receive the maximum transmission unit information returned by each node based on the maximum transmission unit request; and determine the maximum transmission unit information of each link in the transmission path based on the maximum transmission unit information returned by each node.
[0079] A path maximum transmission unit information determining module 62 determines the path maximum transmission unit information of the transmission path based on the maximum transmission unit information of each link in the transmission path, wherein the path maximum transmission unit length of the transmission path is the minimum maximum transmission unit length of each link;
[0080] Path MTU information sending module 63 is configured to obtain the node identifier of the source node; locate the source node in the network based on the source node identifier; and send the path MTU information of the transmission path to the source node. Path MTU information sending module 65 is also configured to obtain the Path Computation Unit (PCU) communication protocol used by the source node; and send the path MTU information of the transmission path to the source node according to the data transmission format of the PCU communication protocol.
[0081] Figure 7 FIG. 1 shows another flow chart of a message transmission method according to an embodiment of the present disclosure; FIG. Figure 7 As shown, the message transmission method provided in the embodiment of the present disclosure may include the following steps:
[0082] Step S702: Each node in the network announces its generated node identification and routing information. PE1 is the source node of the network, PE2 is the target node of the network, and VPN services are deployed between the source node and the target node.
[0083] Step S704: The controller collects information about the identifiers of nodes and maximum transmission units of links in the network through BGP-LS.
[0084] Step S706: The controller determines a transmission path from the source node to the destination node based on the VPN service policy, and generates path maximum transmission unit information based on the maximum transmission unit information of each link on the transmission path;
[0085] Step S708: The controller sends the determined transmission path information and path maximum transmission unit information to the source node through the PCEP protocol;
[0086] In step S710, the source node encapsulates the message according to the path maximum transmission unit, thereby ensuring that the maximum transmission unit information of any link will not be exceeded during the message forwarding process.
[0087] Figure 8 A schematic diagram of a message transmission method according to an embodiment of the present disclosure is shown; Figure 8 As shown in the figure, the network is an SRv6 network; each node in the network announces its own generated node identifier and routing information, such as PE1 is the source node of the network, PE2 is the destination node of the network, and P1 and P2 are intermediate nodes of the network; VPN services are deployed between the source node and the destination node; the controller collects the identifiers of each node and the maximum transmission unit information of each link in the network through BGP-LS; based on the VPN service policy, the controller determines the transmission path from the source node to the destination node, and generates the path maximum transmission unit information based on the maximum transmission unit information of each link on the transmission path; the controller sends the determined transmission path information and path maximum transmission unit information to the source node through the PCEP protocol; the source node encapsulates the message according to the path maximum transmission unit, thereby ensuring that the maximum transmission unit information of any link is not exceeded during message forwarding.
[0088] Figure 9 FIG. 1 shows a schematic diagram of a data transmission format based on a path computation unit communication protocol according to an embodiment of the present disclosure; FIG. Figure 9 As shown, the data transmission format based on the Path Computation Unit (PCU) communication protocol includes Type (TBD), Length, Reserved, and Path MTU. Path MTU represents the minimum value of the maximum transmission unit (MTU) information of each link in the transmission path calculated by the PCU communication protocol. Type (TBD) is the path MTU type, for example, the type value is defined as A1. Length is the path MTU length field. Reserved indicates the path MTU status. The path MTU is determined based on the MTUs of each link in the transmission path, and the information carrying the path MTU information is sent to the source node in the data transmission format of the PCU communication protocol. The source node encapsulates the message based on the MTU to ensure that the MTU information of any link is not exceeded during message forwarding.
[0089] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods, or program products. Therefore, various aspects of the present disclosure may be implemented in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as "circuits," "modules," or "systems."
[0090] Refer to the following Figure 10 1000 according to this embodiment of the present disclosure will be described. Figure 10 The electronic device 1000 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0091] like Figure 10 As shown, electronic device 1000 is implemented as a general-purpose computing device. Components of electronic device 1000 may include, but are not limited to, the aforementioned at least one processing unit 1010, the aforementioned at least one storage unit 1020, and a bus 1030 connecting various system components (including storage unit 1020 and processing unit 1010).
[0092] The storage unit stores program code, and the program code can be executed by the processing unit 1010, so that the processing unit 1010 performs the steps described in the "Exemplary Method" section of this specification according to various exemplary embodiments of the present disclosure. For example, the maximum transmission unit information of each link in the transmission path is obtained, and the transmission path includes: multiple links from the source node to the target node; based on the maximum transmission unit information of each link in the transmission path, the path maximum transmission unit information of the transmission path is determined, and the path maximum transmission unit length of the transmission path is the minimum maximum transmission unit length of each link; the path maximum transmission unit information of the transmission path is sent to the source node; the source node encapsulates the message according to the path maximum transmission unit information and sends it to the target node through the transmission path.
[0093] The storage unit 1020 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 10201 and / or a cache memory unit 10202 , and may further include a read-only memory unit (ROM) 10203 .
[0094] The storage unit 1020 may also include a program / utility 10204 having a set (at least one) of program modules 10205, such program modules 10205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0095] Bus 1030 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0096] The electronic device 1000 may also communicate with one or more external devices 1040 (e.g., a keyboard, a pointing device, a Bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 1000, and / or any device that enables the electronic device 1000 to communicate with one or more other computing devices (e.g., a router, a modem, etc.). Such communication may occur via an input / output (I / O) interface 1050. Furthermore, the electronic device 1000 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via a network adapter 1060. As shown, the network adapter 1060 communicates with other modules of the electronic device 1000 via the bus 1030. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1000, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0097] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
[0098] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided. The computer-readable storage medium may be a readable signal medium or a readable storage medium. A program product capable of implementing the above-mentioned method of the present disclosure is stored thereon. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code. When the program product is executed on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the "Exemplary Methods" section above of this specification.
[0099] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fibers, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0100] In the present disclosure, a computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, which carries readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0101] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.
[0102] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, and the like, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0103] It should be noted that although several modules or units of the device for action execution are mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.
[0104] Furthermore, although the steps of the method of the present disclosure are described in a particular order in the accompanying drawings, this does not require or imply that the steps must be performed in this particular order, or that all steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0105] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
[0106] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the appended claims.
Claims
1. A message transmission method, characterized in that: include: Acquire maximum transmission unit information of each link in a transmission path, wherein the transmission path includes: multiple links from a source node to a destination node; Determining path maximum transmission unit information of the transmission path according to maximum transmission unit information of each link in the transmission path, wherein the path maximum transmission unit length of the transmission path is the minimum maximum transmission unit length of each link; Based on a data transmission format of a path computation unit communication protocol, the path maximum transmission unit information of the transmission path is sent to the source node; wherein the source node encapsulates a message according to the path maximum transmission unit information and sends the message to the destination node via the transmission path; the data transmission format of the path computation unit communication protocol includes: a minimum value of the maximum transmission unit information of each link in the transmission path calculated by the path computation unit communication protocol, a path maximum transmission unit type, a path maximum transmission unit length field, and a path maximum transmission unit status; The acquiring of maximum transmission unit information of each link in the transmission path includes: Send a maximum transmission unit request to each node according to the node identifier of each node; The maximum transmission unit information returned by each node in accordance with the longest transmission unit request in the data transmission format of the path calculation unit communication protocol is received.
2. The message transmission method according to claim 1, wherein: Before obtaining the maximum transmission unit information of each link in the transmission path, the method includes: Locate the source node and the target node in the network according to their node identifiers; According to the positions of the source node and the target node in the network, a transmission path from the source node to the target node is determined.
3. The message transmission method according to claim 1, wherein: The sending the path maximum transmission unit information of the transmission path to the source node includes: According to the position of the source node in the network, the path maximum transmission unit information of the transmission path is sent to the source node.
4. The message transmission method according to claim 1, wherein: The node identifiers of the source node and the target node in the network are obtained and the maximum transmission unit information of each link in the transmission path is obtained based on BGP-LS collection.
5. The message transmission method according to any one of claims 2 to 3, characterized in that: The network is an SRv6 network.
6. A message transmission device, characterized in that: include: A maximum transmission unit information acquisition module is configured to acquire maximum transmission unit information of each link in a transmission path, wherein the transmission path includes: multiple links from a source node to a destination node; a path maximum transmission unit information determination module, configured to determine path maximum transmission unit information of the transmission path based on maximum transmission unit information of each link in the transmission path, wherein the path maximum transmission unit length of the transmission path is the minimum maximum transmission unit length of each link; a path maximum transmission unit information sending module configured to send the path maximum transmission unit information of the transmission path to the source node based on a data transmission format of a path computation unit communication protocol; wherein the source node encapsulates a message according to the path maximum transmission unit information and sends it to the destination node via the transmission path; the data transmission format of the path computation unit communication protocol includes: a minimum value of the maximum transmission unit information of each link in the transmission path calculated by the path computation unit communication protocol, a path maximum transmission unit type, a path maximum transmission unit length field, and a path maximum transmission unit status; The maximum transmission unit information acquisition module is configured to send a maximum transmission unit request to each node according to the node identifier of each node; and receive the maximum transmission unit information returned by each node according to the maximum transmission unit request in the data transmission format of the path calculation unit communication protocol.
7. An electronic device, characterized in that: include: Memory; as well as A processor coupled to the memory, the processor being configured to execute the message transmission method according to any one of claims 1 to 5 based on instructions stored in the memory.
8. A computer-readable storage medium having a program stored thereon, wherein when the program is executed by a processor, the message transmission method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Data transmission processing method and device, network equipment and readable storage medium
CN112333094A