CN116155826A - Message receiving and transmitting method, network equipment, system and storage medium - Google Patents

Message receiving and transmitting method, network equipment, system and storage medium Download PDF

Info

Publication number
CN116155826A
CN116155826A CN202111375329.2A CN202111375329A CN116155826A CN 116155826 A CN116155826 A CN 116155826A CN 202111375329 A CN202111375329 A CN 202111375329A CN 116155826 A CN116155826 A CN 116155826A
Authority
CN
China
Prior art keywords
message
abstract
packet loss
discarded
network device
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.)
Pending
Application number
CN202111375329.2A
Other languages
Chinese (zh)
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 Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202111375329.2A priority Critical patent/CN116155826A/en
Publication of CN116155826A publication Critical patent/CN116155826A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/31Flow control; Congestion control by tagging of packets, e.g. using discard eligibility [DE] bits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1829Arrangements specially adapted for the receiver end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures

Abstract

The disclosure provides a message transceiving method, network equipment, a system and a storage medium, and relates to the technical field of data communication networks. The message forwarding method disclosed by the disclosure comprises the following steps: the network equipment determines whether the received first message of the target equipment, which is not the current network equipment, can be forwarded; under the condition that the first message needs to be discarded, generating a packet loss abstract message according to the first message, wherein the packet loss abstract message comprises an abstract identifier, a port number of the first message and a sending sequence number; and sending the packet loss abstract to the target equipment according to the address of the target equipment of the first message, so that the target equipment sends a retransmission response to the source equipment of the first message according to the packet loss abstract message. By the method, timeliness, reliability and stability of message retransmission are improved.

Description

Message receiving and transmitting method, network equipment, system and storage medium
Technical Field
The disclosure relates to the technical field of data communication networks, and in particular relates to a message transceiving method, network equipment, a system and a storage medium.
Background
TCP (Transmission Control Protocol ) is a core protocol in current network communication, and the protocol can ensure that both parties of communication can receive a message sent by the other party through a sending and confirming mechanism, so as to realize reliable communication.
In a message confirmation mechanism based on TCP, a sending end continuously sends messages without waiting for confirmation of a receiving end; after receiving the message, the receiving end sends an ACK (Acknowledge character ) message to acknowledge, wherein the ACK message carries the seq serial number of the acknowledge received message plus 1, which indicates that the message before the seq+1 has been received, and the next expected message serial number is the seq+1.
When packet loss occurs, there are two processing mechanisms for TCP:
one is a transmit monitoring mechanism. After the timer times out, if the ACK message sent by the receiving end is not received, the sending end retransmits the message, and the sending end timer is usually a second-level timer and introduces larger time delay when the packet is lost;
the other is that the receiving end ACK triggers a fast retransmission mechanism. When packet loss occurs, the receiving end does not sense packet loss, but when a subsequent message is received, the receiving end can judge that the previous message is not received through the sending sequence number seq of the message, the confirmation sequence number in the ACK sent by the receiving end is kept unchanged, the value of the seq of the message is still not received, and the sending end starts a counter after receiving the message. If a plurality of ACK messages with the same seq are received in an accumulated way, the sending end judges that the message is lost and retransmits the message.
When the TCP communication with large data volume is carried out, if the intermediate message is lost, the sending end can quickly receive a certain number of ACK messages with the same confirmation sequence number due to the fact that the number of the follow-up messages is large, and therefore the lost message can be retransmitted without the time-out of the timer of the sending end.
Disclosure of Invention
It is an object of the present disclosure to improve the efficiency of packet loss retransmission.
According to an aspect of some embodiments of the present disclosure, a method for forwarding a message is provided, including: the network equipment determines whether the received first message can be forwarded, wherein the target equipment of the first message is not the current network equipment; under the condition that the first message needs to be discarded, generating a packet loss abstract message according to the first message, wherein the packet loss abstract message comprises an abstract identifier, a port number of the first message and a sending sequence number; and sending the packet loss abstract to the target equipment according to the address of the target equipment of the first message, so that the target equipment sends a retransmission response to the source equipment of the first message according to the packet loss abstract message.
In some embodiments, the network device determining whether the received first message can be forwarded includes: after receiving the first message to be forwarded, the network device determines whether the first message can be forwarded successfully, wherein the first message is determined to be discarded under the condition that port congestion or remaining resources of a scheduling queue associated with a forwarding path of the first message are smaller than a preset threshold value.
In some embodiments, generating the packet loss summary message from the first message includes: setting a field for marking the current message as a packet loss abstract message as an abstract mark; intercepting a predetermined field of a payload of a first message and writing the predetermined field of a packet loss abstract message, wherein the predetermined field comprises a port number and a sending sequence number of the first message.
In some embodiments, generating the packet loss summary message according to the first message further includes: generating a payload abstract based on a 64-bit MD5 (MD 5 Message-Digest Algorithm 5) Algorithm according to the payload content of the first Message; and writing the payload abstract into a packet loss abstract message.
According to an aspect of some embodiments of the present disclosure, a method for receiving a message is provided, including: after the network equipment receives the second message, judging whether the second message comprises a summary identifier, wherein the target address of the second message is the self address of the network equipment, the summary identifier is an identifier for identifying that the second message is a packet loss summary message, and the summary discarded message is generated by intermediate node equipment for discarding the message; under the condition that the second message comprises the abstract identifier, the network equipment acquires the port number and the sending sequence number of the discarded message in the second message; the network equipment judges whether the discarded message is not received in the communication under processing according to the port number and the sending sequence number of the discarded message; if the discarded message is not yet received in the communication being processed by the target device, the network device sends a retransmission response to the source device of the discarded message.
In some embodiments, the method for receiving a message further includes: judging whether the second message is based on the TCP protocol or not under the condition that the second message comprises the abstract identifier; if the second message is based on the TCP protocol, the network equipment executes the operation of acquiring the port number and the sending sequence number of the discarded message in the second message; otherwise, the network device executes the operation of the second message corresponding protocol.
In some embodiments, the method for receiving a message further includes: if the discarded message is not the message of the communication being processed by the target device or the discarded message is the received message, the network device discards the second message.
In some embodiments, the network device sending a retransmission response to the source device of the discarded message comprises: the network device sends a retransmission response to the source device of the discarded message a plurality of times, wherein the retransmission response comprises a sending sequence number.
According to an aspect of some embodiments of the present disclosure, a method for transmitting a message is provided, including: any one of the above message forwarding methods; and any one of the above message receiving methods.
According to an aspect of some embodiments of the present disclosure, there is provided a network device comprising: a first message receiving unit configured to receive a first message from another network device, where a target device of the first message is not a current network device; a forwarding judgment unit configured to determine whether the first message can be forwarded; the packet loss abstract generation unit is configured to generate a packet loss abstract message according to the first message under the condition that the first message needs to be discarded, wherein the packet loss abstract message comprises an abstract identifier, a port number of the first message and a sending sequence number; and the sending unit is configured to send the packet loss abstract to the target equipment according to the address of the target equipment of the first message so that the target equipment sends a retransmission response to the source equipment of the first message according to the packet loss abstract message.
According to an aspect of some embodiments of the present disclosure, there is provided a network device comprising: a second message receiving unit configured to receive a second message with an address of a current network device as a target address, where the target address of the second message is a self address of the network device; a retransmission judgment unit configured to: judging whether the second message comprises a summary identifier, wherein the summary identifier is an identifier for identifying that the second message is a packet loss summary message, and the packet loss summary message is generated by intermediate node equipment for discarding the message; under the condition that the second message comprises the abstract identifier, acquiring the port number and the sending sequence number of the discarded message in the second message; the target device judges whether the discarded message is not received in the communication being processed according to the port number and the sending sequence number of the discarded message; if the discarded message is not received in the communication being processed by the target equipment, triggering a retransmission response unit; and a retransmission response unit configured to transmit a retransmission response to the source device of the first message.
According to an aspect of some embodiments of the present disclosure, a network device is presented, comprising: a memory; and a processor coupled to the memory, the processor configured to perform any of the message transmission methods described above based on instructions stored in the memory.
According to an aspect of some embodiments of the present disclosure, a non-transitory computer-readable storage medium is presented, having stored thereon computer program instructions which, when executed by a processor, implement the steps of any of the above message transmission methods.
According to an aspect of some embodiments of the present disclosure, there is provided a network system comprising: the message sending device is configured to send a first message to the target device through the intermediate node device; one or more intermediate node devices configured to perform any of the message forwarding methods described above; and a target device configured to perform any one of the above message receiving methods.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure, illustrate and explain the present disclosure, and together with the description serve to explain the present disclosure. In the drawings:
fig. 1A is a flow chart of some embodiments of a message forwarding method of the present disclosure.
Fig. 1B is a schematic diagram of a format of a packet loss summary message in some embodiments of the packet forwarding method of the present disclosure.
Fig. 2 is a flow chart of other embodiments of the message receiving method of the present disclosure.
Fig. 3 is a signaling interaction diagram of some embodiments of a packet transmission method of the present disclosure.
Fig. 4 is a schematic diagram of some embodiments of a network device of the present disclosure.
Fig. 5 is a schematic diagram of further embodiments of a network device of the present disclosure.
Fig. 6 is a schematic diagram of further embodiments of a network device of the present disclosure.
Fig. 7 is a schematic diagram of still other embodiments of a network device of the present disclosure.
Fig. 8 is a schematic diagram of some embodiments of a network system of the present disclosure.
Detailed Description
The technical scheme of the present disclosure is described in further detail below through the accompanying drawings and examples.
The inventor finds that a certain processing time delay exists in the current TCP message loss retransmission mechanism, and the timer retransmission time delay can reach the second level; the ACK triggering fast retransmission mechanism can only shorten the time for finding packet loss of the intermediate message when a large amount of TCP communication messages are transmitted, and cannot take effect when a small amount or a single message is transmitted, so that the scenes of control signaling transmission such as the internet of things and the industrial internet are difficult to meet. Meanwhile, because the triggering interval of the ACK message is difficult to determine, the time interval of packet loss found by the sending end is uncontrollable, and the method is not applicable to scenes with higher requirements on time delay jitter precision.
A flow chart of some embodiments of the disclosed message forwarding method is shown in fig. 1.
In step 121, the network device receives a first message of a network device that is not the current network device of the target device. In some embodiments, the network device may determine, after receiving the packet, whether the destination address of the destination packet is a self address. And under the condition that the target address is not the self address, determining the self address as a forwarding node and determining the message as a first message. In some embodiments, the first message is a TCP protocol based message.
In step 122, the network device determines whether the received first message can currently be forwarded. If the first message cannot be forwarded, discarding the message, and executing step 123; if the message can be forwarded, step 125 is performed.
In some embodiments, when port congestion occurs or there is insufficient scheduling space in the queue, a packet loss situation may occur, where the network device determines that the received first packet cannot be forwarded.
In step 123, the network device generates a packet loss summary message according to the first message to be discarded. In some embodiments, the packet loss summary message includes a summary identifier, a port number of the first message, and a transmission sequence number. In some embodiments, the packet loss summary packet may further include an acknowledgement sequence number of the first packet.
In some embodiments, the network device acting as a forwarding node may intercept the payload of the IP packet, reserve a predetermined field, e.g., the first 12 bytes (covering the port number of the TCP header, the send sequence number, and the acknowledgement sequence number), and take it as part of the packet loss summary packet.
In some embodiments, the network device serving as the forwarding node may set a field that identifies the current packet as a packet loss summary packet as a summary identifier, so that the receiving end may determine that the packet is a lost summary packet, instead of a data packet from the source device.
In some embodiments, the network device as the forwarding node may further generate a payload digest according to the payload content of the first packet based on a 64bit MD5 algorithm, and write the payload digest into the packet loss digest packet.
In some embodiments, the format of the packet loss summary packet may be shown in fig. 1B, where the R field is a summary identifier, the source IP address is an IP address of a source device of the first packet, the destination IP address is an IP address of a destination device of the first packet, the source port is a port of the source device of the first packet, the destination port is a port of the destination device of the first packet, the SEQ is a transmission sequence number of the first packet, and the ACK SEQ is an acknowledgement sequence number of the first packet. The MD5 digest field of the 64bit IP message payload data carries the payload digest.
In step 124, the network device serving as the forwarding node sends the packet loss summary message to the target device of the first message according to the address of the target device of the first message, so that the target device determines that the data packet is lost according to the packet loss summary message, and can determine the information such as the serial number of the lost data packet, so as to facilitate requesting retransmission to the source device as soon as possible.
In step 125, the first message is forwarded to the next hop node normally according to the message forwarding flow in the related art.
By the method, when the message is discarded at the forwarding node, the forwarding node equipment for discarding the message can actively generate the lost abstract message and send the lost abstract message to the target equipment, so that the target equipment can timely acquire the message loss according to the message, the timeliness of message retransmission is improved, the requirements on the use scene and the number of messages are reduced while the processing time delay is reduced, and the reliability and the stability of message transmission are improved.
A flowchart of further embodiments of the message receiving method of the present disclosure is shown in fig. 2.
In step 231, the network device receives a second message with its own address as the destination address. In some embodiments, the network device may determine whether the destination address of the message is a self address after receiving the message, and if the destination address of the message is the self address, determine that the message is a second message, and execute step 232.
In step 232, the network device as the target device determines whether the second message includes a digest identifier. In some embodiments, the digest identification may be a predetermined value at identification bit R.
If it is determined that the summary identifier is not included in the second packet, step 237 is performed.
In some embodiments, if it is determined that the second packet includes the digest identifier, that is, it is determined that the second packet is a packet loss digest packet generated by the forwarding node, step 234 is performed.
In some embodiments, if it is determined that the second packet includes the digest identifier, step 233 may be further performed to improve accuracy of identifying the packet loss digest packet, avoid system confusion caused by other field setup conflicts corresponding to the digest identifier under the protocol, and improve reliability.
In step 233, it is determined whether the second message is based on the TCP protocol. If the second message is based on the TCP protocol, determining that the second message is a packet loss summary message generated by the forwarding node, and executing step 234; otherwise, step 238 is performed.
In step 234, the network device as the target device obtains the port number and the transmission sequence number of the second message in the second message, and in some embodiments, may also read the payload digest.
In step 235, the network device serving as the target device further determines whether the discarded first packet corresponding to the second packet belongs to the communication being processed, and is a packet that has not been received yet. If the discarded first message belongs to the communication being processed and is a message not yet received in the communication being processed, then step 236 is performed; otherwise, if the discarded first message does not belong to the communication being processed, or the discarded first message has been received by the network device through other channels or through retransmission, etc., step 239 is performed.
In some embodiments, the network device may determine, according to the port number and the sending sequence number, whether the discarded first packet corresponding to the second packet belongs to the communication being processed, and is a packet that has not yet been received.
In step 236, the network device as the target device sends a retransmission response to the source device of the discarded first message. In some embodiments, the retransmission response may be sent multiple times in succession to ensure that the source device receives as soon as possible. In some embodiments, the network device as the target device may generate a retransmission response according to the transmission sequence number carried in the second message, so that the source device determines the sequence number of the lost message; in some embodiments, the retransmission response may further include a payload digest to perform a verification effect, thereby improving the accuracy of retransmission.
In step 237, the network device as the target device performs normal message receiving processing procedures, such as message parsing, text reading, and splicing.
In step 238, processing under the corresponding protocol is performed.
In step 239, the second message is discarded without further processing.
By the method, when the network equipment serving as the target equipment of the message loses the packet, the packet loss event can be rapidly found, and then the port of the source equipment corresponding to the lost message and the sequence number of the message are determined, so that the time for finding the packet loss of the middle message is shortened, the retransmission request efficiency is improved, and meanwhile, the reliability and the stability of the message transmission are also improved.
A signaling interaction diagram of some embodiments of the disclosed message transmission method is shown in fig. 3.
In 301-302, a source device of data 31 communicates with a target device 33 via one or more intermediate network devices 32 based on a TCP protocol, and a message Wen Cong is sent to the target device, and the target device feeds back a TCP ACK message response.
In 303, the source device again sends a data message (which is referred to as a first message in this disclosure) that arrives at the intermediate network device.
In 304, the intermediate network device experiences congestion and the like, and needs to discard the first packet. At this time, the intermediate network packet generates a packet loss summary packet based on the method in the embodiment shown in fig. 1.
In 305, the intermediary network device sends a packet loss summary message to the target device.
In 306, the target device determines, after receiving the packet (referred to as the second packet in this disclosure), whether the packet is a packet loss summary packet. In some embodiments, the target device may determine whether to send a retransmission response according to the embodiment shown in fig. 2.
In 307, when the destination device determines that a retransmission response is to be issued, a retransmission ACK request is generated to be sent to the source device 31 of the discarded message for timely retransmission.
Based on the mode in the embodiment, the rapid retransmission function under the TCP short communication scene is realized through methods such as packet loss abstract and receiving end discrimination, and the delay jitter caused by TCP packet loss rapid retransmission is reduced. The method can be applied to scenes with low time delay or high time delay stability requirements. Meanwhile, the invention is compatible with the existing TCP fast retransmission algorithm, does not support equipment of the method, can ignore the method, and does not influence the original processing process.
A schematic diagram of some embodiments of the network device 42 of the present disclosure is shown in fig. 4.
The first message receiving unit 421 can receive a first message from a network device other than the current network device. In some embodiments, the first message receiving unit 421 may determine, after receiving the message, whether the target address of the target message is a self address. And under the condition that the target address is not the self address, determining the current network equipment as a forwarding node and determining the received message as a first message. In some embodiments, the first message is a TCP protocol based message.
The forwarding decision unit 422 can determine whether the received first message can be forwarded currently. If the first packet cannot be forwarded, the packet needs to be discarded, and the packet loss summary generating unit 423 is triggered. In some embodiments, when port congestion occurs or there is insufficient scheduling space in the queue, a packet loss situation may occur, where the network device determines that the received first packet cannot be forwarded.
The packet loss summary generating unit 423 is capable of generating a packet loss summary packet according to the first packet to be discarded. In some embodiments, the packet loss summary message includes a summary identifier, a port number of the first message, and a transmission sequence number. In some embodiments, the packet loss summary packet may further include an acknowledgement sequence number of the first packet.
The sending unit 424 can send the packet loss summary message to the target device of the first message according to the address of the target device of the first message, so that the target device determines that there is a packet loss according to the packet loss summary message, and can determine the information such as the serial number of the lost packet, so as to facilitate requesting retransmission to the source device as soon as possible.
When the message to be forwarded needs to be discarded, the network device can actively generate a missing abstract message and send the missing abstract message to the target device, so that the target device can timely acquire the message loss according to the message, the timeliness of message retransmission is improved, the requirements on the use scene and the number of messages are reduced while the processing time delay is reduced, and the reliability and the stability of message transmission are improved.
A schematic diagram of further embodiments of a network device 53 of the present disclosure is shown in fig. 5.
The second message receiving unit 531 can receive a second message with its own address as a target address. In some embodiments, the second message receiving unit 531 may determine whether the destination address of the message is the own address after receiving the message, and if the destination address of the message is the own address, determine that the message is the second message, and trigger the retransmission determining unit 532.
The retransmission determination unit 532 can determine whether the digest identifier is included in the second message. In some embodiments, the digest identification may be a predetermined value at identification bit R. If the second message includes the abstract identifier, the port number and the sending sequence number of the second message in the second message are obtained to judge whether the discarded first message corresponding to the second message belongs to the communication under processing or not, and the discarded first message is not received yet. In some embodiments, after determining that the second packet includes the digest identifier, it may also be determined whether the second packet is based on a TCP protocol. If the second message is based on the TCP protocol, determining that the second message is a packet loss abstract message generated by the forwarding node, and further judging whether the discarded first message corresponding to the second message belongs to the communication under processing or not, and is a message which is not received yet. If the discarded first message belongs to the communication being processed and is not yet received in the communication being processed, the retransmission response unit 533 is triggered. In some embodiments, if the discarded message is not a message of the communication being processed by the target device or the discarded message is a received message, the retransmission determination unit 532 discards the second message without further processing.
The retransmission response unit 533 can transmit a retransmission response to the source device of the discarded first message. In some embodiments, the retransmission response may be sent multiple times in succession to ensure that the source device receives as soon as possible. In some embodiments, the network device as the target device may generate a retransmission response according to the transmission sequence number carried in the second message, so that the source device determines the sequence number of the lost message; in some embodiments, the retransmission response may further include a payload digest to perform a verification effect, thereby improving the accuracy of retransmission.
The network device can rapidly find the packet loss event caused by the forwarding node, and further determine the source device port and the message sequence number corresponding to the lost message, so that the time for finding the packet loss of the intermediate message is shortened, the retransmission request efficiency is improved, and meanwhile, the reliability and the stability of the message transmission are also improved.
In some embodiments, the retransmission determination unit 532 is further capable of triggering the network device to perform a normal data packet receiving operation if the digest identifier is not included in the second packet. In some embodiments, the retransmission determination unit 532 can trigger the network device to perform processing under a corresponding protocol based on a protocol employed by the second packet, in a case where it is determined that the second packet is not based on the TCP protocol. Such network devices can avoid affecting other network communication processes, improving compatibility with respect to the associated network.
A schematic diagram of an embodiment of a network device of the present disclosure is shown in fig. 6. The network device comprises a memory 601 and a processor 602. Wherein: the memory 601 may be a magnetic disk, flash memory or any other non-volatile storage medium. The memory is used for storing instructions in corresponding embodiments of the message forwarding method, the message receiving method or the message transmitting method. The processor 602 is coupled to the memory 601 and may be implemented as one or more integrated circuits, such as a microprocessor or microcontroller. The processor 602 is configured to execute instructions stored in the memory, so as to improve timeliness, reliability and stability of message retransmission.
In one embodiment, as also shown in fig. 7, a network device 700 includes a memory 701 and a processor 702. The processor 702 is coupled to the memory 701 through a BUS 703. The network device 700 may also be coupled to external storage 705 via a storage interface 704 for invoking external data, and to a network or another computer system (not shown) via a network interface 706. And will not be described in detail herein.
In this embodiment, the data instruction is stored in the memory, and then the processor processes the instruction, so that the timeliness, reliability and stability of message retransmission can be improved.
In another embodiment, a computer readable storage medium has stored thereon computer program instructions which, when executed by a processor, implement the steps of a method of message forwarding, message receiving or message transmitting in corresponding embodiments. It will be apparent to those skilled in the art that embodiments of the present disclosure may be provided as a method, apparatus, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
A schematic diagram of some embodiments of a network system 80 of the present disclosure is shown in fig. 8.
The message sending device 810 can send the first message to the target device 830 via the intermediate node device 820, and when receiving a retransmission response from the target device 830, the message generating device 810 can retransmit a message with a corresponding sequence number according to the retransmission response.
The number of the one or more intermediate node devices 820 is determined by the result of path planning between the message sending device 810 and the target device 830, where each intermediate node device may be a network device in the embodiment shown in fig. 4 mentioned above, or a network device performing any one of the foregoing message forwarding methods as shown in fig. 6 and 7, and may perform any one of the foregoing message forwarding methods.
The target device 830 may be a network device as in the embodiment shown in fig. 5 mentioned above, or a network device as shown in fig. 6 and 7, which performs any one of the above message receiving methods, and is capable of performing any one of the above message receiving methods.
In such a network system, when a message is discarded at a forwarding node, the forwarding node device for discarding the message can actively generate a missing abstract message and send the missing abstract message to a target device, so that the target device can timely acquire that the message is lost according to the message, thereby improving the timeliness of message retransmission, reducing the processing time delay, simultaneously reducing the requirements on the use scene and the number of messages, and improving the reliability and stability of message transmission.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Thus far, the present disclosure has been described in detail. In order to avoid obscuring the concepts of the present disclosure, some details known in the art are not described. How to implement the solutions disclosed herein will be fully apparent to those skilled in the art from the above description.
The methods and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, firmware. The above-described sequence of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the sequence specifically described above unless specifically stated otherwise. Furthermore, in some embodiments, the present disclosure may also be implemented as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
Finally, it should be noted that: the above embodiments are merely for illustrating the technical solution of the present disclosure and are not limiting thereof; although the present disclosure has been described in detail with reference to preferred embodiments, those of ordinary skill in the art will appreciate that: modifications may be made to the specific embodiments of the disclosure or equivalents may be substituted for part of the technical features; without departing from the spirit of the technical solutions of the present disclosure, it should be covered in the scope of the technical solutions claimed in the present disclosure.

Claims (14)

1. A message forwarding method comprises the following steps:
the network equipment determines whether the received first message can be forwarded or not, wherein the target equipment of the first message is not the current network equipment;
generating a packet loss summary message according to the first message under the condition that the first message needs to be discarded, wherein the packet loss summary message comprises a summary identifier, a port number of the first message and a sending sequence number;
and sending the packet loss abstract to the target equipment according to the address of the target equipment of the first message, so that the target equipment sends a retransmission response to the source equipment of the first message according to the packet loss abstract message.
2. The method of claim 1, wherein the network device determining whether the received first message can be forwarded comprises:
after receiving the first message to be forwarded, the network device determines whether the first message can be forwarded successfully,
and determining that the first message needs to be discarded under the condition that the port congestion or the residual resources of a scheduling queue associated with the first message forwarding path are smaller than a preset threshold value.
3. The method of claim 1, wherein the generating a packet loss summary message from the first message comprises:
setting a field for marking the current message as a packet loss abstract message as the abstract mark;
intercepting a preset field of a payload of the first message and writing the preset field of the packet loss abstract message, wherein the preset field comprises a port number and a sending sequence number of the first message.
4. The method of claim 3, wherein the generating a packet loss summary message from the first message further comprises:
generating a payload abstract based on a 64-bit information abstract MD5 algorithm according to the payload content of the first message;
writing the payload abstract into the packet loss abstract message.
5. A message receiving method, comprising:
after receiving a second message, the network device judges whether the second message comprises a summary identifier, wherein a target address of the second message is a self address of the network device, the summary identifier is an identifier for identifying that the second message is a packet loss summary message, and the packet loss summary message is generated by intermediate node equipment for discarding the message;
under the condition that the second message comprises the abstract identifier, the network equipment acquires the port number and the sending sequence number of the discarded message carried in the second message;
the network equipment judges whether the discarded message is not yet received in the communication being processed according to the port number of the discarded message and the sending sequence number;
and if the discarded message is not yet received in the communication being processed by the target device, the network device sends a retransmission response to the source device of the discarded message.
6. The method of claim 5, further comprising:
judging whether the second message is based on a TCP protocol or not under the condition that the second message comprises the abstract identifier;
if the second message is based on the TCP protocol, the network equipment executes the operation of acquiring the port number and the sending sequence number of the discarded message in the second message; otherwise, the network device executes the operation of the second message corresponding protocol.
7. The method of claim 5, further comprising: and if the discarded message is not the message of the communication being processed by the target device or the discarded message is the received message, discarding the second message by the network device.
8. The method of claim 8, wherein the network device sending a retransmission response to the source device of the discarded message comprises:
and the network equipment continuously transmits a retransmission response to the source equipment of the discarded message for a plurality of times, wherein the retransmission response comprises the transmission sequence number.
9. A message transmission method comprises the following steps:
a method of forwarding a message as claimed in any one of claims 1 to 4; and
the message receiving method of any one of claims 5 to 8.
10. A network device, comprising:
a first message receiving unit configured to receive a first message of a network device, which is not current, from a target device of other network devices;
a forwarding judgment unit configured to determine whether the first message can be forwarded;
the packet loss abstract generation unit is configured to generate a packet loss abstract message according to the first message under the condition that the first message needs to be discarded, wherein the packet loss abstract message comprises an abstract identifier, a port number of the first message and a sending sequence number;
and the sending unit is configured to send the packet loss abstract to the target equipment according to the address of the target equipment of the first message, so that the target equipment sends a retransmission response to the source equipment of the first message according to the packet loss abstract message.
11. A network device, comprising:
a second message receiving unit configured to receive a second message with an address of a current network device as a target address;
a retransmission judgment unit configured to:
judging whether the second message comprises the abstract identifier, wherein the abstract identifier is an identifier for identifying that the second message is a packet loss abstract message, and the packet loss abstract message is generated by intermediate node equipment for packet loss;
under the condition that the second message comprises the abstract identifier, acquiring a port number and the sending sequence number of the discarded message carried in the second message;
the target device judges whether the discarded message is a message which is not received in the communication under processing or not according to the port number of the discarded message and the sending sequence number;
if the discarded message is not yet received in the communication being processed by the target equipment, triggering a retransmission response unit;
the retransmission response unit is configured to send a retransmission response to the source device of the discarded message.
12. A network device, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the method of any of claims 1-9 based on instructions stored in the memory.
13. A non-transitory computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of any of claims 1 to 9.
14. A network system, comprising:
the message sending device is configured to send a first message to the target device through the intermediate node device;
one or more intermediate node devices configured to perform the method of any of claims 1-4; and
a target device configured to perform the method of any of claims 5-8.
CN202111375329.2A 2021-11-19 2021-11-19 Message receiving and transmitting method, network equipment, system and storage medium Pending CN116155826A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111375329.2A CN116155826A (en) 2021-11-19 2021-11-19 Message receiving and transmitting method, network equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111375329.2A CN116155826A (en) 2021-11-19 2021-11-19 Message receiving and transmitting method, network equipment, system and storage medium

Publications (1)

Publication Number Publication Date
CN116155826A true CN116155826A (en) 2023-05-23

Family

ID=86349348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111375329.2A Pending CN116155826A (en) 2021-11-19 2021-11-19 Message receiving and transmitting method, network equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN116155826A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117856985A (en) * 2024-03-08 2024-04-09 珠海星云智联科技有限公司 Method, computer device, medium, and program for reporting Wen Chong transmission

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117856985A (en) * 2024-03-08 2024-04-09 珠海星云智联科技有限公司 Method, computer device, medium, and program for reporting Wen Chong transmission

Similar Documents

Publication Publication Date Title
US20170142000A1 (en) Packet control method, switch, and controller
EP2978171B1 (en) Communication method, communication device, and communication program
CN108964943B (en) Method and device for realizing IOAM packaging
CN113709057A (en) Network congestion notification method, proxy node, network node and computer equipment
US8717871B2 (en) Packet retransmission control system, method and program
US10505677B2 (en) Fast detection and retransmission of dropped last packet in a flow
US10116545B2 (en) Method, device and system for processing OAM packet
US10461886B2 (en) Transport layer identifying failure cause and mitigation for deterministic transport across multiple deterministic data links
CN112769939B (en) Big data reliable transmission method for real-time communication
CN112332951B (en) Ethernet frame preemption method, device, equipment and storage medium
CN107547505B (en) Message processing method and device
CN116155826A (en) Message receiving and transmitting method, network equipment, system and storage medium
US7697441B2 (en) Computer system with black hole management
CN111107182B (en) MAC address synchronization method, device, system, equipment and medium
CN113765626A (en) Data transmission method and device of mobile communication system
US10680930B2 (en) Method and apparatus for communication in virtual network
CN113541874A (en) Data transmission method and network equipment
CN108390828B (en) Message forwarding method and device
WO2023051050A1 (en) Network monitoring method and apparatus, and computer storage medium
CN116634459A (en) Method and equipment for confirming telemetry capability of stream following information
JP3950865B2 (en) ATM communication system
CN111447046B (en) Service data transmission method, device, equipment and storage medium
WO2017107083A1 (en) Data sending method and receiving method, apparatus and system
CN112491871A (en) TCP (Transmission control protocol) recombination method and device, electronic equipment and storage medium
CN112953835B (en) Data transmission method, device and system

Legal Events

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