CN113726635B - Message processing method and device and electronic equipment - Google Patents

Message processing method and device and electronic equipment Download PDF

Info

Publication number
CN113726635B
CN113726635B CN202111006852.8A CN202111006852A CN113726635B CN 113726635 B CN113726635 B CN 113726635B CN 202111006852 A CN202111006852 A CN 202111006852A CN 113726635 B CN113726635 B CN 113726635B
Authority
CN
China
Prior art keywords
message
convergence
data messages
length
tunnel
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
CN202111006852.8A
Other languages
Chinese (zh)
Other versions
CN113726635A (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.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data Technologies 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 New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN202111006852.8A priority Critical patent/CN113726635B/en
Publication of CN113726635A publication Critical patent/CN113726635A/en
Application granted granted Critical
Publication of CN113726635B publication Critical patent/CN113726635B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • 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
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a message processing method, a message processing device and electronic equipment. In the application, the network device can aggregate and encapsulate the data messages passing through the same tunnel, and the plurality of data messages are aggregated together to be used as one aggregate message to be transmitted by the tunnel, so that the scheme that each data message is separately packaged by the tunnel and then is respectively transmitted in the prior art is replaced, the total number of data messages transferred in the tunnel is reduced, and the network bandwidth utilization rate is also improved. By applying the scheme, the problem of low network bandwidth utilization efficiency of the small data message in tunnel transmission can be effectively solved.

Description

Message processing method and device and electronic equipment
Technical Field
The present disclosure relates to network tunneling technologies, and in particular, to a method and apparatus for processing a message, and an electronic device.
Background
In current applications, common tunneling protocols include: generic routing encapsulation GRE, virtual extended local area network VxLAN, internet security protocol IPSec, IPv6 based segment routing SRv, etc. Taking VxLAN as an example, for a data packet tunneled by VxLAN, a tunnel header with a length of 50 bytes needs to be encapsulated before the original data packet. Similarly, for tunnels under other tunneling protocols, when a data packet is tunneled, the tunneling header of the corresponding byte is encapsulated on the data packet.
In some cases, the payload length of small data messages transmitted in the network, such as those used for voice, game control, etc., is relatively small, such as typically around 35 bytes. When these small data packets are tunneled, they encapsulate a byte of the tunnel header as described above. The encapsulated tunnel header greatly increases the length of the whole message and occupies more network bandwidth. For example, for a small data packet with a payload length of 35 bytes, after encapsulating the VxLAN tunnel header, the packet Wen Changdu is increased to 85 bytes, which would occupy a relatively large amount of network bandwidth compared to the original small data packet transmission. The situation of adopting other tunnel protocols to package the tunnel head in the small data message is similar.
Disclosure of Invention
The application provides a message processing method, a message processing device and electronic equipment, so as to improve the network bandwidth utilization efficiency during small data message transmission.
According to a first aspect of an embodiment of the present application, there is provided a method for processing a message, where the method is applied to a network device, and includes:
when determining that the current received data message is forwarded through a tunnel between the device and the opposite terminal device, storing the current received data message into an output interface queue corresponding to the tunnel;
When a message convergence packaging event is detected, N data messages meeting preset conditions are selected from the output interface queue, wherein N is more than or equal to 2; the sum of the total message length of the N data messages and the length of the convergence encapsulation head is smaller than or equal to the maximum transmission unit MTU required by the tunnel, the length of the convergence encapsulation head is the length of the convergence encapsulation head required by the network device when the N data messages are converged and encapsulated, and the length of the convergence encapsulation head at least comprises: the length of the tunnel header packaged during tunnel transmission and the length of the separation mark used for separating the N data messages when the network equipment performs aggregation packaging on the N data messages are used for carrying out the aggregation packaging;
the N data messages are assembled and packaged to obtain an assembled message, and the assembled message is forwarded through the tunnel; the convergence packet carries a convergence encapsulation head, and the convergence encapsulation head at least comprises: the tunnel header is used for separating the separation identifiers of the N data messages.
According to a second aspect of embodiments of the present application, there is provided a method for processing a message, where the method is applied to a network device, and includes:
receiving an aggregation message sent by opposite terminal equipment through a tunnel; the converged message is obtained by the opposite terminal device through converging and packaging N data messages, the converged message carries a converged packaging head, and the converged packaging head at least comprises: the length of the tunnel header packaged during tunnel transmission and the length of the separation mark used for separating the N data messages when the opposite terminal equipment performs convergence packaging on the N data messages are used;
And decapsulating the converged messages, obtaining the N data messages according to the separation identifiers obtained after the decapsulation, and forwarding the N data messages respectively.
According to a third aspect of embodiments of the present application, there is provided a packet processing apparatus, the apparatus being applied to a network device, including:
the message storage unit is used for storing the currently received data message into an output interface queue corresponding to the tunnel when determining that the currently received data message is forwarded through the tunnel between the device and the opposite terminal device;
the message selecting unit is used for selecting N data messages meeting preset conditions from the output interface queue when a message convergence packaging event is detected, wherein N is more than or equal to 2; the sum of the total message length of the N data messages and the length of the convergence encapsulation head is smaller than or equal to the maximum transmission unit MTU required by the tunnel, the length of the convergence encapsulation head is the length of the convergence encapsulation head required when the N data messages are converged and encapsulated, and the length of the convergence encapsulation head at least comprises: the length of the tunnel header packaged during tunnel transmission and the length of a separation mark used for separating the N data messages when the N data messages are packaged in a converging way;
The message aggregation unit is used for carrying out aggregation encapsulation on the N data messages to obtain an aggregated message, and forwarding the aggregated message through the tunnel; the convergence packet carries a convergence encapsulation head, and the convergence encapsulation head at least comprises: the tunnel header is used for separating the separation identifiers of the N data messages.
According to a fourth aspect of embodiments of the present application, there is provided a packet processing apparatus, the apparatus being applied to a network device, including:
the message receiving unit is used for receiving the converged message sent by the opposite terminal equipment through the tunnel; the converged message is obtained by the opposite terminal device through converging and packaging N data messages, the converged message carries a converged packaging head, and the converged packaging head at least comprises: the length of the tunnel head packaged during tunnel transmission and the length of the separation mark used for separating the N messages when the opposite terminal equipment performs convergent packaging on the N messages are used;
and the message forwarding unit is used for decapsulating the converged message, obtaining the N data messages according to the separation identifiers obtained after the decapsulation, and forwarding the N data messages respectively.
According to a fifth aspect of embodiments of the present application, there is provided an electronic device, including a memory, a processor, and a program stored on the memory and executable on the processor, wherein the processor implements the following method when executing the program: any of the above-described message processing methods.
According to the technical scheme, in the embodiment, the network equipment can assemble and package the data messages passing through the same tunnel, and the data messages are assembled together to be used as one assembled message to be transmitted by the tunnel, so that the scheme that each data message is independently packaged by the tunnel and then is respectively transmitted in the prior art is replaced, the total number of data messages transferred in the tunnel is reduced, and the network bandwidth utilization rate is also improved.
Drawings
FIG. 1 is a schematic diagram of a network tunnel networking architecture;
FIG. 2 is a diagram of a message encapsulation format;
FIG. 3 is a flow chart of a first method provided in an embodiment of the present application;
FIG. 4 is a flowchart illustrating steps according to an embodiment of the present disclosure;
FIG. 5 is a flowchart illustrating another specific step according to an embodiment of the present disclosure;
FIG. 6 is a diagram illustrating another message packing format;
FIG. 7 is a flow chart of a second method provided in an embodiment of the present application;
fig. 8 is a block diagram of a first device according to an embodiment of the present application;
fig. 9 is a block diagram of a second apparatus according to an embodiment of the present application.
Detailed Description
In order to better understand the technical solution in the embodiments of the present application and make the above objects, features and advantages of the embodiments of the present application more obvious, the technical solution in the embodiments of the present application is described in further detail below with reference to the accompanying drawings.
Fig. 1 illustrates a case in which one data packet is tunneled.
In fig. 1, a network device 101 is connected to a private network 104, a network device 102 is connected to a private network 105, and a tunnel 103 is established between the network device 101 and the network device 102, so that data message communication between the private network 104 and devices in the private network 105 can be realized. Some of the major tunneling protocols currently include: GRE, vxLAN, IPSec, SRv6, etc., the specific tunneling protocol used in this embodiment is not limited.
The data message is transmitted through the tunnel, a tunnel encapsulation needs to be added in the data message, and specific tunnel encapsulation content is determined according to a protocol used by the tunnel, for example, for a VxLAN tunnel, a VxLAN tunnel header needs to be added before an original data message as the tunnel encapsulation, for a SRv tunnel, encapsulated message information needs to be added before an original data message load as the tunnel encapsulation, and the specific content or position of the tunnel encapsulation in the original data message is not limited in this embodiment.
Under the network architecture shown in fig. 1, fig. 2 illustrates one of the tunnel packages, where the tunnel package used corresponds to the VxLAN tunnel in fig. 1 and is a VxLAN package.
In the illustrated embodiment, the data packets are sent to the HostA1 and HostB1 in the private network 104 and the HostB2 in the private network 105 through the Vxlan tunnel 103 using the network device 101 and the network device 102 as tunnel endpoints.
Two data messages are shown in fig. 2, wherein the white part is the original message content, the first data message is the data message sent from HostA1 to HostA2, the source IP address is IPA1, and the destination IP address is IPA2; the second data message is a data message sent from HostB1 to HostB2, and the source IP address is IPB1 and the destination IP address is IPB2. Whereas the shaded part of the figure is the tunnel encapsulation applied, EP1 is tunnel endpoint 1, EP1 address is the address of network device 101; EP2 is the tunnel endpoint 2, and the EP2 address is the address of the network device 102, which is referred to as the first data packet in fig. 2 as the packet a and the second data packet as the packet B for convenience of description.
In a network, there are application scenarios of a large number of small data message transmissions, such as voice and game control messages. The existing statistics show that the payload length of most network game data messages is about 35 bytes, and for these small data messages, the tunnel encapsulation added during tunnel encapsulation can greatly increase the length of the whole data message. For example, for a small data packet with a payload of 35 bytes, after VxLAN tunneling encapsulation, the length of the data packet is increased to 85 bytes, and is increased by 143%, the payload only occupies 41%, and the situation is similar after other tunneling protocol encapsulation is adopted, so that the problem of network bandwidth waste exists. Moreover, when the network device processes the data messages, the number of the data messages processed per second is basically fixed, and the processing performance of a large number of small data messages cannot reach the line speed.
Therefore, in the prior tunnel technology, under the condition of a large number of small data messages, the problem of low network bandwidth utilization efficiency and low forwarding efficiency of equipment processing exists.
As can be seen from fig. 2, for the data packet to be transmitted in the same direction through the same tunnel, even if the source IP address and the destination IP address of the data packet are different, the added tunnel encapsulation contents may be the same, so that a large number of tunnel encapsulation bytes with the same content are transmitted in the same tunnel, resulting in unnecessary waste of network bandwidth.
In this regard, the present application provides a message processing method as shown in fig. 3, and the implementation process shown in fig. 3 is described in detail below with reference to a specific embodiment.
Referring to fig. 3, fig. 3 is a flowchart of a first method provided in an embodiment of the present application. The flow applies to network devices. As shown in fig. 3, the process may include the steps of:
step 301: when the current received data message is forwarded through the tunnel between the device and the opposite terminal device, the current received data message is stored in an output interface queue corresponding to the tunnel.
In this embodiment, the network device receives data messages of different source IPs and destination IPs, and relevant IP address information is carried in the data messages. And the network equipment searches a forwarding table according to the IP address information for the currently received data message, and when determining that the currently received data message needs to be sent to the network equipment serving as an endpoint on the other side of the tunnel by taking the equipment as one of the endpoints, the network equipment divides the currently received data message into an output interface queue corresponding to the corresponding tunnel and waits for subsequent operation.
Taking the data packet shown in fig. 2 as an example, after receiving the packet a, the network device 101 searches a forwarding table according to the information of the source IPA1 and the destination IPA2 carried in the packet a, and when determining that the packet a needs to be sent to the network device 102 through the tunnel 103, divides the packet a into an outbound queue corresponding to the tunnel 103, and waits for subsequent operations; after receiving the packet B, the network device 101 divides the packet B into the outgoing interface queue corresponding to the tunnel 103 and waits in the same queue as the packet a based on the same flow.
And for other data messages which do not need to be sent through the tunnel 103, if the data messages are to be sent to the opposite terminal equipment through other tunnels taking the network equipment as tunnel endpoints, the data messages are divided into other outgoing interface queues corresponding to the corresponding tunnels. If the device is merely taken as a tunnel intermediate device or a data message sent through a tunnel is not needed, the processing is performed according to the corresponding rule of the network device, which is not limited in this embodiment.
Preferably, in this embodiment, multiple outgoing interface queues may be corresponding to the same tunnel, and different queues are provided with corresponding priorities. And the network equipment divides the data message into an output interface queue which corresponds to the corresponding tunnel and has the matched priority according to the IP address information and the priority information in the received data message. In this embodiment, the priority information may be a message Traffic Class (Traffic Class), a priority for indicating a Traffic flow to which the data message belongs, a Type of Service (ToS), or the like, which is not limited in this embodiment.
Step 302: when a message convergence encapsulation event is detected, N data messages meeting preset conditions are selected from the output interface queue, wherein N is more than or equal to 2.
In this embodiment, when the network device detects a packet aggregation and encapsulation event, corresponding N data packets are selected according to a preset selection condition, and waiting for subsequent aggregation and encapsulation, where N is greater than or equal to 2 in this embodiment. Preferably, for different aggregate package events, different message selection conditions can also be set for the corresponding events. As for the specific detection manner of the convergence encapsulation event and the selection range of the N data messages corresponding to different events, the following detailed description will be omitted herein in connection with the picture and the specific embodiment.
The selected N data messages are then subjected to aggregation encapsulation, where the aggregation encapsulation refers to adding a separation identifier before each data message to serve as separation, aggregating the N data messages as one message, and adding a tunnel encapsulation to the aggregated message to replace an encapsulation mode that needs to add tunnel encapsulation to the N data messages respectively, where N is greater than or equal to 2 in this embodiment.
When N data messages for subsequent aggregation and encapsulation are selected, the total length of the message after the selected N data messages are aggregated is required to be smaller than or equal to the maximum transmission unit MTU required by the tunnel. The total length of the converged messages comprises the total length of the messages of the N data messages and the length of the converged encapsulation head. In this embodiment, the aggregate packing head length includes at least: the length of the tunnel header encapsulated during tunneling and the length of the separation identifier for separating the N data packets when the N data packets are encapsulated in a converging manner.
The length and content of the separation mark can be preset, and the separation mark can only contain necessary mark bytes for splitting and obtaining N data messages by the receiving device of the subsequent convergence message, preferably, the separation mark can also contain data message length information, convergence time information, convergence message number and sequence number information and the like, and the length and the specific content of the separation mark are not limited in the embodiment.
The embodiment does not limit the selection manner of the N data messages under the message aggregation and encapsulation events and different aggregation and encapsulation events. Some embodiments regarding the message convergence encapsulation event and the selection of N data messages are given below by way of example, and it should be noted that these embodiments are for more clearly illustrating the solution of the present embodiment, and are not limiting to the present application.
For convenience of subsequent description, first, short for message convergence encapsulation event related conditions is specified:
recording that the sum of the total message length of the data messages in the outgoing interface queue and the length of a convergence encapsulation head required when the existing data messages in the outgoing interface queue are converged and encapsulated is larger than MTU is 1, wherein the convergence encapsulation head length at least comprises: the length of the tunnel head, and the length of the separation mark;
Recording the condition 2 that the length of a single data message is greater than a set length threshold value, wherein the length threshold value is obtained by presetting, and can be set by referring to information such as the data message convergence rate, the data message forwarding rate, the average length of forwarding data messages and the like of the equipment, and the embodiment is not limited to the condition;
condition 3 is noted that "the timing time of the timer expires".
Still further, it is also possible to:
recording a condition 4 that the set length threshold is less than or equal to 0, wherein the length threshold is the length threshold in the condition 2;
condition 5 is noted that "the timing time of the set timer is less than or equal to 0", wherein the timing time is the timing time in condition 3.
Preferably, to further enhance the effect of this embodiment, different processing manners may be adopted according to whether the egress is congested during the forwarding of the data packet. For example, if congestion does not occur during forwarding of the data message, a timer may be started and waiting for a certain time, for example, 50us, where the timing time of the timer may be set according to the actual situation, for example, setting is performed according to parameters such as priority of a service flow to which the data message belongs, average delay of data message transmission, average time consumption of data message aggregation and encapsulation, and the like; if congestion occurs during data message forwarding, messages are accumulated in the outlet buffer, a timer is not set any more, and the data messages meeting the length condition are selected as N data messages. However, the embodiment is not limited to how to determine whether congestion occurs or not, and how to determine whether to start the timer, for example, whether the timer needs to be started or not may be determined by whether the data packet currently received and stored in the outbound queue corresponding to the tunnel by the device is the first packet in the outbound queue.
When the data message currently received and stored in the corresponding outgoing interface queue is the first message of the queue, the device can be regarded as a congestion-free condition, and starts a timer, in this case, the device continuously transfers the data message meeting the conditions in the received data message to the queue, and detects whether a convergence encapsulation event occurs in the queue according to the existing and newly transferred data messages in the queue:
recording that the condition 3 is met and the condition 1,4 and 5 is not met is one of the class 1 convergence encapsulation events, and selecting all data messages in the outbound interface queue as N data messages when the class 1 convergence encapsulation event is determined to be detected, and further, closing a timer;
and recording that the condition 1 is met and the condition 3,4 and 5 is not met is one of the class 2 convergence encapsulation events, and when the class 2 convergence encapsulation event is determined to be detected, selecting all data messages except the designated message in the outbound interface queue as N data messages, and further closing a timer, wherein the designated message refers to the data message finally stored in the outbound interface queue, and after the message is added into the outbound interface queue, the sum of the total length of the messages in the queue and the length of the convergence encapsulation head exceeds the MTU length.
It should be noted that, the "class 1 aggregate package event" and "class 2 aggregate package event" are not limited to specific events corresponding to specific conditions, but are generic terms for the same class of aggregate package events in subsequent processing operations, for example:
"condition 2 is satisfied, condition 1,3,4,5 is not satisfied", "condition 3 is not satisfied, condition 1,2,4,5 is not satisfied", "condition 2,3 is not satisfied, condition 1,4,5" is not satisfied, and the like, also belongs to some possible cases of class 1 convergence encapsulation event, after detecting the above cases, all data messages in the outbound interface queue can be selected as N data messages, and further, a timer can be closed;
"satisfy condition 1, do not satisfy condition 4,5", "satisfy condition 1, do not satisfy condition 2,4,5", "satisfy condition 1,3, do not satisfy condition 4,5", "satisfy condition 1,2, do not satisfy condition 4,5", "satisfy condition 1,3, do not satisfy condition 2,4,5", "satisfy condition 1,2,3, do not satisfy condition 4,5", etc., also belong to some possible cases of class 2 convergence encapsulation event, after detecting above situation, can select all data messages except appointed message in the outgoing interface queue as N data messages, further, can also close the timer;
It should be noted that the above-listed cases are merely exemplary descriptions of cases that may occur in the present embodiment, and in practical applications, the contents of the judgment conditions, the judgment order, the removal of some judgment conditions, or the selection of whether to completely detect all conditions, etc. may be adjusted according to the specific cases, which is not limited in the present embodiment. For example, assume that in a specific embodiment, the judgment order for the above conditions 1 to 5 is: if conditions 4,5, 1, 2, and 3 are known to satisfy conditions 1,3 and not satisfy conditions 2,4, and 5, in this embodiment, it may be determined that the type 2 aggregate package event is detected directly after conditions 4 and 5 are determined not to be satisfied and condition 1 is satisfied, or it may be determined that the type 2 aggregate package event is detected after conditions 2 and 3 are continuously determined, which is not limited in this embodiment.
As a preferable scheme, under the condition of no congestion, if a certain outgoing interface queue is detected to be 'meeting the condition 4', 'meeting the condition 5', 'meeting the conditions 4 and 5', the data messages in the queue are not assembled and packaged any more, and the corresponding N data messages are not selected from the queue any more naturally, and all the data messages in the queue only need to be directly sent through tunnel packaging. It should be noted that, in this embodiment, the preset length threshold and the timer timing time may be set for different queues respectively, so that after the length threshold or the timer timing time is set according to the actual requirement and is less than or equal to 0, the other queues are not affected to continue to adopt the technical scheme of this embodiment and obtain the corresponding effect.
In this embodiment, if the data packet currently received and stored in the corresponding output interface queue by the device is a non-first packet of the queue, the timer is not required to be started, and whether the corresponding condition of the packet aggregation and encapsulation event is satisfied can be determined according to the existing data packet in the queue and the currently received data packet. In this case, appropriate adjustment is made to the corresponding determination conditions:
recording the condition 1' that the sum of the message length of the currently received data message, the message total length of the data message in the outgoing interface queue and the convergence encapsulation head length required when the currently received data message and the existing data message in the outgoing interface queue are converged and encapsulated is larger than MTU;
recording that the message length of the currently received data message is greater than a set length threshold value as a condition 2';
condition 3 is unchanged, and it should be noted that when the currently received data packet is not the first packet in the queue, the timer is not required to be started, the currently started timer and the related conditions are not affected, and the timer may be started or not started, which is not limited in this embodiment.
In this case, the device may detect, according to the existing data packet in the queue and the currently received data packet, whether a convergence encapsulation event occurs in the queue:
Recording that the condition 2 is met and the condition 1',4 and 5 is not met is one condition of the class 1' convergent packaging event, when the class 1' convergent packaging event is determined to be detected, selecting all data messages in the outbound interface queue as N data messages, and further, if a timer is started, closing the timer;
recording that the condition 1 is met and the condition 3,4 and 5 is not met is one of the 2 'type convergence packaging events, when the 2' type convergence packaging event is determined to be detected, selecting all the data messages except the currently received data message in the output interface queue as N data messages, and further, if a timer is started, closing the timer;
for other possible condition combinations, the corresponding relationship of the condition combinations can also be the same as the condition that the data message currently received and stored in the corresponding output interface queue by the equipment is the first message of the queue, the condition 1 and the condition 2 are replaced by the condition 1', the condition 2', the class 1 and the class 2 are replaced by the class 1', the class 2' are replaced by the class 1', the class 2 are replaced by the class 2, and the redundant description is omitted here.
Further, in this embodiment, if congestion occurs during forwarding of the data packet, the data packet may be stacked in the egress buffer, without setting a timer, and the data packet satisfying the length condition may be selected to be N data packets. That is, in the case of congestion, whether the condition 3 or the condition 5 is satisfied is no longer taken as a basis for detecting the aggregate package event. Meanwhile, after the convergence encapsulation event is detected, the timer does not need to be closed, because the timer is not started.
In this case, the basis and corresponding processing manner for detecting whether the aggregate package event occurs in the queue by the present device may be described in the foregoing, for example:
for the conditions that the condition 2 is met, the conditions 1 and 5 are not met, the condition 2 'is met, the conditions 1' and 5 'are not met, and the like, the method can also be used as a convergence packaging event, and the subsequent processing mode for detecting the convergence packaging event corresponds to the detection of the 1 st or 1' type convergence packaging event;
for the conditions of 'meeting the conditions 1, not meeting the conditions 2 and 5', 'meeting the conditions 1 and 2, not meeting the conditions 5', 'meeting the conditions 1', not meeting the conditions 2', 5', 'meeting the conditions 1',2', not meeting the conditions 5', and the like ', the method can also be used as a convergence packaging event, and the subsequent processing mode for detecting the convergence packaging event corresponds to detecting the convergence packaging event of the type 2 or the type 2'.
Corresponding to the foregoing preferred solution, it should be noted that, in the case that congestion occurs and there is no need to start a timer, the aggregation encapsulation of the packets in the queue and the N data packet selection conditions will not be affected even if the "condition 5" is detected as being satisfied, because the timer-related determination condition is not involved. Only when the condition 4 is met, all the data messages in the queue are directly sent through the tunnel encapsulation.
For ease of understanding, the process of detecting the message convergence encapsulation event and selecting the N data messages in step 302 is described in further detail below in connection with more specific embodiments.
Referring to fig. 4, fig. 4 is a schematic flow chart of step 302 provided in an embodiment of the present application.
In the case corresponding to fig. 4, the device starts a timer, in which case, the device continues to transfer the data message conforming to the condition to the queue, and detects whether a convergence encapsulation event occurs in the queue according to the existing and newly transferred data messages in the queue.
Assuming that a new data message is transferred into the queue, at the moment, the sum of the total length of the message of the data message in the outgoing interface queue and the length of a convergence encapsulation head required when the existing data message in the outgoing interface queue is subjected to convergence encapsulation is smaller than or equal to the MTU; the length of a single message is larger than a set length threshold value; the timing time of the timer expires; setting the length threshold to be larger than 0; the timing time of the timer is set to be greater than 0", that is, the aforementioned conditions 2,3 are satisfied and the conditions 1,4,5 are not satisfied. Under this assumption, the determination and execution are performed according to the step sequence of 400-401-402-403-404-412-422-430 in fig. 4, to confirm that the class 1 convergence encapsulation event is detected, and all the data packets in the outbound queue are selected as N data packets.
It should be noted that the judging flow shown in fig. 4 is only one possible case of the present embodiment, and in practical application, the content of the judging conditions, the judging sequence, the removal of some judging conditions or the selection of whether to completely detect all conditions may be adjusted according to the specific situation, which is not limited in the present embodiment. For example, in fig. 4, the order of the judgment of the conditions 4 and 5 and the order of the judgment of the conditions 2 and 3 may be adjusted, or the 5 conditions may be completely judged in turn, and then the subsequent processing method may be selected according to the judgment result.
Assuming another case, a new message is transferred to the queue, and the sum of the total message length of the data message in the outbound interface queue and the length of the convergence encapsulation head required when the existing data message in the outbound interface queue is converged and encapsulated is larger than the MTU; setting the length threshold to be larger than 0; the timer is set to have a timing time longer than 0", that is, the condition 1 is satisfied and the conditions 4 and 5 are not satisfied, and then the conditions 2 and 3 can be continuously judged and not judged, and an implementation case where the judgment is not performed is given as an example. In this case, the determination and execution may be performed according to the step sequence of 400-401-402-403-411-421-430 in fig. 4, to confirm that the class 1 convergence encapsulation event is detected, select all the data packets except the specified packet in the outbound queue as N data packets, and close the timer. The specific message has been described in detail, and will not be described in detail.
For ease of understanding, the process of detecting the message convergence encapsulation event and selecting the N data messages in step 302 is described in further detail below in connection with another more specific embodiment.
Referring to fig. 5, fig. 5 is a schematic flow chart of another step 302 provided in an embodiment of the present application.
In the case corresponding to fig. 5, the queue is in a congestion condition, a timer is not required to be started, and the data message currently received and stored in the corresponding outbound queue by the device is a non-first message of the queue, and at this time, whether the corresponding condition of the message aggregation and encapsulation event is met can be judged according to the existing message in the queue and the currently received data message.
At this time, the judging conditions in the flow are correspondingly adjusted, the condition 1 is adjusted to the condition 1', the condition 2 is adjusted to the condition 2', the condition 3 and the condition 5 are not involved any more, and the specific adjusting content is described in detail before and is not repeated.
Assuming that the currently received data message is transferred to the queue, at this time, the sum of the message length of the currently received data message, the message total length of the message in the outbound interface queue, and the convergence encapsulation header length required when the currently received data message and the existing data message in the outbound interface queue are converged and encapsulated is smaller than or equal to the MTU; the message length of the currently received data message is larger than a set length threshold value; the length threshold is set to be greater than 0", that is, the aforementioned condition 2 'is satisfied, and the conditions 1',4 are not satisfied. Under this assumption, the determination and execution are performed according to the step sequence of 500-501-502-503-512-522 in fig. 5, to confirm that the class 1' convergence encapsulation event is detected, and to select all the data packets in the outbound queue as N data packets.
Assuming another case, the currently received data message is transferred to the queue, and at this time, the sum of the message length of the currently received data message, the total message length of the data message in the outgoing interface queue, and the convergence encapsulation head length required when the currently received data message and the existing data message in the outgoing interface queue are converged and encapsulated is larger than the MTU; the message length of the currently received data message is smaller than or equal to a set length threshold value; the length threshold is set to be greater than 0", that is, the aforementioned condition 1 'is satisfied, and the condition 2' and 4 is not satisfied. Under this assumption, the determination and execution are performed according to the step sequence of 500-501-502-511-521 in fig. 5, to confirm that the class 2' convergence encapsulation event is detected, and all the data messages except the currently received data message in the outbound queue are selected as N data messages.
It should be noted that, when the data message currently received and stored in the corresponding output interface queue is the first message of the queue, the present device may indicate that the queue is in a congestion-free state, and may start a timer; however, when the data message currently received and stored in the corresponding output interface queue is a non-first message of the queue, the queue cannot be proved to be in a congestion state, and the timer may be started or not started at this time. The examples given in fig. 4 and 5 are only two of many possible scenarios for the present embodiment, and many other scenarios are possible.
For example, the queue is not congested and the device currently receives and stores data messages in the corresponding egress interface queue as non-first messages of the queue. At this time, unlike the flow shown in fig. 5, condition 3 and condition 5 need to be considered, but only conditions 1, 2, class 1 and class 2 aggregate package events in fig. 4 need to be respectively adjusted to conditions 1', 2', class 1', class 2 aggregate package events, so that the processing can be directly referred to the case of fig. 4, and will not be separately described.
Thus, several possible operational flows of step 302 are illustratively described in connection with the flow diagrams of the embodiments of FIGS. 4 and 5.
Step 303: and carrying out aggregation encapsulation on the N data messages to obtain an aggregation message, and forwarding the aggregation message through a tunnel.
N data messages meeting preset conditions are selected through detecting the convergence encapsulation event. For the N data messages which are selected, a separation mark is added before each data message to be used as separation, the N data messages are collected to be used as one message, and a tunnel packaging mode which is originally needed to be added for the N data messages is replaced by adding a tunnel packaging mode for the collected messages, so that the collected messages can be transmitted through the tunnel. Because the N data messages in the same queue are divided into the corresponding queues corresponding to the target tunnels according to the IP address information table lookup by the equipment, the converged messages obtained by converging and packaging can be unambiguously transmitted to the tunnel opposite terminal equipment through the tunnels.
Under the network architecture shown in fig. 1, fig. 6 illustrates one of the cases of convergence encapsulation by way of example. In fig. 6, a converged message is drawn in two rows for the sake of clarity, and the dashed lines represent the actual connection positions of the contents of the two rows of messages.
In fig. 6, the messages are a message a and a message B in fig. 2, and after separation identifiers are added to converge, a converged message is obtained by encapsulating the messages in a VxLAN tunnel, and for convenience of description, the message is referred to as a converged message AB.
Assume that in step 302, a corresponding convergence encapsulation event is detected, and a packet a and a packet B are selected as the N data packets, where n=2; in step 303, the packet a and the packet B are assembled and encapsulated to obtain an assembled packet AB, and the assembled packet AB is sent to the network device 102 from the network device 101 through the VxLAN tunnel 103.
Wherein, the message A and the message B are assembled and packaged, and the specific operation for obtaining the assembled message AB is as follows:
and adding a separation mark 1 before the message A, adding a separation mark 2 before the message B, converging the message A and the message B after adding the separation mark as one message, carrying out tunnel encapsulation, and adding corresponding information such as a VxLAN head and the like to obtain a converged message AB.
The separation identifier 1 and the separation identifier 2 may be the same content or different content, and are determined according to the content actually contained in the separation identifier, for example, when the separation identifier only contains the necessary identifier bytes for splitting the receiving device for the subsequent converged message to obtain N messages, the contents of the separation identifier 1 and the separation identifier 2 may be the same; when the separation mark includes contents such as data message length information, convergence time information, convergence sequence number information, etc., the separation mark 1 is different from the separation mark 2 in content, which is not limited in this embodiment.
In this embodiment, for the case of performing aggregation encapsulation on more than 2 data packets, for example, the solution of performing aggregation encapsulation on the packet a, the packet B, and the packet C to obtain the aggregated packet ABC may be performed with reference to the operation of obtaining the aggregated packet AB. The embodiment does not limit the number of the specific messages actually participating in the convergence encapsulation, the number of the data messages participating in the convergence encapsulation is more than or equal to 2, and the total length after convergence does not exceed the tunnel MTU value.
Thus, the description of the flow shown in fig. 3 is completed.
According to the technical scheme, in the embodiment, the network equipment can assemble and package the data messages passing through the same tunnel, and the data messages are assembled together to be used as one assembled message to be transmitted by the tunnel, so that the scheme that each data message is independently packaged by the tunnel and then is respectively transmitted in the prior art is replaced, the total number of data messages transferred in the tunnel is reduced, and the network bandwidth utilization rate is also improved.
Further, when the network device processes the message, the number of data messages processed per second is basically fixed, and the processing performance of a large number of small data messages cannot reach the line speed, so the scheme provided by the embodiment also plays a role in reducing the number of times of table look-up and message header processing of the network device by reducing the total number of data messages transferred in the tunnel, and achieves the effect of improving the forwarding efficiency.
The implementation process of receiving the aggregate message and performing the corresponding subsequent operation by the tunnel peer device shown in fig. 7 is described in detail below with reference to specific embodiments.
Referring to fig. 7, fig. 7 is a flowchart of a second method provided in an embodiment of the present application, where the flowchart is applied to a network device. The network device may be a tunnel peer network device connected to the network device corresponding to the first method flowchart through a tunnel. As shown in fig. 7, the process may include the steps of:
step 701, receiving an aggregate message sent by a peer device through a tunnel.
The convergence message is obtained by carrying out convergence encapsulation on N data messages by opposite terminal equipment, and the convergence encapsulation head at least comprises: the tunnel head encapsulated during tunnel transmission and the separation identifier of the opposite terminal equipment are used for separating N data messages when the N data messages are assembled and encapsulated. The peer device refers to the network device corresponding to the first method flowchart provided in fig. 3, and the tunnel and the aggregate message are described in detail in steps 301 to 303, which are not repeated.
In this embodiment, the network device receives data packets of different source IPs and destination IPs, and also receives tunnel packets sent from the tunnel peer device through the tunnel. After receiving the tunnel message, the device can determine whether the message is an aggregation message containing N data messages through the separation identifier in the message.
Taking the aggregate packet AB shown in fig. 6 as an example, in step 303, packet a and packet B are aggregate-encapsulated to obtain the aggregate packet AB, and sent from the network device 101 to the network device 102 through the VxLAN tunnel 103. The network device 102 receives a large number of messages including the aggregate message AB, where the network device 102 may determine that the message is the aggregate message by using the separation identifier in the aggregate message AB.
Step 702, decapsulating the converged messages, obtaining N data messages according to the separation identifiers obtained after the decapsulation, and forwarding the N data messages respectively.
The method comprises the steps of performing decapsulation operation on an aggregate message, namely removing a tunnel encapsulation part in the aggregate message, wherein the specific content is determined according to the adopted tunnel protocol, for example, for a tunnel adopting VxLAN protocol communication, removing a VxLAN tunnel message header before the message; for the tunnel adopting SRv protocol communication, the embodiment does not limit the addition of encapsulated message information before removing the message load.
Taking the converged message AB shown in fig. 6 as an example, the MAC header, the EP1 address, the EP2 address, and the VxLAN header portion before the separation identifier 1 in the message are removed, so as to obtain a decapsulated message including the separation identifier 1, the message a, the separation identifier 2, and the message B.
After the decapsulation operation, N data messages determined in steps 302 to 303 are obtained according to the separation identifiers in the messages, and forwarding operations are performed on the N data messages respectively.
For example, for a tunnel unpackaged message including a separation identifier 1, a message a, a separation identifier 2 and a message B, two data messages of the message a and the message B are obtained by disassembling according to the separation identifier 1 and the separation identifier 2.
Further, in this embodiment, each time a data packet is disassembled, forwarding a time of data packet is performed, and repeating N times; or, all N data messages may be disassembled first, and then the N data messages are forwarded one by one.
For example, for obtaining the message a and the message B from the converged message AB, the message a may be first disassembled to obtain the message a, and the message a is forwarded to the HostA2 from the network device 102 through the table lookup according to the destination IP address IPA2 of the message a, and then disassembled to obtain the message B, and the message B is forwarded to the HostB2 from the network device 102 through the table lookup according to the destination IP address IPB2 of the message B; or directly disassembling to obtain message A and message B, and sequentially looking up and forwarding the message A and the message B.
Thus, the description of the flow shown in fig. 7 is completed.
According to the technical scheme, in the embodiment, the network equipment can receive the converged message sent by the tunnel opposite terminal equipment through the tunnel, disassemble the converged message, and acquire a plurality of data messages before convergence encapsulation from one converged message. By gathering a plurality of data messages together to be used as a gathered message to be transmitted by a tunnel, the scheme of separately transmitting each message after separately carrying out tunnel encapsulation in the prior art is replaced, the total number of data messages transferred in the tunnel is reduced, and the network bandwidth utilization rate is also improved.
The methods provided herein are described above. The apparatus provided in this application is described below:
referring to fig. 8, fig. 8 is a block diagram of a first apparatus provided in an embodiment of the present application. The device is applied to network equipment. As shown in fig. 8, the apparatus may include the following units:
and 801, a message storage unit, configured to store, when determining that the currently received data message is forwarded through the tunnel between the device and the opposite terminal device, the currently received data message into an outbound queue corresponding to the tunnel.
And 802, a message selecting unit, configured to select, when a message convergence encapsulation event is detected, N data messages meeting a preset condition from the outgoing interface queue, where N is greater than or equal to 2.
803, a message aggregation unit, configured to aggregate and encapsulate N data messages to obtain an aggregate message, and forward the aggregate message through a tunnel.
Optionally, when the currently received data packet is the first packet in the outbound interface queue, the packet storage unit further starts a timer, and the timing time of the timer is determined by the network device according to the priority of the service flow to which the data packet belongs;
based on this, the message selecting unit may detect the message convergence encapsulation event by:
when the expiration of the timing time of the timer is detected, determining that a message convergence encapsulation event is detected;
selecting N data messages meeting preset conditions from an output interface queue, wherein the N data messages specifically comprise:
selecting all data messages in an interface queue as N data messages;
or alternatively, the process may be performed,
the message selecting unit detects a message convergence encapsulation event by:
when the total length of the messages of the data messages in the outbound interface queue and the sum of the lengths of the convergence encapsulation heads required when the existing data messages in the outbound interface queue are converged and encapsulated are detected to be larger than the MTU, determining that a message convergence encapsulation event is detected;
Selecting N data messages meeting preset conditions from an output interface queue, wherein the N data messages specifically comprise:
selecting all data messages except the appointed message in the interface queue as N data messages; the designated message refers to the last data message stored in the outbound interface queue.
Optionally, the message selecting unit further closes the timer when detecting a message convergence encapsulation event.
Optionally, when the currently received data packet is a non-first packet in the outgoing interface queue, the packet selecting unit may detect a packet aggregation encapsulation event by:
if the sum of the message length of the currently received data message, the total message length of the existing data message in the outgoing interface queue and the required convergence encapsulation head length when the currently received data message and the existing data message in the outgoing interface queue are converged and encapsulated is larger than the MTU, determining that a message convergence encapsulation event is detected;
selecting N data messages meeting preset conditions from an output interface queue, wherein the N data messages specifically comprise:
and selecting all the data messages except the currently received data message in the output interface queue as N data messages.
Optionally, when the currently received data packet is a non-first packet in the outgoing interface queue, the packet selecting unit may detect a packet aggregation encapsulation event by:
if the message length of the currently received data message is greater than the set length threshold, determining that a message convergence encapsulation event is detected when the message length of the currently received data message, the total message length of the existing data message in the outbound interface queue, and the sum of the convergence encapsulation header lengths required when the currently received data message and the existing data message in the outbound interface queue are converged and encapsulated are less than or equal to the MTU;
selecting N data messages meeting preset conditions from an output interface queue, wherein the N data messages specifically comprise:
and selecting all the data messages in the interface queue as N data messages.
Referring to fig. 9, fig. 9 is a block diagram of a second apparatus according to an embodiment of the present application. The device is applied to the tunnel opposite-end network equipment connected with the network equipment corresponding to the first device block diagram through the tunnel. As shown in fig. 9, the apparatus may include the following units:
901, a message receiving unit, configured to receive, through a tunnel, an aggregate message sent by a peer device.
And 902, a message forwarding unit, configured to perform tunnel decapsulation on the aggregate message, obtain N data messages according to the separation identifier obtained after decapsulation, and forward the N data messages respectively.
The implementation process of the functions and roles of each unit in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
Thus, the device structure description provided in the present application is completed.
Correspondingly, the embodiment also provides an electronic device for processing the message, which comprises a memory, a processor and a program stored on the memory and capable of running on the processor.
The processor executes the program to realize the following method: the first method flow or any message processing method in the second method flow is described in this embodiment.
The foregoing description of the preferred embodiments of the present invention is not intended to limit the invention to the precise form disclosed, and any modifications, equivalents, improvements and alternatives falling within the spirit and principles of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A method for processing a message, the method being applied to a network device and comprising:
when determining that the current received data message is forwarded through a tunnel between the device and the opposite terminal device, storing the current received data message into an output interface queue corresponding to the tunnel;
When a message convergence packaging event is detected, N data messages meeting preset conditions are selected from the output interface queue, wherein N is more than or equal to 2; the sum of the total message length of the N data messages and the length of the convergence encapsulation head is smaller than or equal to the maximum transmission unit MTU required by the tunnel, the length of the convergence encapsulation head is the length of the convergence encapsulation head required by the network device when the N data messages are converged and encapsulated, and the length of the convergence encapsulation head at least comprises: the length of the tunnel header packaged during tunnel transmission and the length of the separation mark used for separating the N data messages when the network equipment performs aggregation packaging on the N data messages are used for carrying out the aggregation packaging;
when the currently received data message is a non-first message in the outgoing interface queue, a message convergence encapsulation event is detected by the following method:
if the message length of the currently received data message is greater than the set length threshold, determining that a message convergence packaging event is detected when the sum of the message length of the currently received data message, the message total length of the existing data message in the outbound interface queue, and the convergence packaging head length required when the currently received data message and the existing data message in the outbound interface queue are converged and packaged is less than or equal to the MTU;
The N data messages are assembled and packaged to obtain an assembled message, and the assembled message is forwarded through the tunnel; the convergence packet carries a convergence encapsulation head, and the convergence encapsulation head at least comprises: the tunnel header is used for separating the separation identifiers of the N data messages.
2. The method of claim 1, wherein when the currently received data message is the first message in the egress interface queue, the method further comprises:
starting a timer, wherein the timing time of the timer is determined by the network equipment according to the priority of the service flow to which the data message belongs;
the message convergence encapsulation event is detected by the following method:
when the expiration of the timing time of the timer is detected, determining that a message convergence encapsulation event is detected;
selecting N data messages meeting preset conditions from the outgoing interface queue, wherein the N data messages specifically include:
selecting all the data messages in the output interface queue as the N data messages;
or alternatively, the process may be performed,
the message convergence encapsulation event is detected by the following method:
when the sum of the total message length of the data messages in the outbound interface queue and the required convergence encapsulation head length when the existing data messages in the outbound interface queue are converged and encapsulated is detected to be larger than the MTU, determining that a message convergence encapsulation event is detected;
Selecting N data messages meeting preset conditions from the outgoing interface queue, wherein the N data messages specifically include:
selecting all data messages except the appointed message in the outgoing interface queue as the N data messages; the appointed message refers to the last data message stored in the output interface queue.
3. The method of claim 2, wherein upon detecting a message aggregate encapsulation event, the method further comprises: and closing the timer.
4. The method of claim 1, wherein when the currently received data message is a non-first message in the outbound queue, detecting a message convergence encapsulation event by:
if the sum of the message length of the currently received data message, the total message length of the existing data message in the outgoing interface queue and the required convergence encapsulation head length for converging and encapsulating the currently received data message and the existing data message in the outgoing interface queue is larger than the MTU, determining that a message convergence encapsulation event is detected;
selecting N data messages meeting preset conditions from the outgoing interface queue, wherein the N data messages specifically include:
And selecting all data messages except the currently received data message in the output interface queue as the N data messages.
5. The method according to claim 1, wherein selecting N data messages from the outgoing interface queue that satisfy a preset condition specifically includes:
and selecting all the data messages in the output interface queue as the N data messages.
6. A method for processing a message, the method being applied to a network device and comprising:
receiving an aggregation message sent by opposite terminal equipment through a tunnel; the converged message is obtained by converging and encapsulating N data messages based on the message processing method of any one of claims 1 to 5, the converged message carries a converged encapsulation head, and the converged encapsulation head at least comprises: the length of the tunnel header packaged during tunnel transmission and the length of the separation mark used for separating the N data messages when the opposite terminal equipment performs convergence packaging on the N data messages are used;
and decapsulating the converged messages, obtaining the N data messages according to the separation identifiers obtained after the decapsulation, and forwarding the N data messages respectively.
7. A message processing apparatus, the apparatus being applied to a network device, comprising:
the message storage unit is used for storing the currently received data message into an output interface queue corresponding to the tunnel when determining that the currently received data message is forwarded through the tunnel between the device and the opposite terminal device;
the message selecting unit is used for selecting N data messages meeting preset conditions from the output interface queue when a message convergence packaging event is detected, wherein N is more than or equal to 2; the sum of the total message length of the N data messages and the length of the convergence encapsulation head is smaller than or equal to the maximum transmission unit MTU required by the tunnel, the length of the convergence encapsulation head is the length of the convergence encapsulation head required when the N data messages are converged and encapsulated, and the length of the convergence encapsulation head at least comprises: the length of the tunnel header packaged during tunnel transmission and the length of a separation mark used for separating the N data messages when the N data messages are packaged in a converging way; when the currently received data message is a non-first message in the outgoing interface queue, a message convergence encapsulation event is detected by the following method: if the message length of the currently received data message is greater than the set length threshold, determining that a message convergence packaging event is detected when the sum of the message length of the currently received data message, the message total length of the existing data message in the outbound interface queue, and the convergence packaging head length required when the currently received data message and the existing data message in the outbound interface queue are converged and packaged is less than or equal to the MTU;
The message aggregation unit is used for carrying out aggregation encapsulation on the N data messages to obtain an aggregated message, and forwarding the aggregated message through the tunnel; the convergence packet carries a convergence encapsulation head, and the convergence encapsulation head at least comprises: the tunnel header is used for separating the separation identifiers of the N data messages.
8. The apparatus of claim 7, wherein when the currently received data message is the first message in the outbound queue, the message storing unit further comprises:
and starting a timer, wherein the timing time of the timer is determined by the network equipment according to the priority of the service flow to which the data message belongs.
9. A message processing apparatus, the apparatus being applied to a network device, comprising:
the message receiving unit is used for receiving the converged message sent by the opposite terminal equipment through the tunnel; the converged message is obtained by converging and encapsulating the N data messages based on the message processing apparatus of claim 7 or 8, where the converged message carries a converged encapsulation header, and the converged encapsulation header at least includes: the length of the tunnel head packaged during tunnel transmission and the length of the separation mark used for separating the N messages when the opposite terminal equipment performs convergent packaging on the N messages are used;
And the message forwarding unit is used for decapsulating the converged message, obtaining the N data messages according to the separation identifiers obtained after the decapsulation, and forwarding the N data messages respectively.
10. An electronic device comprising a memory, a processor, and a program stored on the memory and executable on the processor, wherein the processor, when executing the program, performs the following method: the message processing method according to any one of claims 1 to 6.
CN202111006852.8A 2021-08-30 2021-08-30 Message processing method and device and electronic equipment Active CN113726635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111006852.8A CN113726635B (en) 2021-08-30 2021-08-30 Message processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111006852.8A CN113726635B (en) 2021-08-30 2021-08-30 Message processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113726635A CN113726635A (en) 2021-11-30
CN113726635B true CN113726635B (en) 2023-05-26

Family

ID=78679284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111006852.8A Active CN113726635B (en) 2021-08-30 2021-08-30 Message processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113726635B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009127128A1 (en) * 2008-04-16 2009-10-22 中兴通讯股份有限公司 Method for avoiding downstream data flooding in ethernet passive optical network
CN101651610A (en) * 2008-08-13 2010-02-17 华为技术有限公司 Methods and devices for transmitting and receiving messages in network
CN103152254A (en) * 2013-02-01 2013-06-12 汉柏科技有限公司 Generic route encapsulation tunnel message forwarding method and system
CN105577566A (en) * 2014-10-24 2016-05-11 中兴通讯股份有限公司 Message gathering transmission method, device and system
CN105763659A (en) * 2014-12-16 2016-07-13 中国电信股份有限公司 IPv6 tunneling packet encapsulation method and system
CN106209553A (en) * 2015-04-30 2016-12-07 华为技术有限公司 Message processing method, equipment and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965087A (en) * 2017-05-19 2018-12-07 中兴通讯股份有限公司 Data transmission method, system and the first transmitting device, the second transmitting device
CN108270699B (en) * 2017-12-14 2020-11-24 中国银联股份有限公司 Message processing method, shunt switch and aggregation network
CN112822123A (en) * 2020-12-29 2021-05-18 迈普通信技术股份有限公司 Data acquisition method and device
CN113300929B (en) * 2021-04-15 2022-04-01 新华三信息安全技术有限公司 Message forwarding method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009127128A1 (en) * 2008-04-16 2009-10-22 中兴通讯股份有限公司 Method for avoiding downstream data flooding in ethernet passive optical network
CN101651610A (en) * 2008-08-13 2010-02-17 华为技术有限公司 Methods and devices for transmitting and receiving messages in network
CN103152254A (en) * 2013-02-01 2013-06-12 汉柏科技有限公司 Generic route encapsulation tunnel message forwarding method and system
CN105577566A (en) * 2014-10-24 2016-05-11 中兴通讯股份有限公司 Message gathering transmission method, device and system
CN105763659A (en) * 2014-12-16 2016-07-13 中国电信股份有限公司 IPv6 tunneling packet encapsulation method and system
CN106209553A (en) * 2015-04-30 2016-12-07 华为技术有限公司 Message processing method, equipment and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Hypermedia Applications with Transcoding Robust Data Embedding Method;Min Woo Park;《2018 International Conference on Information and Communication Technology Convergence (ICTC)》;全文 *
基于IPv4隧道的校园网专网互通的研究;李璐;莫正鹏;;计算机应用与软件(第11期);全文 *

Also Published As

Publication number Publication date
CN113726635A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
US20220217078A1 (en) System and method for facilitating tracer packets in a data-driven intelligent network
US6907042B1 (en) Packet processing device
EP1234428B1 (en) Method and apparatus for packet delay reduction using scheduling and header compression
EP3531620B1 (en) Method for processing message in hybrid access network, and network device
US20060203730A1 (en) Method and system for reducing end station latency in response to network congestion
JP2002290459A (en) Device for transferring packets and method for the same
EP3849160A1 (en) Method, device and system for realizing data transmission
US10645016B2 (en) Data packet network
RU2013103496A (en) METHOD, DEVICE AND SYSTEM FOR DATA REDIRECTION IN THE COMMUNICATION SYSTEM
CN107342906A (en) A kind of detection method, equipment and the system of elephant stream
WO2022033340A1 (en) Data processing method, user plane function, and device
JP2002111742A (en) Method for marking packet of data transmission flow and marker device performing this method
CN108282391B (en) VXLAN message fragmentation method and device
JP7101790B2 (en) Congestion feedback for service function chaining
WO2000072532A9 (en) System and method for network packet reduction
US8908510B2 (en) Communication link with intra-packet flow control
WO2018010639A1 (en) Method to provide high throughput transport by ip network channel associated signaling system
US10469393B1 (en) Data packet network
US20160277943A1 (en) Network system, control method of network system, communication device, and program
JP2008118281A (en) Communication device
CN115766605A (en) Network congestion control method, device and system
CN113726635B (en) Message processing method and device and electronic equipment
CN113965518A (en) Message processing method and device
US11805071B2 (en) Congestion control processing method, packet forwarding apparatus, and packet receiving apparatus
Evensen et al. Using multiple links to increase the performance of bandwidth-intensive UDP-based applications

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