CN117811988A - Method, device, system, gateway unit and computer equipment for transmitting data packet - Google Patents

Method, device, system, gateway unit and computer equipment for transmitting data packet Download PDF

Info

Publication number
CN117811988A
CN117811988A CN202311841567.7A CN202311841567A CN117811988A CN 117811988 A CN117811988 A CN 117811988A CN 202311841567 A CN202311841567 A CN 202311841567A CN 117811988 A CN117811988 A CN 117811988A
Authority
CN
China
Prior art keywords
address port
port information
information
data packet
connection table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311841567.7A
Other languages
Chinese (zh)
Inventor
周强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Original Assignee
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software 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 Beijing Topsec Technology Co Ltd, Beijing Topsec Network Security Technology Co Ltd, Beijing Topsec Software Co Ltd filed Critical Beijing Topsec Technology Co Ltd
Priority to CN202311841567.7A priority Critical patent/CN117811988A/en
Publication of CN117811988A publication Critical patent/CN117811988A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a data packet transmission method, a device, a system, a gateway unit and computer equipment, and belongs to the technical field of data transmission. The method comprises the following steps: receiving a reverse data packet carrying first address port information sent by a destination terminal; judging whether second address port information corresponding to the first address port information is stored on the address port connection table or not based on the pre-established address port connection table, wherein the corresponding second address port information is carried by a data flow first packet corresponding to the reverse data packet; and under the condition that the address port connection table does not store the corresponding second address port information, transmitting the reverse data packet to the other gateway units connected through the drainage reinjection port, determining a target gateway unit in the other gateway units by the other gateway units according to the first address port information and the address port connection table pre-created by the other gateway units, and transmitting the reverse data packet to the source terminal by the target gateway unit. The communication stability can be improved.

Description

Method, device, system, gateway unit and computer equipment for transmitting data packet
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a method, an apparatus, a system, a gateway unit, and a computer device for transmitting a data packet.
Background
The complexity of the network topology increases greatly due to the diversified traffic demands of the network devices. Many network devices require that the data stream source be guaranteed to go back in the multi-entry and multi-exit application scenarios to guarantee the operation of the upper layer services. In the prior art, in order to reasonably allocate bandwidth, a load balancing mode is generally adopted when the reverse data packet is transmitted, and a certain route is polled and returned as a route selection result, so that the reverse data packet can be forwarded through different paths. When the reverse data packet arrives at the gateway, the gateway may discard the reverse data packet because the information of the reverse data packet is inconsistent with the information of the first packet of the data stream recorded by the gateway, which results in communication interruption. Therefore, the data packet transmission mode in the prior art has the problem of unstable communication under the scene of multiple devices and multiple outlets.
Disclosure of Invention
An objective of the embodiments of the present application is to provide a method, an apparatus, a system, a gateway unit, and a computer device for transmitting a data packet, so as to solve the problem that in the prior art, the data packet transmission mode has unstable communication in a multi-device multi-outlet scenario.
In order to achieve the above object, a first aspect of the embodiments of the present application provides a method for transmitting a data packet, which is performed in a gateway unit, and the method includes:
receiving a reverse data packet sent by a destination terminal, wherein the reverse data packet carries first address port information;
judging whether second address port information corresponding to the first address port information is stored on the address port connection table or not based on the pre-established address port connection table, wherein the second address port information corresponding to the first address port information is carried by a data flow first packet corresponding to the reverse data packet;
and under the condition that the address port connection table does not store the second address port information corresponding to the first address port information, transmitting the reverse data packet to the rest gateway units connected through the drainage reinjection port, determining a target gateway unit in the rest gateway units by the rest gateway units according to the first address port information and the address port connection table pre-created by the rest gateway units, and transmitting the reverse data packet to the source terminal by the target gateway unit.
In an embodiment of the present application, the method further includes: under the condition that second address port information corresponding to the first address port information is stored on the address port connection table, a first packet access interface is determined, wherein the first packet access interface is an internal network port of a data flow first packet corresponding to a reverse data packet received by a gateway unit; and sending the reverse data packet to the source terminal through the first packet access interface.
In this embodiment of the present application, the address port connection table includes second address port information carried by a plurality of first packets of data flows, and based on the pre-created address port connection table, determining whether the address port connection table stores second address port information corresponding to the first address port information includes: respectively matching the first address port information with second address port information carried by a plurality of data stream head packets; under the condition that the first address port information is successfully matched with any second address port information, determining that the second address port information corresponding to the first address port information is stored in an address port connection table; and under the condition that the matching of the first address port information and any second address port information is unsuccessful, determining that the second address port information corresponding to the first address port information is not stored in the address port connection table.
In the embodiment of the application, the first address port information includes first source information, first communication protocol information and first destination information, and the second address port information includes second source information, second communication protocol information and second destination information; the method for respectively matching the first address port information with the second address port information carried by the first packets of the data streams comprises the following steps: for any second address port information in the second address port information carried by the first packets of the data streams, judging whether the first source information is the same as the second destination information, whether the first destination information is the same as the second source information, and whether the first communication protocol information is the same as the second communication protocol information; and under the conditions that the first source information is the same as the second destination information, the first destination information is the same as the second source information, and the first communication protocol information is the same as the second communication protocol information, determining that the first address port information is successfully matched with any second address port information.
In the embodiment of the present application, the creation of the address port connection table includes: under the condition that a data stream head packet sent by any source terminal is received, second address port information carried in the data stream head packet is obtained; the second address port information is stored to create an address port connection table.
A second aspect of the present application provides an apparatus for transmitting a data packet, including: the reverse data packet receiving module is used for receiving a reverse data packet sent by the destination terminal, wherein the reverse data packet carries first address port information; the address port information comparison module is used for judging whether second address port information corresponding to the first address port information is stored on the address port connection table based on the pre-established address port connection table, and the second address port information corresponding to the first address port information is carried by a data flow first packet corresponding to the reverse data packet; and the reverse data packet forwarding module is used for sending the reverse data packet to the rest gateway units connected through the drainage reinjection port under the condition that the second address port information corresponding to the first address port information is not stored in the address port connection table, so that the rest gateway units determine the target gateway units in the rest gateway units according to the first address port information and the address port connection table pre-created by the rest gateway units, and the target gateway units send the reverse data packet to the source terminal.
A third aspect of the embodiments of the present application provides a gateway unit configured to perform the above-mentioned method for transmitting a data packet.
A fourth aspect of the present embodiment provides a computer device, including: the above-mentioned data packet transmission device or the above-mentioned gateway unit; and the rest gateway units connected with the gateway units through the drainage flow back injection port.
A fifth aspect of the embodiments of the present application provides a system for transmitting a data packet, including: a source terminal; a destination terminal; and the computer device described above.
A sixth aspect of the embodiments of the present application provides a machine-readable storage medium having stored thereon instructions for causing a machine to perform the method of packet transmission described above.
According to the technical scheme, the reverse data packet which is sent by the destination terminal and carries the first address port information is received, and whether the second address port information corresponding to the first address port information is stored on the address port connection table or not is judged based on the pre-established address port connection table, wherein the second address port information corresponding to the first address port information is carried by the data flow first packet corresponding to the reverse data packet. And under the condition that the address port connection table does not store the second address port information corresponding to the first address port information, transmitting the reverse data packet to the rest gateway units connected through the drainage reinjection port, determining a target gateway unit in the rest gateway units by the rest gateway units according to the first address port information and the address port connection table pre-created by the rest gateway units, and transmitting the reverse data packet to the source terminal by the target gateway unit. According to the method and the device, under the condition that the second address port information corresponding to the first address port information is not stored on the address port connection table of the gateway unit, the reverse data packet is sent to the other gateway units connected through the drainage reinjection port, so that the other gateway units determine that the reverse data packet is sent to the target gateway unit of the source terminal, source returning of the data packet can be achieved under the scene of multiple devices and multiple outlets, the possibility of communication interruption caused by discarding of the reverse data packet by the gateway unit is reduced, and the stability of a communication process is improved.
Additional features and advantages of embodiments of the present application will be set forth in the detailed description that follows.
Drawings
The accompanying drawings are included to provide a further understanding of embodiments of the present application and are incorporated in and constitute a part of this specification, illustrate embodiments of the present application and together with the description serve to explain, without limitation, the embodiments of the present application. In the drawings:
fig. 1 schematically illustrates a flow chart of a method of data packet transmission according to an embodiment of the present application;
FIG. 2 schematically illustrates a flow chart of a method of data packet transmission according to an embodiment of the present application;
fig. 3 schematically shows a block diagram of an apparatus for data packet transmission according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the specific implementations described herein are only for illustrating and explaining the embodiments of the present application, and are not intended to limit the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
It should be noted that, in the embodiment of the present application, directional indications (such as up, down, left, right, front, and rear … …) are referred to, and the directional indications are merely used to explain the relative positional relationship, movement conditions, and the like between the components in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indications are correspondingly changed.
In addition, if there is a description of "first", "second", etc. in the embodiments of the present application, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be regarded as not exist and not within the protection scope of the present application.
Fig. 1 schematically shows a flow chart of a method of data packet transmission according to an embodiment of the present application. As shown in fig. 1, an embodiment of the present application provides a method for transmitting a data packet, which is described by taking application of the method to a gateway unit as an example, and the method may include the following steps:
step S101: and receiving a reverse data packet sent by the destination terminal, wherein the reverse data packet carries the first address port information.
Step S102: based on the pre-created address port connection table, judging whether second address port information corresponding to the first address port information is stored on the address port connection table, wherein the second address port information corresponding to the first address port information is carried by a data flow first packet corresponding to the reverse data packet.
Step S103: and under the condition that the address port connection table does not store the second address port information corresponding to the first address port information, transmitting the reverse data packet to the rest gateway units connected through the drainage reinjection port, determining a target gateway unit in the rest gateway units by the rest gateway units according to the first address port information and the address port connection table pre-created by the rest gateway units, and transmitting the reverse data packet to the source terminal by the target gateway unit.
The gateway unit may acquire second address port information carried in the data stream first packet under the condition of receiving the data stream first packet sent by the source terminal, and create connection between the source terminal and the corresponding destination terminal based on the acquired second address port information, so as to send the data stream first packet to the destination terminal through the connection. In the same interactive process connected with a plurality of data packets, the destination terminal can send a reverse data packet to the source terminal through the gateway unit. Because of the load balancing policy, the gateway unit receiving the reverse data packet may be different from the gateway unit sending the first data packet, and at this time, the gateway unit receiving the reverse data packet discards the reverse data packet because the information of the reverse data packet is inconsistent with the information of the first data packet recorded by the gateway unit, so that the communication between the source terminal and the destination terminal is interrupted.
In order to solve the foregoing problem, in the embodiment of the present application, the gateway unit may receive a reverse packet carrying the first address port information sent by the destination terminal. The first address port information comprises first source information, first communication protocol information and first destination information. And, the gateway unit stores a pre-created address port connection table. The address port connection table is created according to second address port information of the first packet of the data stream received by the gateway unit. Further, the gateway unit may determine, according to the first address port information of the reverse data packet and the address port connection table, whether second address port information corresponding to the first address port information is stored in the address port connection table, that is, whether second address port information carried by a first packet of a data flow corresponding to the reverse data packet is stored.
In the case where the second address port information corresponding to the first address port information is not stored on the address port connection table, the gateway unit may transmit the reverse data packet to the remaining gateway units connected to the gateway unit through the reverse flow injection port. It should be noted that, in order for the gateway unit to forward the reverse data packet to the other gateway units when the second address port information corresponding to the first address port information is not stored in the address port connection table, the drainage and reinjection port of the gateway unit may be associated with the plurality of data outflow interfaces of the gateway unit, so that the plurality of data outflow interfaces of the gateway unit do not perform a normal data packet forwarding flow.
Then, according to the first address port information and the address port connection table pre-created by the other gateway units, the other gateway units can determine the address port connection table storing the second address port information corresponding to the first address port information, and further determine the gateway unit corresponding to the address port connection table as the target gateway unit. In this way, the target gateway unit may further determine the first packet ingress interface of the target gateway unit, that is, the internal network port when the target gateway unit receives the first packet of the data flow corresponding to the reverse data packet. The target gateway unit can send the reverse data packet to the source terminal through the first packet access interface of the target gateway unit, thereby realizing source removal and source return of the data packet. If the second address port information corresponding to the first address port information is not stored in the address port connection tables pre-created by the other gateway units, the other gateway units discard the reverse data packet.
According to the technical scheme, the reverse data packet which is sent by the destination terminal and carries the first address port information is received, and whether the second address port information corresponding to the first address port information is stored on the address port connection table or not is judged based on the pre-established address port connection table, wherein the second address port information corresponding to the first address port information is carried by the data flow first packet corresponding to the reverse data packet. And under the condition that the address port connection table does not store the second address port information corresponding to the first address port information, transmitting the reverse data packet to the rest gateway units connected through the drainage reinjection port, determining a target gateway unit in the rest gateway units by the rest gateway units according to the first address port information and the address port connection table pre-created by the rest gateway units, and transmitting the reverse data packet to the source terminal by the target gateway unit. According to the method and the device, under the condition that the second address port information corresponding to the first address port information is not stored on the address port connection table of the gateway unit, the reverse data packet is sent to the other gateway units connected through the drainage reinjection port, so that the other gateway units determine that the reverse data packet is sent to the target gateway unit of the source terminal, source returning of the data packet can be achieved under the scene of multiple devices and multiple outlets, the possibility of communication interruption caused by discarding of the reverse data packet by the gateway unit is reduced, and the stability of a communication process is improved.
In an embodiment of the present application, the creating of the address port connection table may include: under the condition that a data stream head packet sent by any source terminal is received, second address port information carried in the data stream head packet is obtained; the second address port information is stored to create an address port connection table.
In the embodiment of the present application, the gateway unit may receive a plurality of data stream header packets sent by a plurality of source terminals. When receiving a data stream header packet sent by any source terminal, the gateway unit can acquire second address port information carried in the data stream header packet, establish connection between any source terminal and a corresponding destination terminal according to the second address port information, and store the second address port information at the same time, thereby obtaining an address port connection table. In this way, the gateway unit can determine whether the connection between the source terminal and the destination terminal is established by the gateway unit based on the address port connection table when receiving the reverse packet transmitted from the destination terminal.
In this embodiment of the present application, the address port connection table includes second address port information carried by a plurality of first packets of the data flow, and based on the pre-created address port connection table, determining whether the address port connection table stores second address port information corresponding to the first address port information may include: respectively matching the first address port information with second address port information carried by a plurality of data stream head packets; under the condition that the first address port information is successfully matched with any second address port information, determining that the second address port information corresponding to the first address port information is stored in an address port connection table; and under the condition that the matching of the first address port information and any second address port information is unsuccessful, determining that the second address port information corresponding to the first address port information is not stored in the address port connection table.
In this embodiment of the present application, the address port connection table of the gateway unit includes second address port information carried by the first packets of the multiple data flows received by the gateway unit. The gateway unit may match the first address port information with second address port information carried by the first packets of the plurality of data flows. Under the condition that the first address port information is successfully matched with any second address port information in the second address port information carried by the first packets of the data streams, the gateway unit can determine that the second address port information corresponding to the first address port information is stored in the address port connection table, namely, the connection between the source terminal and the destination terminal is established by the gateway unit. Under the condition that the matching of the first address port information and any second address port information is unsuccessful, the gateway unit can determine that the second address port information corresponding to the first address port information is not stored in the address port connection table, namely, the connection between the source terminal and the destination terminal is not established by the gateway unit. In this way, the gateway unit can determine whether a reverse data packet needs to be forwarded to the remaining gateway units.
In the embodiment of the application, the first address port information includes first source information, first communication protocol information and first destination information, and the second address port information includes second source information, second communication protocol information and second destination information; the matching of the first address port information with the second address port information carried by the first packets of the data streams respectively may include: for any second address port information in the second address port information carried by the first packets of the data streams, judging whether the first source information is the same as the second destination information, whether the first destination information is the same as the second source information, and whether the first communication protocol information is the same as the second communication protocol information; and under the conditions that the first source information is the same as the second destination information, the first destination information is the same as the second source information, and the first communication protocol information is the same as the second communication protocol information, determining that the first address port information is successfully matched with any second address port information.
In this embodiment of the present application, the gateway unit may match the first address port information with second address port information carried by the first packets of the multiple data flows respectively. Specifically, the first address port information includes first source information, first communication protocol information, and first destination information. The first source information comprises an IP address of the destination terminal and a data sending port of the destination terminal, the first destination information comprises the IP address of the source terminal and a data receiving port of the source terminal, and the first communication protocol information refers to a communication protocol number of a reverse data packet. The second address port information carried by each data flow head packet comprises second source information, second communication protocol information and second destination information, wherein the second source information comprises an IP address of a source terminal and a data sending port of the source terminal, the second destination information comprises an IP address of a destination terminal and a data receiving port of the destination terminal, and the second communication protocol information refers to a communication protocol number of the data flow head packet.
For any second address port information in the second address port information carried by the first packets of the multiple data flows, the gateway unit may determine whether the first source information is the same as the second destination information, whether the first destination information is the same as the second source information, and whether the first communication protocol information is the same as the second communication protocol information. The gateway unit may determine that the first address port information is successfully matched with any second address port information when the first source information is the same as the second destination information, the first destination information is the same as the second source information, and the first communication protocol information is the same as the second communication protocol information, the address port connection table stores the second address port information corresponding to the first address port information, and connection between the source terminal and the destination terminal is established by the gateway unit. In the case that the first source information is the same as the second destination information, the first destination information is the same as the second source information, or the first communication protocol information is different from the second communication protocol information, the gateway unit may determine that the first address port information is not successfully matched with any second address port information, the address port connection table does not store the second address port information corresponding to the first address port information, and connection between the source terminal and the destination terminal is not established by the gateway unit.
In an embodiment of the present application, the method may further include: under the condition that second address port information corresponding to the first address port information is stored on the address port connection table, a first packet access interface is determined, wherein the first packet access interface is an internal network port of a data flow first packet corresponding to a reverse data packet received by a gateway unit; and sending the reverse data packet to the source terminal through the first packet access interface.
In this embodiment of the present application, when the second address port information corresponding to the first address port information is stored in the address port connection table, the gateway unit, that is, the gateway unit that receives the data flow header packet corresponding to the reverse data packet and establishes the connection between the source terminal and the destination terminal may be determined at this time. Therefore, the gateway unit can determine an internal network port of the data flow head packet corresponding to the received reverse data packet, and send the reverse data packet to the source terminal through the head packet input interface, so as to realize source-removing and source-returning of the data packet.
Fig. 2 schematically illustrates a flow chart of a method of data packet transmission according to an embodiment of the present application. As shown in fig. 2, in an embodiment of the present application, a method for transmitting a data packet includes:
s1: gateway unit a creates a drain-back sprue gate with gateway unit b and interfaces gateway unit a with the drain-back sprue gate of gateway unit b.
S2: and receiving the data stream head packet through the internal network port of the gateway unit a, and creating connection according to the second address port information of the data stream head packet.
S3: and when receiving the reverse data packet, checking an address port connection table of the gateway unit a to judge whether the connection is created by the gateway unit a. If yes, go to S4, if no, go to S5.
S4: the reverse data packet is sent by the first packet ingress interface of gateway unit a.
S5: the reverse data packet is sent to gateway unit b via the reverse flow gate.
S6: the address port connection table of gateway unit b is looked up to determine if a connection is created by gateway unit b. If yes, go to S7, if no, go to S8.
S7: a security check is performed.
S8: the reverse data packet is discarded.
In a specific embodiment of the present application, gateway unit a and gateway unit b respectively create a drainage and reinjection port ethm, and connect the two drainage and reinjection ports ethm through a network cable, and gateway unit a and gateway unit b respectively create an inner network port ethc and an outer network port ethd. And when the internal network port ethc of the gateway unit a receives the data stream head packet, establishing connection between the source terminal and the destination terminal according to the second address port information of the data stream head packet, and sending the data stream head packet from the external network port ethd. The created connection is not synchronized here to gateway unit b. When the gateway unit a receives the reverse data packet from the external network port ethd, the address port connection table of the gateway unit a is searched, and whether the connection between the destination terminal and the source terminal of the reverse data packet is created by the gateway unit a is judged according to the first address port information of the reverse data packet. If a connection is created for gateway unit a, a reverse data packet is sent from the first packet ingress interface to the source terminal. If a connection is created to the non-gateway unit a, the reverse data packet is sent to the gateway unit b through the drain-back port ethm. The gateway unit b receives the reverse data packet from the drainage and reinjection port ethm, searches an address port connection table of the gateway unit b according to the first address port information of the reverse data packet, and judges whether the connection between the destination terminal and the source terminal of the reverse data packet is created by the gateway unit b. If the connection is created for gateway unit b, it is sent from the first packet-in interface of the connection after checking the firewall security function. Otherwise, the gateway unit b discards the reverse data packet.
In summary, compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
1) Source-to-source return transmission under the network condition of multiple devices and multiple outlets is realized.
2) The performance loss of the synchronous connection between the gateway units is low.
3) The gateway unit discards the reverse data packet to cause less possibility of communication interruption, so that the stability of the communication process can be improved.
The embodiment of the application also provides a gateway unit configured to execute the method for transmitting the data packet.
Fig. 3 schematically shows a block diagram of an apparatus for data packet transmission according to an embodiment of the present application. As shown in fig. 3, an embodiment of the present application further provides a device for transmitting a data packet, including:
a reverse data packet receiving module 310, configured to receive a reverse data packet sent by a destination terminal, where the reverse data packet carries first address port information;
the address port information comparison module 320 is configured to determine, based on the pre-created address port connection table, whether second address port information corresponding to the first address port information is stored in the address port connection table, where the second address port information corresponding to the first address port information is carried by a data flow header packet corresponding to the reverse data packet;
and the reverse data packet forwarding module 330 is configured to send a reverse data packet to the remaining gateway units connected through the drainage reinjection port when the second address port information corresponding to the first address port information is not stored in the address port connection table, so that the remaining gateway units determine a target gateway unit in the remaining gateway units according to the first address port information and the address port connection table pre-created by the remaining gateway units, and send the reverse data packet to the source terminal by the target gateway unit.
According to the technical scheme, the reverse data packet which is sent by the destination terminal and carries the first address port information is received, and whether the second address port information corresponding to the first address port information is stored on the address port connection table or not is judged based on the pre-established address port connection table, wherein the second address port information corresponding to the first address port information is carried by the data flow first packet corresponding to the reverse data packet. And under the condition that the address port connection table does not store the second address port information corresponding to the first address port information, transmitting the reverse data packet to the rest gateway units connected through the drainage reinjection port, determining a target gateway unit in the rest gateway units by the rest gateway units according to the first address port information and the address port connection table pre-created by the rest gateway units, and transmitting the reverse data packet to the source terminal by the target gateway unit. According to the method and the device, under the condition that the second address port information corresponding to the first address port information is not stored on the address port connection table of the gateway unit, the reverse data packet is sent to the other gateway units connected through the drainage reinjection port, so that the other gateway units determine that the reverse data packet is sent to the target gateway unit of the source terminal, source returning of the data packet can be achieved under the scene of multiple devices and multiple outlets, the possibility of communication interruption caused by discarding of the reverse data packet by the gateway unit is reduced, and the stability of a communication process is improved.
In one embodiment, the apparatus for transmitting data packets further includes a reverse data packet transmitting module configured to: under the condition that second address port information corresponding to the first address port information is stored on the address port connection table, a first packet access interface is determined, wherein the first packet access interface is an internal network port of a data flow first packet corresponding to a reverse data packet received by a gateway unit; and sending the reverse data packet to the source terminal through the first packet access interface.
In one embodiment, the address port information comparison module 320 is further configured to: respectively matching the first address port information with second address port information carried by a plurality of data stream head packets; under the condition that the first address port information is successfully matched with any second address port information, determining that the second address port information corresponding to the first address port information is stored in an address port connection table; and under the condition that the matching of the first address port information and any second address port information is unsuccessful, determining that the second address port information corresponding to the first address port information is not stored in the address port connection table.
In one embodiment, the address port information comparison module 320 is further configured to: for any second address port information in the second address port information carried by the first packets of the data streams, judging whether the first source information is the same as the second destination information, whether the first destination information is the same as the second source information, and whether the first communication protocol information is the same as the second communication protocol information; and under the conditions that the first source information is the same as the second destination information, the first destination information is the same as the second source information, and the first communication protocol information is the same as the second communication protocol information, determining that the first address port information is successfully matched with any second address port information.
In one embodiment, the apparatus for transmitting a data packet further includes an address port connection table creation module configured to: under the condition that a data stream head packet sent by any source terminal is received, second address port information carried in the data stream head packet is obtained; the second address port information is stored to create an address port connection table.
The embodiment of the application also provides a computer device, which comprises: the above-mentioned data packet transmission device or the above-mentioned gateway unit; and the rest gateway units connected with the gateway units through the drainage flow back injection port.
The embodiment of the application also provides a system for transmitting the data packet, which comprises: a source terminal; a destination terminal; and the computer device described above.
Embodiments of the present application also provide a machine-readable storage medium having stored thereon instructions for causing a machine to perform the above-described method of data packet transmission.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A method of data packet transmission, performed at a gateway unit, the method comprising:
receiving a reverse data packet sent by a destination terminal, wherein the reverse data packet carries first address port information;
judging whether second address port information corresponding to the first address port information is stored on the address port connection table or not based on a pre-established address port connection table, wherein the second address port information corresponding to the first address port information is carried by a data flow first packet corresponding to the reverse data packet;
and under the condition that the address port connection table does not store the second address port information corresponding to the first address port information, sending the reverse data packet to other gateway units connected through a drainage reinjection port, determining a target gateway unit in the other gateway units by the other gateway units according to the first address port information and the address port connection table pre-created by the other gateway units, and sending the reverse data packet to a source terminal by the target gateway unit.
2. The method according to claim 1, wherein the method further comprises:
under the condition that second address port information corresponding to the first address port information is stored in the address port connection table, determining a first packet access interface, wherein the first packet access interface is an internal network port of a data flow first packet corresponding to the reverse data packet received by the gateway unit;
and sending the reverse data packet to the source terminal through the first packet access interface.
3. The method according to claim 1, wherein the address port connection table includes second address port information carried by a plurality of first packets of the data flow, and the determining, based on the pre-created address port connection table, whether the address port connection table stores the second address port information corresponding to the first address port information includes:
respectively matching the first address port information with second address port information carried by the first packets of the data streams;
under the condition that the first address port information is successfully matched with any second address port information, determining that the second address port information corresponding to the first address port information is stored in the address port connection table;
and under the condition that the matching of the first address port information and any second address port information is unsuccessful, determining that the second address port information corresponding to the first address port information is not stored in the address port connection table.
4. The method of claim 3, wherein the first address port information comprises first source information, first communication protocol information, and first destination information, and the second address port information comprises second source information, second communication protocol information, and second destination information; the matching the first address port information with the second address port information carried by the first packets of the data streams respectively includes:
for any second address port information in the second address port information carried by the first packets of the data streams, judging whether the first source information is identical to the second destination information, whether the first destination information is identical to the second source information, and whether the first communication protocol information is identical to the second communication protocol information;
and under the condition that the first source information is the same as the second destination information, the first destination information is the same as the second source information and the first communication protocol information is the same as the second communication protocol information, determining that the first address port information and any second address port information are successfully matched.
5. The method of claim 1, wherein the creating of the address port connection table comprises:
under the condition that a data stream head packet sent by any source terminal is received, second address port information carried in the data stream head packet is obtained;
and storing the second address port information to create the address port connection table.
6. An apparatus for transmitting data packets, comprising:
the reverse data packet receiving module is used for receiving a reverse data packet sent by a destination terminal, wherein the reverse data packet carries first address port information;
the address port information comparison module is used for judging whether second address port information corresponding to the first address port information is stored on the address port connection table based on a pre-established address port connection table, wherein the second address port information corresponding to the first address port information is carried by a data flow first packet corresponding to the reverse data packet;
and the reverse data packet forwarding module is used for sending the reverse data packet to other gateway units connected through a drainage reinjection port under the condition that the second address port information corresponding to the first address port information is not stored in the address port connection table, so that the other gateway units determine a target gateway unit in the other gateway units according to the first address port information and the address port connection table pre-created by the other gateway units, and the target gateway unit sends the reverse data packet to a source terminal.
7. A gateway unit configured to perform the method of data packet transmission according to any one of claims 1 to 5.
8. A computer device, comprising:
an apparatus for data packet transmission according to claim 6 or a gateway unit according to claim 7; and
and the rest gateway units are connected with the gateway units through the drainage flow back injection ports.
9. A system for data packet transmission, comprising:
a source terminal;
a destination terminal; and
the computer device of claim 8.
10. A machine-readable storage medium having stored thereon instructions for causing a machine to perform the method of data packet transmission according to any one of claims 1 to 5.
CN202311841567.7A 2023-12-28 2023-12-28 Method, device, system, gateway unit and computer equipment for transmitting data packet Pending CN117811988A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311841567.7A CN117811988A (en) 2023-12-28 2023-12-28 Method, device, system, gateway unit and computer equipment for transmitting data packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311841567.7A CN117811988A (en) 2023-12-28 2023-12-28 Method, device, system, gateway unit and computer equipment for transmitting data packet

Publications (1)

Publication Number Publication Date
CN117811988A true CN117811988A (en) 2024-04-02

Family

ID=90429301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311841567.7A Pending CN117811988A (en) 2023-12-28 2023-12-28 Method, device, system, gateway unit and computer equipment for transmitting data packet

Country Status (1)

Country Link
CN (1) CN117811988A (en)

Similar Documents

Publication Publication Date Title
EP3154227A1 (en) Packet transmission method, node, path management server and storage medium
EP3145131B1 (en) Data packet processing method, service node and delivery node
EP2901630B1 (en) Method operating in a fixed access network and user equipments
CN109361608B (en) Message processing method, system and storage medium
CN112422679B (en) Communication method and device
CN110380959B (en) Message forwarding method and device
CN112511988B (en) Message forwarding method, device, system, network device and storage medium
CN107547340B (en) Message forwarding method and device
CN107070790B (en) Route learning method and routing equipment
CN113676959A (en) Service flow forwarding method, device and equipment based on 5G core network
CN107634907B (en) Data forwarding method and device for L2VPN (layer two virtual private network)
US20230336377A1 (en) Packet forwarding method and apparatus, and network system
CN105763463A (en) Method and device for transmitting link detection message
EP3996334A1 (en) Method and device for packet forwarding
CN112583736A (en) Signaling message distribution method, device, equipment and medium
EP3893435B1 (en) Method and apparatus for processing ioam information
CN114760165A (en) Message transmission method, device and system
CN117811988A (en) Method, device, system, gateway unit and computer equipment for transmitting data packet
CN116192721A (en) Path perception method, device and system
CN111600798B (en) Method and equipment for sending and obtaining assertion message
CN113518104A (en) Data message processing method, transfer equipment and system
JP2016034116A (en) Path setting device, path setting method, path setting program, and communication system
CN114944933B (en) Multi-mode network high-robustness control method, controller and system based on heterogeneous identification
WO2023284510A1 (en) Sbfd path optimization method, controller, node, and storage medium
CN109587027B (en) Message forwarding method and device

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