Method for transmitting messages between network equipment

A technology for message transmission and network equipment, applied in the field of data transmission, can solve the problems of message accumulation, consumption of CPU resources, and heavy workload of traversing linked lists, and achieve the effects of low resource consumption, improved efficiency, and simple and convenient implementation.

Active Publication Date: 2010-02-17
WUHAN GUANGFA TECH
View PDF0 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The disadvantage of the polling and scanning method is that if the request message retransmission linked list is too long, the workload of traversing the linked list is very large. When the retransmission timer expires and when the response is received, the entire linked list will be traversed, which will greatly consume CPU resources.
Fallback handling of first send failures can also cause accumulation of messages

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for transmitting messages between network equipment
  • Method for transmitting messages between network equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] 1. First, establish a retransmission array for each communication end node. The retransmission array is used to store the pointer of the message. The data structure of the retransmission array is as follows: figure 1 shown.

[0023] 2. The retransmission array uses the message ID as the unique identifier of the message as the subscript of the array. Through the subscript, the message element can be directly and precisely located in the retransmission array.

[0024] 3. The size of the retransmission array can be set according to the hardware bus structure. When the message ID is 16 bits, if the size of the created array is 65535 (2 to the 16th power), there will be no duplication of message IDs. At this time, you can directly locate in the array by subscript; if limited by the system structure, when the size of the retransmission array is less than 65536, such as 256 (2 to the 8th power), there may be duplication of message IDs, and when message ID conflicts occur, a ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for transmitting messages between network equipment, which comprises the following steps: a, establishing a retransmission array by taking a message identifier ID as an array index; b, when a request is generated, inserting the request into the retransmission array by taking the message identifier ID as the array index, and sending a message; c, sending a request message, simultaneously setting a retransmission timer for the sent message, if a response is not received when the timer is time out, taking opposite end ID + message ID as a return value, retrievinga unit that the opposite-end node ID takes the message ID as the array index, positioning to a retransmission array element for retransmitting the request message, accumulating transmission times, and deleting the message from a retransmission list if the transmission times exceed a designed maximum retransmission time threshold; and d, when the response is received, directly positioning to the retransmission array element according to the message ID, and deleting the corresponding request message. The method can greatly improve the efficiency of retransmitting the messages of the network equipment, acquires flexible balance between system resource occupation and the timeliness of message notification restoration, and ensures the accuracy of message transmission.

Description

technical field [0001] The invention relates to a message transfer method between network devices in the field of data transmission. Background technique [0002] In the field of data transmission, more and more application systems use message notification as the interaction mode. When the message is transmitted, due to the failure of the two systems or the transmission link, the message is lost during the transmission process and cannot be delivered in a timely and reliable manner. In response to this problem, various message resending mechanisms have been formed to resend messages that have not been delivered successfully. Using the resend mechanism, in the case of unsuccessful sending for the first time, multiple sending attempts can be made, which largely solves the problem of undeliverable message sending. However, for medium and long-term communication failures, due to multiple retransmission attempts, both sending time is wasted and system resources are occupied, re...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L1/18H04L12/56
Inventor 彭凯王学卢刚
Owner WUHAN GUANGFA TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products