Message retransmission method and related equipment

By generating retransmission configuration information and verifying the value of differential service code points, the problems of poor versatility and high resource consumption of switch packet retransmission are solved, and flexible, low-resource-consumption packet transmission is realized.

CN121125019APending Publication Date: 2025-12-12HUNAN TIANGUAN ELECTRONICS INFORMATION TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202511298058.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-11
Publication Date
2025-12-12

AI Technical Summary

Technical Problem

The poor versatility and high resource consumption of packet retransmission by switches are particularly problematic when using TCP retransmission mechanisms, which present limitations and resource waste.

Method used

By generating retransmission configuration information for retransmission messages, processing the messages according to the configuration information, and using the transmission information and the value of the differential service code point for verification, end-to-end message retransmission is achieved, avoiding multiple handshakes.

Benefits of technology

It improves the versatility of message retransmission, reduces resource consumption, relieves the burden on the upper-layer TCP protocol, and enables flexible message transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121125019A_ABST
    Figure CN121125019A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of switches, and provides a message retransmission method and related equipment, and the method comprises the steps: a transmitting end switch generates retransmission configuration information of a retransmission message; processing the retransmission message according to the retransmission configuration information to obtain a processed retransmission message; sending the processed retransmission message to a receiving end switch according to the transmission information, so that the receiving end switch verifies the retransmission message based on the transmission information and the value of the differential service code point; and receiving a response message sent by the receiving end switch after the retransmission message passes the verification. According to the method provided by the invention, the universality of message retransmission can be improved, and resource occupation is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of switches, in particular to a message retransmission method and related equipment. BACKGROUND

[0002] Message retransmission generally adopts Transmission Control Protocol (TCP) retransmission, and TCP retransmission is implemented by three-way handshake. In actual networks, the limitation is relatively large, and TCP protocol must be used, and in addition, a large amount of bandwidth resources are wasted.

[0003] Switches implement Automatic Repeat reQuest (ARQ) functions, mainly to improve reliability in data transmission, correct link layer errors, and ensure complete transmission of critical business data. In addition, through cooperation with upper layer protocols, efficiency and accuracy are balanced in specific scenarios. However, due to the limitations of the TCP retransmission mechanism, there are problems of poor universality and high resource occupation of switch message retransmission. SUMMARY

[0004] Embodiments of the present application provide a message retransmission method and related equipment, which can solve the problems of poor universality and high resource occupation of switch message retransmission.

[0005] In a first aspect, the embodiments of the present application provide a message retransmission method applied to a sending-end switch, and the message retransmission method comprises: generating retransmission configuration information of a retransmission message; the retransmission message carries transmission information for indicating that the retransmission message needs to be retransmitted and a value of a differentiated services code point; processing the retransmission message according to the retransmission configuration information to obtain a processed retransmission message; sending the processed retransmission message to a receiving-end switch according to the transmission information, so that the receiving-end switch checks the retransmission message based on the transmission information and the value of the differentiated services code point; receiving a response message sent by the receiving-end switch; the response message is sent by the receiving-end switch after the retransmission message is checked.

[0006] Optionally, the retransmission configuration information comprises fragmentation information for indicating whether fragmentation is needed, a fragmentation message length, a retransmission number and a retransmission interval. processing the retransmission message according to the retransmission configuration information to obtain a processed retransmission message, comprising: if the fragmentation information indicates that fragmentation is needed, fragmenting and sorting the retransmission message according to the fragmentation message length to obtain the processed retransmission message; If the fragmentation information indicates that no fragmentation is needed, the retransmission packet is directly taken as the processed retransmission packet.

[0007] Optionally, the processed retransmission packet is sent to the receiving end switch according to the transmission information, and the sending includes: When the transmission information includes the identification of the VLAN port corresponding to the destination device of the retransmission packet, the processed retransmission packet is sent to the receiving end switch through the VLAN port; and the time interval of the cyclic sending is the retransmission interval. When the transmission information does not include the identification of the VLAN port corresponding to the destination device, the processed retransmission packet is sent to the receiving end switch through all VLAN ports.

[0008] Optionally, after the step of cyclically sending the processed retransmission packet to the receiving end switch through the VLAN port corresponding to the destination device, the packet retransmission method further includes: If the response packet sent by the receiving end switch is received or the number of cyclic sending reaches the retransmission number, the sending of the processed retransmission packet is stopped.

[0009] In a second aspect, an embodiment of the present application provides a packet retransmission method applied to a receiving end switch, and the packet retransmission method includes: The processed retransmission packet sent by the sending end switch is received; the processed retransmission packet carries transmission information used for indicating that the retransmission packet needs to be retransmitted and a value of a differentiated service code point. The retransmission packet is checked based on the transmission information and the value of the differentiated service code point. When the checking passes, the processed retransmission packet is forwarded to a next device, and a response packet is sent to the sending end switch.

[0010] Optionally, the checking of the retransmission packet based on the transmission information and the value of the differentiated service code point includes: It is judged whether the transmission information matches preset transmission information and the value of the differentiated service code point is a preset value; the preset transmission information is used for indicating the type of information that should be included in the transmission information. If yes, the checking passes. Otherwise, the checking does not pass, and the processed retransmission packet is discarded.

[0011] Optionally, the forwarding of the processed retransmission packet to the next device includes: When the transmission information includes the identification of the VLAN port corresponding to the destination device of the retransmission packet, the processed retransmission packet is sent to the next device through the VLAN port. When the transmission information does not include the identification of the VLAN port corresponding to the destination device, the processed retransmission packet is sent to the next device through all VLAN ports.

[0012] Optionally, the response message comprises the transmission information and a private protocol number of the receiving end switch.

[0013] In a third aspect, an embodiment of the present application provides a sending end switch, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the message retransmission method for the sending end switch when executing the computer program.

[0014] In a fourth aspect, an embodiment of the present application provides a receiving end switch, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the message retransmission method for the receiving end switch when executing the computer program.

[0015] The above-mentioned scheme of the present application has the following advantages: In the embodiment of the present application, the sending end switch generates retransmission configuration information of the retransmission message, then processes the retransmission message according to the retransmission configuration information to obtain a processed retransmission message, and sends the processed retransmission message to the receiving end switch according to the transmission information, so that the receiving end switch checks the retransmission message based on the transmission information and the value of the differentiated services code point, and receives the response message sent by the receiving end switch after the retransmission message passes the check. The retransmission of the message is performed through the transmission information and the value of the differentiated services code point, which can meet the message retransmission in various situations, and there is no requirement for the message, so that any message that needs to be retransmitted can be retransmitted, the generality of the message retransmission is improved, the authentication transmission of the retransmission message is implemented according to the transmission information and the value of the differentiated services code point, the TCP protocol is not needed, the burden of the upper layer TCP protocol is released, and the message transmission is performed in an end-to-end manner, the message is directly received after the transmission information and the value of the differentiated services code point carried are checked, multiple handshakes are not needed, and the resource occupation of the message retransmission is reduced. BRIEF DESCRIPTION OF DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.

[0017] Figure 1 The flowchart of the message retransmission method for the sending end switch provided by an embodiment of the present application is shown in the figure. Figure 2 The flowchart of the message retransmission method for the receiving end switch provided by an embodiment of the present application is shown in the figure. Figure 3A specific flowchart of a packet retransmission method provided by an embodiment of the present application is shown in the figure; Figure 4 A structure diagram of a sending-end switch provided by an embodiment of the present application is shown in the figure; Figure 5 A structure diagram of a receiving-end switch provided by an embodiment of the present application is shown in the figure. DETAILED DESCRIPTION

[0018] In the following description, for the purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

[0019] It should be understood that the term "comprises" when used in this specification and the appended claims, specifies the presence of stated features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0020] It should also be understood that the term "and / or" when used in this specification and the appended claims, means any one of the associated listed items, or a combination of any combination of at least one of the associated listed items.

[0021] As used in this specification and the appended claims, the term "if" can be interpreted as meaning "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [a described condition or event] is detected" can be interpreted as meaning "upon determining" or "in response to determining" or "upon detecting [the described condition or event]" or "in response to detecting [the described condition or event]," depending on the context.

[0022] In addition, in the description of the present application and the appended claims, the terms "first", "second", "third", etc. are only used for differentiation in description, and cannot be understood as indicating or implying relative importance.

[0023] Reference within the specification of this application to "one embodiment" or "some embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. The appearances of the phrase "in one embodiment" or "in some embodiments" in various places within specified

[0024] In view of the poor universality and high resource occupation of the existing packet retransmission, the embodiment of the application provides a packet retransmission method. The packet retransmission method generates retransmission configuration information of a retransmission packet by a sending end switch, then processes the retransmission packet according to the retransmission configuration information to obtain a processed retransmission packet, and then sends the processed retransmission packet to a receiving end switch according to transmission information, so that the receiving end switch checks the retransmission packet based on the transmission information and a value of a differentiated services code point, and receives a response packet sent by the receiving end switch after the retransmission packet passes the check. In the packet retransmission method, the retransmission packet is retransmitted through the transmission information and the value of the differentiated services code point, which can meet the packet retransmission in various situations, and has no requirement on the packet, so that any packet that needs to be retransmitted can be retransmitted, the universality of the packet retransmission is improved, the retransmission packet is authenticated and transmitted according to the transmission information and the value of the differentiated services code point, the TCP protocol is not needed, the burden of the upper layer TCP protocol is released, and the packet is transmitted in an end-to-end manner, the packet is directly received after the transmission information and the value of the differentiated services code point carried by the packet are checked, multiple handshakes are not needed, and the resource occupation of the packet retransmission is reduced.

[0025] Next, the packet retransmission method provided by the application is exemplarily described.

[0026] As shown in Figure 1 The packet retransmission method provided by the application is applied to a sending end switch, and includes the following steps: Step 11, generating retransmission configuration information of a retransmission packet.

[0027] The retransmission packet is a packet that needs to be retransmitted, and is sent by a source device (such as a server) to a sending end switch. The retransmission packet includes a packet and carries transmission information and a differentiated services code point value indicating that the retransmission packet needs to be retransmitted. The transmission information includes a source device identifier (such as an IP address, a MAC address, etc.) carried by the retransmission packet, a destination device identifier (the destination device is a terminal device such as a mobile phone or a computer), an Ethernet data type, an IP protocol type, an identifier of a VLAN port corresponding to the source device, an identifier of a VLAN port corresponding to the destination device, and the like. The differentiated services code point value (DSCP, Differentiated Services Code Point) is used to indicate the priority of the retransmission packet.

[0028] In some embodiments of the present application, retransmission configuration information of the retransmission packet can be generated according to actual needs. The retransmission configuration information includes fragmentation information indicating whether fragmentation is needed, a fragmentation packet length, a retransmission number, and a retransmission interval.

[0029] For example, this step can be performed in a central processing unit (CPU) of the sending end switch. The sending end switch can be configured to: specify, by an access control list (ACL), that a protocol number of a packet is 0x3316, and the packet can be redirected to the CPU of the device. The 0x3316 private protocol packet is defined as a retransmission packet in the present instance. The ARQ feature header dscp value is configured. If not configured, the default dscp is 60. The transmission information in the packet can be flexibly considered as a retransmission packet, which is then sent to the CPU for processing, and the ARQ feature header dscp is set to 60. The number of retransmissions (default three times) is configured. The retransmission interval is configured. The retransmission timeout time (default 500 ms) is configured. Whether fragmentation is needed, the fragmentation packet length, whether retransmission is needed, and the like are configured. The packet statistical result is queried. The forward error correction (FEC) check can be configured (note that the FEC check modes of the sending end switch and the receiving end switch must be consistent. Both are configured as a base-r (Base-R Coding) mode or a Reed-Solomon (RS) mode, otherwise the data check will fail).

[0030] It should be noted that the receiving end switch matches the source device identifier, the destination device identifier and other information carried by the message with the preset information type when receiving the message, and if the matching is successful, it can be considered that the message is a message that needs to be retransmitted. For example, if the message carries five types of information such as source device identifier, destination device identifier, Ethernet data type, IP protocol type, and identifier of the VLAN port corresponding to the destination device, it is considered that the message is a message that needs to be retransmitted.

[0031] Step 12, processing the retransmission message according to the retransmission configuration information to obtain the processed retransmission message.

[0032] Specifically, if the fragmentation information indicates that fragmentation is needed, the retransmission message is fragmented and sorted according to the fragmentation message length to obtain the processed retransmission message.

[0033] If the fragmentation information indicates that fragmentation is not needed, the retransmission message is directly used as the processed retransmission message.

[0034] For example, the fragmented retransmission message is sorted according to the original field order of the retransmission message to obtain the processed retransmission message.

[0035] In some embodiments of the present application, two modules are provided in the switch: a CPU packet receiving and sending module and an ARQ module. In the sending end switch, the CPU packet receiving and sending module is used to receive and send the retransmission message, and the ARQ module is used to fragment the retransmission message, set the retransmission timing, etc. In the CPU packet receiving and sending module, retransmission configuration information is generated for the retransmission message entering the sending end switch and the entry port number is recorded. The CPU packet receiving and sending module transfers the retransmission message to the ARQ module, checks whether fragmentation or retransmission is needed, and if fragmentation is needed, the message data part is split into a specified message length, the message header is kept unchanged, the fragmentation is sent, and the message statistics number is incremented by 1. The processed retransmission message is saved to the cache queue and is transferred to the CPU packet receiving and sending module for packet sending and out queue processing.

[0036] Step 13, sending the processed retransmission message to the receiving end switch according to the transmission information, so that the receiving end switch checks the retransmission message based on the transmission information and the value of the differentiated services code point.

[0037] Specifically, when the transmission information includes the identifier of the VLAN port corresponding to the destination device of the retransmission message, the processed retransmission message is sent to the receiving end switch through the VLAN port in a loop. The time interval of the loop sending is the retransmission interval.

[0038] When the transmission information does not include the identifier of the VLAN port corresponding to the destination device, the processed retransmission message is sent to the receiving end switch through all VLAN ports in a loop.

[0039] It should be noted that if the response message sent by the receiving end switch is received or the number of cyclic transmissions reaches the retransmission number, the sending of the processed retransmission message is stopped.

[0040] For example, the ARQ module of the sending end switch starts a timer when saving the processed retransmission message into the cache queue, and the timer time is the retransmission interval time. If the retransmission interval time is exceeded, the processed retransmission message is re-sent, and then is handed over to the CPU packet sending module for packet sending and out-of-queue processing. In the CPU packet sending module, it is checked whether the identification of the VLAN port corresponding to the destination device exists in the transmission information. If it exists, the processed retransmission message is directly forwarded to the corresponding VLAN port. If it does not exist, the processed retransmission message is forwarded to all VLAN ports (except the port through which the message enters, which is recorded by the CPU packet sending module when receiving the packet previously).

[0041] Step 14: receiving the response message sent by the receiving end switch.

[0042] The above-mentioned response message is sent by the receiving end switch after the retransmission message is verified. The response message includes the transmission information of the retransmission message and the private protocol number of the receiving end switch.

[0043] For example, after the receiving end switch receives the response message, it identifies which retransmission message the response message corresponds to according to the transmission information, cancels the timer of the retransmission message, increases the successful retransmission message statistics by 1, and deletes the retransmission message from the cache queue. If the number of cyclic transmissions reaches the retransmission number and no response message is received, the sending of the processed retransmission message is stopped, and the retransmission failure message statistics is increased by 1. The statistics can be viewed through the show command on the sending end switch.

[0044] As shown in Figure 2 The packet retransmission method provided by the application is applied to a receiving end switch and includes the following steps: Step 21: receiving the processed retransmission message sent by the sending end switch.

[0045] The above-mentioned processed retransmission message carries transmission information and a differentiated services code point value for indicating that the retransmission message needs to be retransmitted, and also includes the message that needs to be retransmitted.

[0046] Step 22: verifying the retransmission message based on the transmission information and the differentiated services code point value.

[0047] Specifically, it is judged whether the transmission information matches a preset transmission information and the differentiated services code point value is a preset value. The prediction transmission information is used to indicate the type of information that should be included in the transmission information.

[0048] If yes, the check is passed. Otherwise, the check is failed, and the processed retransmission packet is discarded.

[0049] It should be noted that the preset transmission information needs to be configured to be the same as the transmission information of the sending end switch, and the preset value of the differentiated service code point value needs to be configured to be the same as the differentiated service code point value of the sending end switch. That is, when the receiving end switch checks the transmission information and the differentiated service code point value, if the received transmission information is the same as the preset transmission information, and the differentiated service code point value is the same as the preset value, it can be determined that the packet comes from the sending end switch, and if they are not the same, it can be determined that the packet comes from other devices, and it is not processed.

[0050] Exemplarily, the sending end switch can also be configured with FEC check. After the check through the above steps, the FEC check is performed.

[0051] When the check is passed, the processed retransmission packet is forwarded to the next device, and a response packet is sent to the sending end switch.

[0052] The next device is a downstream device of the sending end switch, such as the next switch, the destination device of the retransmission packet, etc.

[0053] Specifically, when the transmission information includes the identifier of the VLAN port corresponding to the destination device of the retransmission packet, the processed retransmission packet is sent to the next device through the VLAN port.

[0054] When the transmission information does not include the identifier of the VLAN port corresponding to the destination device, the processed retransmission packet is sent to the next device through all VLAN ports (except the port receiving the packet).

[0055] Exemplarily, in the receiving end switch, the CPU transceiver packet module is used to receive and send packets, and the ARQ module is used to check and generate a response packet. After the receiving end switch receives the processed retransmission packet, the CPU transceiver packet module checks the transmission information, and if the check is passed, it is transferred to the ARQ module. The ARQ module checks the differentiated service code point value, that is, whether the DSCP value in the packet is 60, and if not, it is directly discarded, and if yes, it is disassembled ARQ feature information (the DSCP value is restored to 0). The ARQ module forwards the packet to the egress queue of the CPU packet transceiver module. The CPU transceiver packet module judges whether the transmission information includes the identifier of the VLAN port corresponding to the destination device of the retransmission packet, and if yes, it is forwarded to the corresponding VLAN port, and if not, it is forwarded to all VLAN ports of the same VLAN (except the incoming port from the sending end switch), and the packet is successfully sent out through the VLAN port.

[0056] Meanwhile, the ARQ module needs to exchange source and destination MAC information, and the second layer Ethernet type is filled into a private protocol number 0x3316 to fill transmission information and construct a response message. The response message is transferred to the CPU transceiving module of the receiving end switch to send to the port connected to the sending end switch according to the recorded entry port.

[0057] It should be noted that if the downstream device of the receiving end switch is a switch, the receiving end switch is configured as the sending end switch, and the downstream device is configured as the receiving end switch. The packet retransmission method of the application is performed again to realize packet transmission. If the downstream device is a destination device, the packet is directly sent to the destination device through the VLAN port.

[0058] It is worth mentioning that the packet is retransmitted by the transmission information and the value of the differentiated service code point, which can meet the packet retransmission in various situations, and has no requirements for the packet. Any packet that needs to be retransmitted can be retransmitted, which improves the universality of packet retransmission. According to the transmission information and the value of the differentiated service code point, the retransmitted packet is authenticated and transmitted, without using the TCP protocol, which releases the burden of the upper layer TCP protocol. The packet is transmitted in an end-to-end manner, and after the transmission information and the value of the differentiated service code point carried are checked, the packet is directly received, without multiple handshakes, which reduces the resource occupation of packet retransmission.

[0059] In another embodiment of the application, if the packet entering the sending end switch is a non-retransmitted packet (whether the packet is a retransmitted packet can be determined by determining whether the packet carries the transmission information described above or the determination method given in step 11), the identifier of the destination device of the packet is checked. If it is the identifier of the CPU of the sending end switch, the sending end switch is used to process and respond to the packet. If not, the packet is sent to the receiving end switch through the VLAN port (the process of sending the packet through the VLAN port is the same as described above. If the VLAN port identifier of the destination device is carried in the packet, it is forwarded to the corresponding VLAN port. If it is not carried, it is forwarded to all VLAN ports).

[0060] After the receiving end switch receives the non-retransmitted packet, it checks whether the identifier of the destination device of the packet is the identifier of the CPU of the receiving end switch. If it is, the receiving end switch is used to process and respond to the packet. If not, the packet is sent to the downstream device through the VLAN port.

[0061] In another embodiment of this application, an FEC mechanism can be introduced into the above-described message retransmission method for collaborative processing. Taking the sending switch and the receiving switch both configured in base-r mode as an example, after the sending switch sends the processed retransmission message to the VLAN port, the processed retransmission message is encapsulated into a frame at the link layer, and redundant error correction codes are added to the frame to generate check bits or redundant blocks.

[0062] After receiving the packet, the receiving switch extracts the frame at the data link layer and uses the additional FEC information to detect errors. If the error exceeds the error correction capability, the packet is dropped directly. If the error is within the error correction capability, the receiving end automatically corrects the error, obtains the retransmitted packet, and continues to execute steps 21 to 23 above.

[0063] The method of this application is illustrated below with reference to a specific implementation.

[0064] like Figure 3 As shown, the processing procedure of a retransmitted message after entering the CPU processor of the sending device (i.e., the sending switch) from the ARQ service message ingress point is as follows: 1. Redirected to the transceiver module; 2. The transceiver module forwards the retransmitted message to the ARQ module, which generates retransmission configuration information; 3. The ARQ module forwards the retransmitted message and retransmission configuration information to the transceiver module; 4. The transceiver module processes the retransmitted message according to the retransmission configuration information and sends it to the VLAN port; 5. Transmitted through the link to the receiving device (i.e., the receiving switch); 6. The retransmitted message enters the transceiver module of the CPU processor of the receiving device, which verifies the transmission information; 7. If the verification passes, the message is forwarded to the ARQ module, which verifies the value of the differential service code point; 8. If the verification passes, the message is forwarded to the transceiver module; 9. Transceiver... The module sends the message to the VLAN port, and then sends the message to the next-level device through the ARQ service message exit. 10. Generate a response message and send it to the VLAN port. 11. Transmit the response message to the sending device through the link transmission. 12. The sending device's packet receiving module receives the response message. 13. The response message is handed over to the ARQ module. The processing procedure for non-retransmission messages after entering the sending device through the non-ARQ service message entry is as follows: 1. Check if the destination device of the non-retransmission message is the sending device. If yes, send it to the CPU for processing; otherwise, send it to the VLAN port. 2. Transmit the non-retransmission message to the receiving device through the link transmission. 3. Check if the destination device of the non-retransmission message is the receiving device. If yes, send it to the CPU for processing; otherwise, send it to the VLAN port and then send it to the next-level device through the non-ARQ service message exit.

[0065] It is worth mentioning that the packet retransmission method provided by the application can ensure that the switch does not lose packets reliably, and the FEC mechanism mainly ensures the reliability of link transmission.

[0066] As Figure 4 shown, the embodiment of the application provides a sending-end switch, the sending-end switch D10 of the embodiment comprises at least one processor D100 (only one processor is shown in the figure), a memory D101, and a computer program D102 stored in the memory D101 and executable on the at least one processor D100, wherein the processor D100 implements the steps in any of the method embodiments described above when executing the computer program D102. Figure 4

[0067] Specifically, when the processor D100 executes the computer program D102, the retransmission configuration information of the retransmission packet is generated, then the retransmission packet is processed according to the retransmission configuration information, the processed retransmission packet is obtained, the processed retransmission packet is sent to the receiving-end switch according to the transmission information, so that the receiving-end switch checks the retransmission packet based on the transmission information and the value of the differentiated services code point, and the response packet sent by the receiving-end switch after the retransmission packet passes the check is received. Wherein, the retransmission of the packet is performed through the transmission information and the value of the differentiated services code point, which can meet the packet retransmission in various situations, and there is no requirement for the packet, so that any packet that needs to be retransmitted can be retransmitted, the generality of the packet retransmission is improved, the retransmission packet is authenticated and transmitted according to the transmission information and the value of the differentiated services code point, the burden of the upper layer TCP protocol is released, and the packet is transmitted in an end-to-end manner, the packet is directly received after being checked through the transmission information and the value of the differentiated services code point, and multiple handshakes are not required, thereby reducing the resource occupation of the packet retransmission.

[0068] The processor D100 can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0069] ​The memory D101 can be an internal storage unit of the sending end switch D10 in some embodiments, such as a hard disk or a memory of the sending end switch D10. The memory D101 can also be an external storage device of the sending end switch D10 in other embodiments, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the sending end switch D10. Further, the memory D101 can include both the internal storage unit and the external storage device of the sending end switch D10. The memory D101 is used to store an operating system, an application program, a boot loader, data, and other programs, such as program codes of the computer program, etc. The memory D101 can also be used to temporarily store data that has been output or will be output.

[0070] As shown in Figure 5 Embodiments of the present application provide a receiving end switch, the receiving end switch D20 of the embodiments includes at least one processor D200 (only one processor is shown in the figure), a memory D201, and a computer program D202 stored in the memory D201 and executable on the at least one processor D200, wherein the processor D200 implements the steps in any of the method embodiments above when executing the computer program D202. Figure 5

[0071] Specifically, when the processor D200 executes the computer program D202, the processed retransmission packet sent by the sending end switch is received by the receiving end switch, and then the retransmission packet is checked based on the transmission information and the value of the differentiated services code point, when the checking is passed, the processed retransmission packet is forwarded to the next device, and a response packet is sent to the sending end switch. Wherein, the retransmission of the packet is performed by the transmission information and the value of the differentiated services code point, which can meet the packet retransmission in various situations, and there is no requirement for the packet, which can retransmit any packet that needs to be retransmitted, improve the generality of packet retransmission, and implement the authentication transmission of the retransmission packet according to the transmission information and the value of the differentiated services code point, without using the TCP protocol, which releases the burden of the upper layer TCP protocol, and the packet transmission is performed in an end-to-end manner, and the packet is directly received after the transmission information and the value of the differentiated services code point carried are checked, without multiple handshakes, which reduces the resource occupation of packet retransmission.

[0072] ​The processor D200 can be a central processing unit (CPU), and can also be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.

[0073] The memory D201 can be an internal storage unit of the receiving switch D20 in some embodiments, such as a hard disk or a memory of the receiving switch D20. The memory D201 can also be an external storage device of the receiving switch D20 in other embodiments, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the memory D201 can include both the internal storage unit and the external storage device of the receiving switch D20. The memory D201 is used to store an operating system, an application program, a boot loader, data, and other programs, such as program codes of the computer program, etc. The memory D201 can also be used to temporarily store data that has been output or will be output.

[0074] In the above embodiments, the description of each embodiment has its own focus, and the parts not described or recorded in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0075] Those skilled in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of electronic hardware and computer software. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0076] The above are preferred embodiments of the present application, it should be pointed out that, for those skilled in the art, without departing from the principles described in the present application, can make several improvements and refinements, these improvements and refinements should also be considered as the protection scope of the present application.

Claims

1. A packet retransmission method, characterized by, The application is applied to a sending end switch, comprising: generating retransmission configuration information of a retransmission packet; the retransmission packet carries transmission information and a value of a differentiated service code point, which are used to indicate that the retransmission packet needs to be retransmitted; processing the retransmission packet according to the retransmission configuration information to obtain a processed retransmission packet; sending the processed retransmission packet to a receiving end switch according to the transmission information, so that the receiving end switch checks the retransmission packet based on the transmission information and the value of the differentiated service code point; receiving a response packet sent by the receiving end switch; the response packet is sent by the receiving end switch after the retransmission packet is checked.

2. The packet retransmission method of claim 1, wherein, The retransmission configuration information comprises fragmentation information used to indicate whether fragmentation is needed, a fragmentation packet length, a retransmission number and a retransmission interval; The processing of the retransmission packet according to the retransmission configuration information to obtain a processed retransmission packet comprises: if the fragmentation information indicates that fragmentation is needed, fragmenting and sequencing the retransmission packet according to the fragmentation packet length to obtain the processed retransmission packet; if the fragmentation information indicates that fragmentation is not needed, directly taking the retransmission packet as the processed retransmission packet.

3. The packet retransmission method of claim 2, wherein, The sending of the processed retransmission packet to the receiving end switch according to the transmission information comprises: when the transmission information comprises an identifier of a VLAN port corresponding to a destination device of the retransmission packet, the processed retransmission packet is sent to the receiving end switch through the VLAN port; the time interval of the cyclic sending is the retransmission interval; when the transmission information does not comprise the identifier of the VLAN port corresponding to the destination device, the processed retransmission packet is sent to the receiving end switch through all VLAN ports.

4. The packet retransmission method of claim 3, wherein, After the step of sending the processed retransmission packet to the receiving end switch through the VLAN port corresponding to the destination device, the packet retransmission method further comprises: if the response packet sent by the receiving end switch is received or the number of the cyclic sending reaches the retransmission number, the sending of the processed retransmission packet is stopped.

5. A packet retransmission method, characterized by, The application is applied to a receiving end switch, comprising: receiving a processed retransmission packet sent by a sending end switch; the processed retransmission packet carries transmission information and a value of a differentiated service code point, which are used to indicate that the retransmission packet needs to be retransmitted; checking the retransmission packet based on the transmission information and the value of the differentiated service code point; when the checking is passed, forwarding the processed retransmission packet to a next device and sending a response packet to the sending end switch.

6. The packet retransmission method of claim 5, wherein, The checking of the retransmission packet based on the transmission information and the value of the differentiated service code point comprises: judging whether the transmission information matches preset transmission information and the value of the differentiated service code point is a preset value; the preset transmission information is used to indicate the type of information that should be included in the transmission information; if yes, the checking is passed; otherwise, the checking is not passed, and the processed retransmission packet is discarded.

7. The packet retransmission method of claim 5, wherein, The forwarding of the processed retransmission packet to the next device comprises: when the transmission information comprises an identification of a VLAN port corresponding to the destination device of the retransmission packet, sending the processed retransmission packet to the next device through the VLAN port; when the transmission information does not comprise the identification of the VLAN port corresponding to the destination device, sending the processed retransmission packet to the next device through all VLAN ports.

8. The packet retransmission method of claim 5, wherein, the response packet comprises the transmission information and a private protocol number of the receiving switch.

9. A sending end switch comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein, The processor, when executing the computer program, implements the packet retransmission method according to any one of claims 1 to 4.

10. A receiving end switch comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor, when executing the computer program, implements the packet retransmission method according to any one of claims 5 to 8.

Citation Information

Patent Citations

  • Transmission processing method of data message, communication device and system

    CN102420755A

  • Delay detection method, device and equipment of data center switch and medium

    CN112491661A

  • UDP protocol data transmission method, system and device based on ARQ

    CN115883680A

  • Data transmission method and device and electronic equipment

    CN120475083A