CN114157601B - Message transmission method, device and storage medium - Google Patents

Message transmission method, device and storage medium Download PDF

Info

Publication number
CN114157601B
CN114157601B CN202111439001.2A CN202111439001A CN114157601B CN 114157601 B CN114157601 B CN 114157601B CN 202111439001 A CN202111439001 A CN 202111439001A CN 114157601 B CN114157601 B CN 114157601B
Authority
CN
China
Prior art keywords
message
node device
simplified
node
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111439001.2A
Other languages
Chinese (zh)
Other versions
CN114157601A (en
Inventor
何涛
张帅
曹畅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202111439001.2A priority Critical patent/CN114157601B/en
Publication of CN114157601A publication Critical patent/CN114157601A/en
Application granted granted Critical
Publication of CN114157601B publication Critical patent/CN114157601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/34Source routing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides a message transmission method, a message transmission device and a storage medium, relates to the technical field of communication, and is used for solving the problem of low message transmission efficiency in the prior art. The method comprises the following steps: and obtaining a simplified identifier of the second node equipment for transmitting the initial message, wherein the byte length of the simplified identifier is smaller than that of the initial identifier of the second node equipment, then obtaining a destination address corresponding to the simplified identifier of the second node equipment, generating a target message, and then sending the target message to the second node equipment according to the destination address. Therefore, the byte length of the message header of the initial message can be effectively shortened, and the message transmission efficiency is improved.

Description

Message transmission method, device and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and apparatus for transmitting a message, and a storage medium.
Background
In a sixth version of internet protocol based segment routing (segment routing Internet Protocol version, srv 6) network, a segment routing header (segment routing header, SRH) needs to be carried in a header of a SRv packet transmitted, where the SRH includes a Segment List (SL) that is a path sequence consisting of segment identifiers (segment identifier, SID) of the nodes on the packet forwarding path. Wherein each SID has a standard byte length of 128 bits (bits).
However, since the length of the SRH increases by 128 bits for every SID added to the SL, the length of the message also increases by 128 bits. When the forwarding path is too long, the length of the message header byte of the SRv6 message is too long, so that the transmission efficiency of the message information is reduced. When the message length exceeds the network maximum transmission unit (maximum transmission unit, MTU), no message transmission is possible.
Disclosure of Invention
The application provides a message transmission method, a message transmission device and a storage medium, which are used for improving the efficiency of message transmission.
In order to achieve the above purpose, the present application adopts the following technical scheme:
in a first aspect, a method for transmitting a message is provided, including: and obtaining a simplified identifier of the second node equipment for transmitting the initial message, wherein the byte length of the simplified identifier is smaller than that of the initial identifier of the second node equipment, then obtaining a destination address corresponding to the simplified identifier of the second node equipment, generating a target message, and then sending the target message to the second node equipment according to the destination address.
Optionally, the method for obtaining the simplified identifier of the second node device for transmitting the initial message specifically includes: sending a first request message to a server; the first request message is used for requesting to acquire an index relation between node equipment and a simplified identifier, which is pre-established by the server; receiving an index relation sent by a server; and reading the index relation and determining the simplified identification corresponding to the second node equipment.
Optionally, the method for obtaining the simplified identifier of the second node device for transmitting the initial message specifically includes: sending a second request message to the server; the second request message is used for requesting to acquire the simplified identifier of the second node equipment; receiving a simplified identifier of the second node device sent by the server; the simplified identifier of the second node device is determined by the server reading the index relationship between the pre-established node device and the simplified identifier.
Optionally, the method for obtaining the simplified identifier of the second node device for transmitting the initial message specifically includes: when the first node equipment is source node equipment for transmitting data to be transmitted, acquiring simplified identifications of all node equipment for transmitting the data to be transmitted; when the first node equipment is intermediate node equipment for transmitting data to be transmitted, the simplified identification of the next hop node equipment adjacent to the first node equipment in all the node equipment for transmitting the data to be transmitted is acquired.
Optionally, when the first node device is a source node device, the method for generating the target message according to the destination address and the initial message specifically includes: and adding the destination address into the initial message to obtain a target message.
Optionally, when the first node device is an intermediate node device, the method for generating the target message according to the destination address and the initial message specifically includes: and updating the initial address in the initial message into a target address to obtain the target message.
In a second aspect, a packet transmission device is provided, including: the device comprises an acquisition unit, a generation unit and a sending unit; an obtaining unit, configured to obtain a simplified identifier of a second node device used for transmitting an initial packet; the byte length of the reduced identity is less than the byte length of the initial identity of the second node device; the acquisition unit is also used for acquiring a destination address corresponding to the simplified identifier of the second node equipment; the generating unit is used for generating a target message according to the destination address and the initial message acquired by the acquiring unit; and the sending unit is used for sending the target message generated by the generating unit to the second node equipment according to the destination address acquired by the acquiring unit.
Optionally, the acquiring unit is specifically configured to: sending a first request message to a server; the first request message is used for requesting to acquire an index relation between node equipment and a simplified identifier, which is pre-established by the server; receiving an index relation sent by a server; and reading the index relation and determining the simplified identification corresponding to the second node equipment.
Optionally, the acquiring unit is specifically configured to: sending a second request message to the server; the second request message is used for requesting to acquire the simplified identifier of the second node equipment; receiving a simplified identifier of the second node device sent by the server; the simplified identifier of the second node device is determined by the server reading the index relationship between the pre-established node device and the simplified identifier.
Optionally, the acquiring unit is specifically configured to: when the first node equipment is source node equipment for transmitting data to be transmitted, acquiring simplified identifications of all node equipment for transmitting the data to be transmitted; when the first node equipment is intermediate node equipment for transmitting data to be transmitted, the simplified identification of the next hop node equipment adjacent to the first node equipment in all the node equipment for transmitting the data to be transmitted is acquired.
Optionally, when the first node device is a source node device, the generating unit is specifically configured to: and adding the destination address acquired by the acquisition unit into the initial message to acquire a target message.
Optionally, when the first node device is an intermediate node device, the generating unit is specifically configured to: updating the initial address in the initial message into the destination address acquired by the acquisition unit to obtain the target message.
In a third aspect, a message transmission device is provided, including a memory and a processor; the memory is used for storing computer execution instructions, and the processor is connected with the memory through a bus; when the message transmission device runs, the processor executes the computer execution instructions stored in the memory, so that the message transmission device executes the message transmission method described in the first aspect.
The message transmission device may be a network device, or may be a part of a device in a network device, for example, a chip system in a network device. The system-on-chip is configured to support the network device to implement the functions involved in the first aspect and any one of possible implementations thereof, for example, obtain, generate, and send data and/or information involved in the foregoing packet transmission method. The chip system includes a chip, and may also include other discrete devices or circuit structures.
In a fourth aspect, there is provided a computer readable storage medium comprising computer executable instructions which, when run on a computer, cause the computer to perform the method of message transmission of the first aspect.
In a fifth aspect, there is also provided a computer program product comprising computer instructions which, when run on a message transmission device, cause the message transmission device to perform the message transmission method according to the first aspect described above.
It should be noted that the above-mentioned computer instructions may be stored in whole or in part on the first computer readable storage medium. The first computer readable storage medium may be packaged together with the processor of the packet transmission device, or may be packaged separately from the processor of the packet transmission device, which is not limited in this embodiment of the present application.
The description of the second, third, fourth and fifth aspects of the present application may refer to the detailed description of the first aspect; the advantages of the second aspect, the third aspect, the fourth aspect and the fifth aspect may be referred to as analysis of the advantages of the first aspect, and will not be described here.
In the embodiment of the present application, the names of the foregoing message transmission apparatuses do not limit the devices or functional modules, and in actual implementation, these devices or functional modules may appear under other names. Insofar as the function of each device or function module is similar to the present application, it is within the scope of the claims of the present application and the equivalents thereof.
These and other aspects of the present application will be more readily apparent from the following description.
The technical scheme provided by the application at least brings the following beneficial effects:
Based on any one of the above aspects, the present application proposes a message transmission method, which obtains a simplified identifier of a second node device for transmitting an initial message, where a byte length of the simplified identifier is smaller than a byte length of the initial identifier of the second node device, then obtains a destination address corresponding to the simplified identifier of the second node device, generates a target message, and then sends the target message to the second node device according to the destination address. Therefore, the simplified mark with shorter byte length can be used for replacing the initial mark in the path sequence carried by the message header, so that the byte length of the message header of the initial message is effectively shortened, and the message transmission efficiency is improved.
Drawings
Fig. 1 is a schematic structural diagram of a message transmission system provided in an embodiment of the present application;
fig. 2 is a schematic hardware structure of a communication device according to an embodiment of the present application;
fig. 3 is a schematic diagram of another hardware structure of the communication device according to the embodiment of the present application;
fig. 4 is a flow chart of a message transmission method provided in the embodiment of the present application;
fig. 5 is a flow chart of another method for transmitting a message according to an embodiment of the present application;
fig. 6 is a flow chart of another method for transmitting a message according to an embodiment of the present application;
Fig. 7 is a flow chart of another method for transmitting a message according to an embodiment of the present application;
fig. 8 is a flow chart of another method for transmitting a message according to an embodiment of the present application;
fig. 9 is a flow chart of another method for transmitting a message according to an embodiment of the present application;
fig. 10 is a flow chart of another method for transmitting a message according to an embodiment of the present application;
fig. 11 is a flow chart of another method for transmitting a message according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a message transmission device according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the terms "first", "second", and the like are used to distinguish the same item or similar items having substantially the same function and effect, and those skilled in the art will understand that the terms "first", "second", and the like are not limited in number and execution order.
As described in the background art, the byte length of the header of the existing message transmission method is long, which affects the efficiency of message transmission.
In view of the above problems, an embodiment of the present application provides a method for transmitting a message, where a simplified identifier of a second node device for transmitting an initial message is obtained, and a byte length of the simplified identifier is smaller than a byte length of the initial identifier of the second node device, then a destination address corresponding to the simplified identifier of the second node device is obtained, a target message is generated, and then the target message is sent to the second node device according to the destination address. Therefore, the simplified mark with shorter byte length can be used for replacing the initial mark in the path sequence carried by the message header, so that the byte length of the message header of the initial message is effectively shortened, and the message transmission efficiency is improved.
The message transmission method is suitable for a message transmission system. Fig. 1 shows a structure of the message transmission system. As shown in fig. 1, the message transmission system includes: a first node device 101, a second node device 102 and a server 103.
Wherein the first node device 101 and the second node device 102 are node devices in the routing network, and the second node device 102 is a next hop node of the first node device 101. The server 103 is communicatively connected to the first node device 101 and the second node device 102, respectively.
In practical applications, the server 103 may be connected to a plurality of node devices. Wherein the node devices comprise a first node device 101 and a second node device 102.
Alternatively, the routing network may be a SRv network.
Alternatively, the first node device 101 and the second node device 102 in fig. 1 may be network devices such as routers, switches, and the like.
The server 103 in fig. 1 may be one server in a server cluster (including a plurality of servers), or may be a chip in the server, or may be a system on a chip in the server, or may be implemented by a Virtual Machine (VM) deployed on a physical machine, which is not limited in this embodiment of the present application.
The basic hardware structure of the first node apparatus 101, the second node apparatus 102, and the server 103 in the communication system is similar, and includes elements included in the communication device shown in fig. 2 or fig. 3. The hardware configuration of the first node apparatus 101, the second node apparatus 102, and the server 103 will be described below taking the communication apparatuses shown in fig. 2 and 3 as examples.
Fig. 2 is a schematic hardware structure of a communication device according to an embodiment of the present application. The communication device comprises a processor 21, a memory 22, a communication interface 23, a bus 24. The processor 21, the memory 22 and the communication interface 23 may be connected by a bus 24.
The processor 21 is a control center of the communication device, and may be one processor or a collective term of a plurality of processing elements. For example, the processor 21 may be a general-purpose central processing unit (central processing unit, CPU), or may be another general-purpose processor. Wherein the general purpose processor may be a microprocessor or any conventional processor or the like.
As one example, processor 21 may include one or more CPUs, such as CPU 0 and CPU 1 shown in fig. 2.
Memory 22 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), magnetic disk storage or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
In a possible implementation, the memory 22 may exist separately from the processor 21, and the memory 22 may be connected to the processor 21 by a bus 24 for storing instructions or program code. The processor 21, when calling and executing instructions or program codes stored in the memory 22, can implement the message transmission method provided in the following embodiments of the present invention.
In the embodiment of the present application, the software programs stored in the memory 22 are different for the first node apparatus 101, the second node apparatus 102, and the server 103, so the functions realized by the first node apparatus 101, the second node apparatus 102, and the server 103 are different. The functions performed with respect to the respective devices will be described in connection with the following flowcharts.
In another possible implementation, the memory 22 may also be integrated with the processor 21.
A communication interface 23 for connecting the communication device with other devices via a communication network, which may be an ethernet, a radio access network, a wireless local area network (wireless local area networks, WLAN) or the like. The communication interface 23 may include a receiving unit for receiving data, and a transmitting unit for transmitting data.
Bus 24 may be an industry standard architecture (industry standard architecture, ISA) bus, an external device interconnect (peripheral component interconnect, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 2, but not only one bus or one type of bus.
Fig. 3 shows another hardware configuration of the communication apparatus in the embodiment of the present invention. As shown in fig. 3, the communication device may include a processor 31 and a communication interface 32. The processor 31 is coupled to a communication interface 32.
The function of the processor 31 may be as described above with reference to the processor 21. The processor 31 also has a memory function and can function as the memory 22.
The communication interface 32 is used to provide data to the processor 31. The communication interface 32 may be an internal interface of the communication device or an external interface of the communication device (corresponding to the communication interface 23).
It should be noted that the structure shown in fig. 2 (or fig. 3) does not constitute a limitation of the communication apparatus, and the communication apparatus may include more or less components than those shown in fig. 2 (or fig. 3), or may combine some components, or may be arranged in different components.
The following describes the message transmission method provided in the embodiment of the present application in detail with reference to the accompanying drawings.
The message transmission method provided by the embodiment of the application comprises the following steps: the server establishes an index relation between the node device and the simplified identifier (referred to as an "index relation establishment procedure") and transmits a message to the second node device corresponding to the simplified identifier of the second node device by the first node device (referred to as a "message transmission procedure").
The "index relationship establishment flow" is described first below.
As shown in fig. 4, the method of "index relationship establishment procedure" is applied to a server, and includes: S401-S402.
S401, the server acquires the initial identification of the node equipment.
Specifically, in order for the server to establish a simplified identification of the node device having a byte length smaller than the initial identification of the node device, the server may acquire the initial identification of the node device.
The node equipment comprises first node equipment and second node equipment.
Alternatively, the method of obtaining the initial identifier of the node device by the server may be that the initial identifier sent by the node device is received.
Alternatively, before the server receives the initial identifier sent by the node device, a request message for acquiring the initial identifier may be sent to the node device, and the node device sends the initial identifier to the server in response to the request message.
Alternatively, when the initial identity of the node device is changed, a message for changing the initial identity may be sent to the server.
Optionally, the node device may also periodically send the updated initial identifier to the server.
Alternatively, the initial identification may be a standard SID.
S402, the server establishes an index relation between the node equipment and the simplified identifier.
Specifically, after the initial identifier of the node device is obtained, the server may establish a simplified identifier of the node device having a byte length smaller than the initial identifier of the node device, so as to obtain an index relationship between the node device and the simplified identifier.
Wherein the simplified identifications are in one-to-one correspondence with the node devices.
Optionally, when the initial identifier is the standard SID, the byte length of the simplified identifier of the standard SID is any length smaller than 128 bits, which can be specifically set according to the actual requirement.
For example, the server obtains the initial identifier of the node device 1 as the standard SID "AAAA" (128 bit), the initial identifier of the node device 2 as the standard SID "BBBB" (128 bit), and the initial identifier of the node device 3 as the standard SID "CCCC" (128 bit), and the established index relationship is: the reduced identification of the node device 1 is "a" (32 bit), the reduced identification of the node device 2 is "B" (32 bit), and the reduced identification of the node device 3 is "C" (32 bit).
The following describes the "message transmission flow".
As shown in fig. 5, the method of the "message transmission flow" is applied to the first node device, and includes: S501-S504.
S501, the first node equipment acquires a simplified identification of the second node equipment for transmitting the initial message.
Wherein the reduced identity has a byte length that is less than the byte length of the initial identity of the second node device.
Specifically, in the message transmission process, the first node device may extract, from the reduced identifier sequence carried by the header of the initial message and used for transmitting the initial message, the reduced identifier of the next-hop node device that extracts the reduced identifier of the first node device, and determine the reduced identifier as the reduced identifier of the second node device.
The simplified identification sequence is composed of a plurality of simplified identifications, and the byte length of the simplified identification sequence is smaller than that of the path sequence.
Alternatively, the first node device may be a source node device, or an intermediate node device.
Alternatively, the reduced identification sequence may be established by the first node device or by the server.
Alternatively, the initial message may be any SRv6 message.
S502, the first node equipment acquires a destination address corresponding to the simplified identifier of the second node equipment.
Specifically, after the simplified identifier of the second node device is obtained, the first node device may obtain a destination address corresponding to the simplified identifier of the second node device, so as to transmit the band transmission data in the initial packet to the second node device indicated by the destination address.
Alternatively, after obtaining the reduced identifier of the second node device, the first node device may send a target request message including the reduced identifier of the second node device to the server. The server responds to the target request message, reads the index relation between the pre-established node equipment and the simplified identifier, determines the initial identifier of the second node equipment corresponding to the simplified identifier of the second node equipment, and sends a target response message comprising the initial identifier of the second node equipment to the first node equipment. The first node device determines an initial identity of the second node device as a destination address in response to the target response message.
The index relationship established by the preset server is as follows: the reduced identification of the node device 1 is "a" (32 bit), the reduced identification of the node device 2 is "B" (32 bit), and the reduced identification of the node device 3 is "C" (32 bit). The reduced identity of the second node device obtained by the first node device is "a". The first node device sends a target request message to the server including a reduced identity "a". The server determines an initial identification of the second node device corresponding to the reduced identification "a" as a standard SID "AAAA" and transmits a target response message including the standard SID "AAAA" to the first node device. The first node device determines a standard SID "AAAA" as the destination address.
S503, the first node equipment generates a target message according to the destination address and the initial message.
Specifically, after the destination address corresponding to the simplified identifier of the second node device is obtained, the first node device generates a target message according to the destination address and the initial message.
Optionally, when the first node device is a source node device, the first node device adds the destination address to the initial message, and generates the target message.
When the first node equipment is intermediate node equipment, the first node equipment updates the initial address in the initial message into a target address to obtain a target message.
S504, the first node equipment sends the target message to the second node equipment according to the destination address.
Specifically, after the target message is generated, the first node device may transmit the target message to the second node device indicated by the destination address according to the destination address carried in the message header of the target message.
Alternatively, the second node device may be an intermediate node device, or a final node device.
In one embodiment, as shown in fig. 6 in conjunction with fig. 5, when the reduced identifier sequence is established by the first node device, the method for the first node device to obtain the reduced identifier of the second node device for transmitting the initial message in S501 specifically includes: S601-S603.
S601, the first node equipment sends a first request message to a server.
The first request message is used for requesting to acquire an index relation between node equipment and a simplified identifier, which is pre-established by the server.
Specifically, in the process of message transmission, after the first node device acquires the initial message, a first request message may be sent to the server, so that the first node device acquires an index relationship between the node device and the simplified identifier, which is pre-established by the server.
S602, the first node equipment receives the index relation sent by the server.
Specifically, after the first node device sends the first request message to the server, the server responds to the first request message and sends the index relation between the node device and the simplified identifier, which is established in advance, to the first node device, so that the first node device can determine the simplified identifier sequence according to the path sequence for transmitting the initial message.
S603, the first node equipment reads the index relation and determines a simplified identification corresponding to the second node equipment.
Specifically, after receiving the index relationship, the first node device may replace the path sequence carried in the header of the initial message with a simplified identifier sequence, and then determine, as the simplified identifier of the second node device, the simplified identifier of the next hop node device from which the simplified identifier of the first node device is extracted in the simplified identifier sequence.
The index relationship established by the preset server is as follows: the reduced identification of the node device 1 is "a" (32 bit), the reduced identification of the node device 2 is "B" (32 bit), and the reduced identification of the node device 3 is "C" (32 bit). The path sequence of the transmission initial message acquired by the node device 3 is "node device 3-node device 1-node device 2".
After receiving the initial message, the node device 3 sends a first request message to the server. The server sends the index relation to the node device 3 in response to the first request message. The node device 3 replaces the path sequence carried in the header of the initial message with the simplified identification sequence "C-se:Sub>A-B" according to the index relationship, and determines that the simplified identification "se:Sub>A" of the next hop node device is the simplified identification of the second node device.
In one embodiment, as shown in fig. 7 in conjunction with fig. 5, when the reduced identifier sequence is a server setup, the method for the first node device to obtain the reduced identifier of the second node device for transmitting the initial message in S501 specifically includes: S701-S703.
S701, the first node device sends a second request message to the server.
Wherein the second request message is for requesting to obtain a reduced identity of the second node device.
Specifically, in the process of message transmission, after the first node device acquires the initial message, a second request message may be sent to the server, so that the first node device acquires the simplified identifier of the second node device.
Optionally, the second request message includes an initial identification of the first node device and a path sequence of the initial message.
S702, the server reads the index relation between the pre-established node equipment and the simplified identification, and determines the simplified identification of the second node equipment.
Specifically, after the first node device sends the second request message to the server, the server responds to the second request message to obtain a path sequence for transmitting the initial message. Then, the server reads the index relation between the pre-established node equipment and the simplified identification, and determines the simplified identification corresponding to the next hop node equipment of the first node equipment in the path sequence as the simplified identification of the second node equipment.
The index relationship established by the preset server is as follows: the reduced identification of the node device 1 is "a" (32 bit), the reduced identification of the node device 2 is "B" (32 bit), and the reduced identification of the node device 3 is "C" (32 bit). The path sequence of the transmission initial message acquired by the node device 3 is "node device 3-node device 1-node device 2".
After receiving the initial message, the node device 3 sends a second request message to the server. The server responds to the second request message, acquires a path sequence for transmitting the initial message as 'node equipment 3-node equipment 1-node equipment 2', determines the next hop node equipment of the node equipment 3 as the node equipment 1, and determines a simplified identifier 'A' of the node equipment 1 as a simplified identifier of the second node equipment.
S703, the first node equipment receives the simplified identification of the second node equipment sent by the server.
The simplified identifier of the second node device is determined by the server reading the index relation between the pre-established node device and the simplified identifier.
Specifically, after the server determines the reduced identifier of the second node device, the first node device may receive the reduced identifier of the second node device sent by the server.
In one embodiment, referring to fig. 5, as shown in fig. 8, when the first node device is a source node device for transmitting data to be transmitted, the method for the first node device to obtain the simplified identifier of the second node device for transmitting the initial packet in S501 specifically includes: s801.
S801, when the first node device is a source node device for transmitting data to be transmitted, the first node device obtains simplified identifiers of all node devices for transmitting the data to be transmitted.
Specifically, when the first node device is a source node device for transmitting data to be transmitted, the first node device may acquire simplified identifiers of all node devices for transmitting the data to be transmitted, so that the first node device establishes a simplified identifier sequence of all nodes for transmitting the data to replace a path sequence in a header of the initial message.
In one embodiment, referring to fig. 5, as shown in fig. 9, when the first node device is a source node device for transmitting data to be transmitted, the method for generating, by the first node device in S503, a target message according to a destination address and an initial message specifically includes: s901.
S901, the first node equipment adds a destination address into the initial message to obtain a target message.
Specifically, after the destination address corresponding to the simplified identifier of the second node device is obtained, the first node device may add the destination address to the initial message, so as to obtain the target message.
In one embodiment, as shown in fig. 10 in conjunction with fig. 5, when the first node device is an intermediate node device for transmitting data to be transmitted, the method for the first node device to acquire the simplified identifier of the second node device for transmitting the initial packet in S501 specifically includes: s1001.
S1001, when the first node device is an intermediate node device for transmitting data to be transmitted, the first node device obtains a simplified identifier of a next hop node device adjacent to the first node device from all node devices for transmitting the data to be transmitted.
Specifically, when the first node device is an intermediate node device for transmitting data to be transmitted, the first node device may acquire a simplified identifier of a next-hop node device adjacent to the first node device in all node devices for transmitting data to be transmitted, so that the first node device determines a destination address of the message transmission according to the simplified identifier of the next-hop node device.
In one embodiment, referring to fig. 5, as shown in fig. 11, when the first node device is an intermediate node device for transmitting data to be transmitted, the method for generating, by the first node device in S503, a target message according to a destination address and an initial message specifically includes: s1101.
S1101, the first node device updates the initial address in the initial message to the destination address to obtain the target message.
Specifically, after the destination address corresponding to the simplified identifier of the second node device is obtained, the first node device may update the initial address in the initial message to the destination address, so as to obtain the target message.
In summary, in the message transmission process of the message transmission device in the embodiment of the present application, a simplified identifier of a second node device for transmitting an initial message is obtained, where a byte length of the simplified identifier is smaller than a byte length of the initial identifier of the second node device, then a destination address corresponding to the simplified identifier of the second node device is obtained, a target message is generated, and then the target message is sent to the second node device according to the destination address. Therefore, the simplified mark with shorter byte length can be used for replacing the initial mark in the path sequence carried by the message header, so that the byte length of the message header of the initial message is effectively shortened, and the message transmission efficiency is improved.
The foregoing description of the solution provided in the embodiments of the present application has been mainly presented in terms of a method. To achieve the above functions, it includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application may divide the functional modules of the terminal according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware or in software functional modules. Optionally, the division of the modules in the embodiments of the present application is schematic, which is merely a logic function division, and other division manners may be actually implemented.
Fig. 12 is a schematic structural diagram of a message transmission device according to an embodiment of the present application. The message transmission device may be used to perform the method of message transmission shown in fig. 4, fig. 5, fig. 6, fig. 7, fig. 8, fig. 9, fig. 10 or fig. 11. The message transmission device shown in fig. 12 includes: an acquisition unit 1201, a generation unit 1202, and a transmission unit 1203.
An obtaining unit 1201 is configured to obtain a simplified identifier of the second node device used for transmitting the initial packet. For example, in connection with fig. 5, the acquisition unit 1201 is for executing S501.
The obtaining unit 1201 is further configured to obtain a destination address corresponding to the simplified identifier of the second node device. For example, in connection with fig. 5, the acquisition unit 1201 is for executing S502.
A generating unit 1202, configured to generate a target packet according to the destination address and the initial packet acquired by the acquiring unit 1201. For example, in connection with fig. 5, the generation unit 1202 is configured to execute S503.
A sending unit 1203, configured to send the target packet generated by the generating unit 1202 to the second node device according to the destination address acquired by the acquiring unit 1201. For example, in connection with fig. 5, the sending unit 1203 is configured to execute S504.
Optionally, the acquiring unit 1201 is specifically configured to: sending a first request message to a server; the first request message is used for requesting to acquire an index relation between node equipment and a simplified identifier, which is pre-established by the server; receiving an index relation sent by a server; and reading the index relation and determining the simplified identification corresponding to the second node equipment. For example, in connection with fig. 6, the acquisition unit 1201 is for executing S601.
Optionally, the acquiring unit 1201 is specifically configured to: sending a second request message to the server; the second request message is used for requesting to acquire the simplified identifier of the second node equipment; receiving a simplified identifier of the second node device sent by the server; the simplified identifier of the second node device is determined by the server reading the index relationship between the pre-established node device and the simplified identifier. For example, in connection with fig. 7, the acquisition unit 1201 is for executing S701.
Optionally, the acquiring unit 1201 is specifically configured to: and when the first node equipment is the source node equipment for transmitting the data to be transmitted, acquiring simplified identifications of all the node equipment for transmitting the data to be transmitted. For example, in connection with fig. 8, the acquisition unit 1201 is for executing S801.
The acquiring unit 1201 is specifically configured to: when the first node equipment is intermediate node equipment for transmitting data to be transmitted, the simplified identification of the next hop node equipment adjacent to the first node equipment in all the node equipment for transmitting the data to be transmitted is acquired. For example, in connection with fig. 10, the acquisition unit 1201 is for executing S1001.
Optionally, when the first node device is a source node device, the generating unit 1202 is specifically configured to: the destination address acquired by the acquiring unit 1201 is added to the initial message to obtain a target message. For example, in connection with fig. 10, the generation unit 1202 is configured to execute S901.
Optionally, when the first node device is an intermediate node device, the generating unit 1202 is specifically configured to: the initial address in the initial message is updated to the destination address acquired by the acquiring unit 1201, so as to obtain the target message. For example, in connection with fig. 11, the generation unit 1202 is configured to execute S1101.
The embodiment of the application also provides a computer readable storage medium, which includes computer execution instructions, when the computer execution instructions run on a computer, cause the computer to execute the message transmission method provided in the above embodiment.
The embodiment of the application also provides a computer program which can be directly loaded into a memory and contains software codes, and the computer program can realize the message transmission method provided by the embodiment after being loaded and executed by a computer.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the present invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer-readable storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and the division of modules or units, for example, is merely a logical function division, and other manners of division are possible when actually implemented. For example, multiple units or components may be combined or may be integrated into another device, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units. The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the method described in the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present invention should be included in the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (8)

1. The message transmission method is characterized by being applied to first node equipment and comprising the following steps:
obtaining a simplified identifier of a second node device for transmitting an initial message; the byte length of the simplified identifier is smaller than the byte length of the initial identifier of the second node device; the simplified identification of the second node equipment is pre-established and stored for the server; the server is respectively connected with the first node equipment and the second node equipment;
acquiring a destination address corresponding to the simplified identifier of the second node device based on an index relationship between the node device and the simplified identifier, which are stored in advance by the server;
generating a target message according to the destination address and the initial message;
sending the target message to the second node equipment according to the destination address;
the method specifically includes the steps of obtaining a simplified identifier of a second node device for transmitting an initial message based on an index relation between the node device and the simplified identifier, which are stored in advance by the server:
sending a first request message to the server; the first request message is used for requesting to acquire the index relation;
receiving the index relation sent by the server;
Reading the index relation and determining the simplified identification corresponding to the second node equipment;
sending a second request message to the server; the second request message is used for requesting to acquire the simplified identifier of the second node device;
receiving a simplified identifier of the second node device sent by the server; the simplified identification of the second node device is determined by the server reading the index relationship;
the initial message and the target message comprise data to be transmitted; the obtaining the simplified identifier of the second node device for transmitting the initial message specifically includes:
when the first node equipment is source node equipment for transmitting the data to be transmitted, simplified identifiers of all node equipment for transmitting the data to be transmitted are obtained;
and when the first node equipment is the intermediate node equipment for transmitting the data to be transmitted, acquiring the simplified identification of the next hop node equipment adjacent to the first node equipment in all the node equipment for transmitting the data to be transmitted.
2. The method for transmitting a message according to claim 1, wherein when the first node device is the source node device, the generating a target message according to the destination address and the initial message specifically includes:
And adding the destination address into the initial message to obtain the target message.
3. The method for transmitting a message according to claim 1, wherein when the first node device is the intermediate node device, the generating a target message according to the destination address and the initial message specifically includes:
and updating the initial address in the initial message to the destination address to obtain the target message.
4. A message transmission apparatus, comprising: the device comprises an acquisition unit, a generation unit and a sending unit;
the acquisition unit is used for acquiring the simplified identification of the second node equipment for transmitting the initial message; the byte length of the simplified identifier is smaller than the byte length of the initial identifier of the second node device; the simplified identification of the second node equipment is pre-established and stored for the server; the server is respectively connected with the message transmission device and the second node equipment;
the obtaining unit is further configured to obtain a destination address corresponding to the simplified identifier of the second node device based on an index relationship between the node device and the simplified identifier, where the index relationship is stored in advance in the server;
The generating unit is used for generating a target message according to the destination address and the initial message acquired by the acquiring unit;
the sending unit is configured to send the target packet generated by the generating unit to the second node device according to the destination address acquired by the acquiring unit;
the acquiring unit is specifically configured to:
sending a first request message to the server; the first request message is used for requesting to acquire the index relation;
receiving the index relation sent by the server;
reading the index relation and determining the simplified identification corresponding to the second node equipment;
sending a second request message to the server; the second request message is used for requesting to acquire the simplified identifier of the second node device;
receiving a simplified identifier of the second node device sent by the server; the simplified identification of the second node device is determined by the server reading the index relationship;
the initial message and the target message comprise data to be transmitted; when the message transmission device is a source node device for transmitting the data to be transmitted, acquiring simplified identifiers of all node devices for transmitting the data to be transmitted;
When the message transmission device is an intermediate node device for transmitting the data to be transmitted, the simplified identification of the next hop node device adjacent to the message transmission device in all the node devices for transmitting the data to be transmitted is acquired.
5. The message transmission apparatus according to claim 4, wherein when the message transmission apparatus is the source node device, the generating unit is specifically configured to:
and adding the destination address acquired by the acquisition unit into the initial message to acquire the target message.
6. The message transmission apparatus according to claim 4, wherein when the message transmission apparatus is the intermediate node device, the generating unit is specifically configured to:
updating the initial address in the initial message to the destination address acquired by the acquisition unit to obtain the target message.
7. The message transmission device is characterized by comprising a memory and a processor; the memory is used for storing computer execution instructions, and the processor is connected with the memory through a bus; when the message transmission device is operated, the processor executes the computer-executable instructions stored in the memory, so that the message transmission device performs the message transmission method according to any one of claims 1 to 3.
8. A computer readable storage medium comprising computer executable instructions which, when run on a computer, cause the computer to perform the message transmission method of any of claims 1-3.
CN202111439001.2A 2021-11-29 2021-11-29 Message transmission method, device and storage medium Active CN114157601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111439001.2A CN114157601B (en) 2021-11-29 2021-11-29 Message transmission method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111439001.2A CN114157601B (en) 2021-11-29 2021-11-29 Message transmission method, device and storage medium

Publications (2)

Publication Number Publication Date
CN114157601A CN114157601A (en) 2022-03-08
CN114157601B true CN114157601B (en) 2024-03-29

Family

ID=80454846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111439001.2A Active CN114157601B (en) 2021-11-29 2021-11-29 Message transmission method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114157601B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208022A (en) * 2015-09-14 2015-12-30 北京交通大学 Alarm information generation method and device
CN111628995A (en) * 2020-05-26 2020-09-04 新华三信息安全技术有限公司 SID compression method, SID compression device, SID compression equipment and storage medium based on SRv6
CN112804148A (en) * 2021-03-24 2021-05-14 新华三信息安全技术有限公司 Message forwarding method and device
WO2021135468A1 (en) * 2019-12-30 2021-07-08 华为技术有限公司 Segment identifier determining method and device
WO2021179732A1 (en) * 2020-03-10 2021-09-16 中兴通讯股份有限公司 Message encapsulating method, message forwarding method, notification method, electronic device, and storage medium
CN113438160A (en) * 2020-03-23 2021-09-24 中兴通讯股份有限公司 Routing method, routing device and computer readable storage medium
CN113709031A (en) * 2021-08-30 2021-11-26 烽火通信科技股份有限公司 Method and device for restricting transmission and distribution of route

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208022A (en) * 2015-09-14 2015-12-30 北京交通大学 Alarm information generation method and device
WO2021135468A1 (en) * 2019-12-30 2021-07-08 华为技术有限公司 Segment identifier determining method and device
CN113132229A (en) * 2019-12-30 2021-07-16 华为技术有限公司 Segment identifier determination method and device
WO2021179732A1 (en) * 2020-03-10 2021-09-16 中兴通讯股份有限公司 Message encapsulating method, message forwarding method, notification method, electronic device, and storage medium
CN113438160A (en) * 2020-03-23 2021-09-24 中兴通讯股份有限公司 Routing method, routing device and computer readable storage medium
CN111628995A (en) * 2020-05-26 2020-09-04 新华三信息安全技术有限公司 SID compression method, SID compression device, SID compression equipment and storage medium based on SRv6
CN112804148A (en) * 2021-03-24 2021-05-14 新华三信息安全技术有限公司 Message forwarding method and device
CN113709031A (en) * 2021-08-30 2021-11-26 烽火通信科技股份有限公司 Method and device for restricting transmission and distribution of route

Also Published As

Publication number Publication date
CN114157601A (en) 2022-03-08

Similar Documents

Publication Publication Date Title
US20200252346A1 (en) Method for Transmitting Service Stream in Flexible Ethernet and Apparatus
CN114365464B (en) Method, equipment and system for forwarding message in SR network
CN105791214B (en) Method and equipment for converting RapidIO message and Ethernet message
CN111385209B (en) Message processing method, message forwarding method, device and equipment
EP4009596A1 (en) Message forwarding method, device, and system in sr network
CN112468396B (en) Method, device and system for programming host network performance requirements
EP3493507A1 (en) Session persistence method and apparatus, and storage medium
WO2015151184A1 (en) Communication system, communication method, relay device, and communication program
JP7448597B2 (en) Message generation method and device and message processing method and device
CN115426312B (en) Method and device for managing, optimizing and forwarding identifiers in large-scale multi-modal network
US11929851B2 (en) Gateway selection method, device, and system
KR102579060B1 (en) Routing information sending method, packet sending method, and related apparatus
CN114650255B (en) Message processing method and network equipment
CN110720195A (en) Computing device and method for generating link IPV6 address
CN110720196A (en) Computing device and method for generating an architecture-wide IPV6 address
CN114157601B (en) Message transmission method, device and storage medium
CN100479457C (en) Implementation method for transferring data in virtual private network
CN108574637B (en) Address self-learning method and device and switch
CN111464443B (en) Message forwarding method, device, equipment and storage medium based on service function chain
JP5657505B2 (en) Network system, relay device, communication method, relay method, and relay program
KR20170001654A (en) Method for network address translation by using a software defined networking switch
CN112804130A (en) Message processing method, device, system, storage medium and electronic equipment
CN108259292B (en) Method and device for establishing tunnel
CN114125038B (en) Service scheduling method, device and storage medium
CN115296989B (en) Subscription address configuration method, related equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant