CN114697388A - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN114697388A
CN114697388A CN202011447370.1A CN202011447370A CN114697388A CN 114697388 A CN114697388 A CN 114697388A CN 202011447370 A CN202011447370 A CN 202011447370A CN 114697388 A CN114697388 A CN 114697388A
Authority
CN
China
Prior art keywords
address information
service data
forwarding
target
network
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.)
Granted
Application number
CN202011447370.1A
Other languages
Chinese (zh)
Other versions
CN114697388B (en
Inventor
何晓飞
苑林
王立超
赵慧峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu TD Tech Ltd
Original Assignee
Chengdu TD Tech 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 Chengdu TD Tech Ltd filed Critical Chengdu TD Tech Ltd
Priority to CN202011447370.1A priority Critical patent/CN114697388B/en
Publication of CN114697388A publication Critical patent/CN114697388A/en
Application granted granted Critical
Publication of CN114697388B publication Critical patent/CN114697388B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses

Abstract

The application provides a data transmission method and a device, wherein the method comprises the following steps: receiving service data sent by network equipment; determining target address information corresponding to the service data according to forwarding address information corresponding to the service data and a mapping relation between the forwarding address information and the target address information; and sending the service data to the target equipment according to the target address information corresponding to the service data. Compared with the prior art, the method and the device for the data transmission determine the target device through the mapping relation between the address information, forward the service data to the target device, achieve the data transmission between the network device and the target device, and therefore solve the problem that the data transmission cannot be conducted between the core network and the device under the distributed networking.

Description

Data transmission method and device
Technical Field
The present application relates to the field of trunking communication technologies, and in particular, to a data transmission method and apparatus.
Background
The private network Communication refers to wireless technologies for providing emergency Communication, command scheduling, and daily work for government and public security, public utilities, industrial and commercial industries, and the like, and is mainly a narrowband Digital Trunking technology (services such as TErrestria Communication, etc.. currently, l Trunked RAdio, TETRA), a Police Digital Trunking technology (PDT), a Broadband Trunking Communication (B-TrunC), and the like.
The channel machine in the existing private network communication system only supports the post-routing transmission mode. In the post-routing transmission mode, the channel machine transmits an Internet Protocol (IP) address of the device in the local area network to the core network, so as to realize data transmission between the device and the core network.
However, in a distributed network, data transmission is achieved between core networks through wide area network IP addresses. The existing equipment developed based on the channel machine in the post-routing transmission mode can realize data transmission through the local area network IP under the corresponding core network, and perform corresponding services, but the data sent by other core networks under the distributed network cannot be transmitted to the equipment. Therefore, in the existing technical scheme, under the distributed network, the problem that the data sent by the core network cannot be transmitted to the device end exists.
Disclosure of Invention
The embodiment of the application provides a data transmission method and device, which can solve the problem that data sent by a core network under a distributed network cannot be transmitted to a device side in the prior art.
A first aspect of the present application provides a data transmission method, where the method includes:
receiving service data sent by network equipment;
determining target address information corresponding to the service data according to forwarding address information corresponding to the service data and a mapping relation between the forwarding address information and the target address information;
and sending the service data to target equipment according to the target address information corresponding to the service data.
In an alternative embodiment, the address information includes internet protocol address information and port address information.
In an optional implementation manner, the forwarding address information and the destination address information are determined according to a service type of the service data.
In an optional implementation manner, before the receiving the service data sent by the network device, the method further includes:
receiving target address information corresponding to the service data sent by the target equipment;
and establishing the mapping relation according to the target address information corresponding to the service data and the forwarding address information of the forwarding equipment.
In an optional implementation manner, before the receiving the service data sent by the network device, the method further includes:
receiving a mode setting request sent by the target equipment;
and setting the forwarding equipment to be in a network address conversion mode according to the mode setting request, wherein the network address conversion mode is used for indicating that the service data received by the forwarding equipment is forwarded to the target equipment.
In an optional embodiment, the method further comprises:
the network address conversion mode is further configured to instruct to send forwarding address information corresponding to the target address information of the target device to the network device.
A second aspect of the present application provides a data transmission apparatus, the apparatus comprising:
the receiving device is used for receiving the service data sent by the network equipment;
the processing device is used for determining target address information corresponding to the service data according to forwarding address information corresponding to the service data and a mapping relation between the forwarding address information and the target address information;
and the sending device is used for sending the service data to the target equipment according to the target address information corresponding to the service data.
In an alternative embodiment, the address information includes internet protocol address information and port address information.
In an optional implementation manner, the forwarding address information and the destination address information are determined according to a service type of the service data.
In an optional implementation manner, the receiving apparatus is further configured to receive target address information corresponding to the service data sent by the target device;
the processing device is further configured to establish the mapping relationship according to destination address information corresponding to the service data and forwarding address information of the forwarding device.
In an optional implementation manner, the receiving apparatus is further configured to receive a mode setting request sent by the target device;
the processing device is further configured to set the forwarding device to a network address translation mode according to the mode setting request, where the network address translation mode is used to instruct to forward the service data received by the forwarding device to the target device.
In an optional implementation manner, the network address translation mode is further configured to instruct to send forwarding address information corresponding to the destination address information of the destination device to the network device.
A third aspect of the present application provides a computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to perform a method according to the first aspect.
A fourth aspect of the application provides a computer program product comprising a computer program which, when executed by a processor, performs the method according to the first aspect.
A fifth aspect of the present application provides an electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method according to the first aspect.
The data transmission method and the data transmission device provided by the embodiment of the application firstly receive the service data sent by the network equipment, then determine the target address information corresponding to the service data according to the forwarding address information corresponding to the service data and the mapping relation between the forwarding address information and the target address information, and finally send the service data to the target equipment according to the target address information corresponding to the service data. Compared with the prior art, the method and the device for realizing the data transmission between the network equipment and the target equipment have the advantages that the target equipment is determined through the mapping relation between the address information, and then the service data is forwarded to the target equipment, so that the data transmission between the network equipment and the target equipment is realized, and the problem that the data transmission cannot be carried out between the wireless core network and the equipment under the distributed networking is solved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that 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 creative efforts.
Fig. 1 is a schematic view of an application scenario of a data transmission method according to an embodiment of the present application;
fig. 2 is a logic diagram of a vehicle-mounted station implementing data transmission through a channel machine according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another data transmission method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another data transmission method according to an embodiment of the present application;
fig. 6 is a signaling interaction diagram of a data transmission method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a data transmission device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that the embodiments described are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the claims that follow.
In the description of the present application, it is to be understood that the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not necessarily used to describe a particular order or sequence, nor are they to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The channel machine in the existing private network communication system only supports the post-routing transmission mode. In the post-routing transmission mode, the channel machine transmits an Internet Protocol (IP) address of the device in the local area network to the core network, so as to realize data transmission between the device and the core network.
However, in a distributed network, data transmission is achieved between core networks through wide area network IP addresses. The existing equipment developed based on the channel machine in the post-routing transmission mode can realize data transmission through the local area network IP under the corresponding core network, and perform corresponding services, but under the distributed network, the data sent by other core networks cannot find the corresponding equipment according to the local area network IP address, and transmit the service data to the equipment. Therefore, in the existing technical scheme, under the distributed network, the problem that the data sent by the core network cannot be transmitted to the device end exists.
In order to solve the above problem, embodiments of the present application provide a data transmission method and apparatus, which have solved a problem in the prior art that data sent by a core network in a distributed network cannot be transmitted to a device side. The invention conception of the application is as follows: the forwarding mapping relation between the wide area network IP address information and the port address information and between the local area network IP address information and the port address information is added in the channel machine, so that the data received by the channel machine can be forwarded to the corresponding equipment, and the data transmission between the core network and the equipment under the distributed network is realized.
An application scenario of the embodiment of the present application is explained below.
Fig. 1 is a schematic view of an application scenario of a data transmission method provided in an embodiment of the present application, as shown in fig. 1, including: the network device 010, the forwarding device 011 and the terminal device 012, where the network device 010 includes a plurality of core networks, such as core network 001, core network 002, core network 003, and so on. When the terminal device 012 performs the corresponding service, first, the corresponding function on the forwarding device 011 is called through a service Software Development Kit (SDK), and sends a request that the data transmission mode is the Network Address Translation (NAT) mode to the forwarding device 011, the forwarding device 011 sets the forwarding mode as the NAT mode after receiving the request, then, the terminal device 012 sends the IP address information and the port address information allocated according to the service type of the service data to the forwarding device 011, and after the forwarding device 011 receives the IP address information and the port address information, the local area network IP address information and the port address information of the terminal device 012 are replaced with the wide area network IP address information and the port address information of the forwarding device 011, and the mapping relation is stored, and finally, the forwarding device 011 transmits the wide area network IP and the port address information to the network device. Further, the service data sent by the network device 010 may find the forwarding device 011 through the wide area network IP address of the forwarding device 011 and send the service data to the forwarding device 011, and the forwarding device 011 finds the corresponding terminal device 012 according to the stored mapping relationship and forwards the service data to the terminal device 012, thereby implementing data transmission between the network device 010 and the terminal device 012 in a distributed network.
The forwarding device is not limited in type, and may be, for example, a B-trunk channel machine, a PDT channel machine, or the like.
An application scenario of the embodiment of the present application is described below with reference to a channel machine in a vehicle-mounted station host as an example.
Fig. 2 is a logic diagram of an on-board station implementing data transmission through a channel machine according to an embodiment of the present application. As shown in fig. 2, the stage host includes a gateway and an internal switch, the stage control box and the stage host are connected by a network cable, and the wireless network and the stage host are connected by a network, wherein the internal switch has four connection ports, that is, LAN1, LAN2, LAN3, and LAN4, LAN1 is connected to the gateway by a network cable, and LAN2 is connected to the stage control box by a network cable. Taking a B-TrunC service channel machine-EV 751 as an example, after a three-party application of a vehicle-mounted platform control box calls a relevant function on the channel machine through a service SDK, the channel machine judges a software version of the current three-party application at a Network Attached Storage (NAS) relevant signaling establishment stage, if the software version is a channel machine version, continuously judges whether a transmission mode is an NAT mode, and if the software version is the NAT mode, receives an IP address and port address information sent by the vehicle-mounted platform control box, maps the IP address and port address information of the vehicle-mounted platform control box with the IP address and port address information of the channel machine, stores a mapping relationship in the channel machine, and transmits the IP address of the channel machine to a wireless Network when service data is transmitted with the wireless Network. The IP address of the vehicle-mounted station control box is a private network IP address, can be set randomly and is fixed after being set, and the port address information is distributed according to the type of the service data; the IP address of the channel machine is a public network IP address which can be different after being connected with a network every time, and the port address information is determined by the mapping relation with the port address information of the vehicle-mounted platform control box. Illustratively, the private network IP address of the vehicle station control box provided by the present application is 192.0.1.231, and the port address information is 22000-40000; the public Network (WAN) IP address of the channel machine is 131.131.1.28, and the port address information is 22000-. The port address information provided by the application is a port address range allocated to the vehicle-mounted platform control box, and a single-port address required to be used by service data of the three-party application is allocated according to a specific service type.
The terminal device may be a wireless terminal in industrial control (industrial control), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a mobile phone (mobile phone), a tablet computer (pad), a wireless terminal in remote surgery (remote medical supply), a wireless terminal in smart grid (smart grid), a wireless terminal in smart home (smart home), and the like.
In this embodiment of the present application, the apparatus for implementing the function of the forwarding device may be a forwarding device, or may be an apparatus capable of supporting the forwarding device to implement the function, for example, a chip system, and the apparatus may be installed in the forwarding device. In the embodiment of the present application, the chip system may be composed of a chip, and may also include a chip and other discrete devices.
It should be noted that, the application scenarios related to the embodiment of the present application are not limited, and the data transmission method provided in the embodiment of the present application may also be applied to any other scenarios of data transmission.
It can be understood that the above data transmission method may be implemented by the data transmission apparatus provided in the embodiment of the present application, and the data transmission apparatus may be a part or all of a certain device, for example, a processor of the above forwarding device.
The following describes the technical solution of the embodiment of the present application in detail by taking a forwarding device as an example and a specific embodiment. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 3 is a schematic flowchart of a data transmission method according to an embodiment of the present application. The method comprises the following steps:
s101, receiving service data sent by network equipment.
In this step, the forwarding device receives the service data sent by the network device.
And the network equipment sends the service data to the forwarding equipment according to the forwarding address information.
S102, determining target address information corresponding to the service data according to the forwarding address information corresponding to the service data and the mapping relation between the forwarding address information and the target address information.
In this step, after the forwarding device receives the service data sent by the network device, the destination address information corresponding to the service data is determined according to the forwarding address information corresponding to the service data and the mapping relationship between the forwarding address information and the destination address information.
Wherein, the forwarding address information and the target address information are determined according to the service type of the service data. The address information includes internet protocol address information and port address information.
It should be noted that the internetworking protocol address information in the forwarding address information is wide area network IP address information, and the internetworking protocol address information in the destination address information is local area network IP address information.
The method for determining the destination address information corresponding to the service data according to the forwarding address information corresponding to the service data and the mapping relationship between the forwarding address information and the destination address information is not limited, and may be specifically set according to the forwarding address information and the destination address information, for example, a mapping table may be established.
The following describes a case where a mapping relationship is established based on forwarding address information and destination address information.
In some optional embodiments, the forwarding device receives target address information corresponding to the service data sent by the target device, and then establishes a mapping relationship according to the target address information corresponding to the service data and the forwarding address information of the forwarding device.
Each forwarding device can be connected with a plurality of target devices, the local area network IP address of each target device is different, the port address information for performing service data distribution is also different, and the mapping relationship established by the forwarding device comprises the corresponding relationship between the local area network IP address of each target device and the port address information corresponding to the local area network IP address, and the wide area network IP address of the forwarding device and the port address information corresponding to the wide area network IP address. If the port address range of the forwarding device is the same as the port address range of the target device, the mapping relationship may be established in a manner that the port address of the forwarding device is the same as the port address of the target device.
And, the forwarding device needs to be set to a corresponding mode according to the mode setting request of the target device. In some optional embodiments, the forwarding device receives a mode setting request sent by the target device, and then sets the forwarding device to a network address translation mode according to the mode setting request, where the network address translation mode is used to instruct to forward the service data received by the forwarding device to the target device.
In addition, the network address conversion mode is also used for indicating forwarding address information corresponding to the target address information of the target device to the network device.
And S103, sending the service data to the target equipment according to the target address information corresponding to the service data.
In this step, after the forwarding device determines the destination address information corresponding to the service data according to the forwarding address information corresponding to the service data and the mapping relationship between the forwarding address information and the destination address information, the forwarding device sends the service data to the destination device according to the destination address information corresponding to the service data.
In the data transmission method provided in the embodiment of the present application, first, service data sent by a network device is received, then, target address information corresponding to the service data is determined according to forwarding address information corresponding to the service data and a mapping relationship between the forwarding address information and the target address information, and finally, the service data is sent to the target device according to the target address information corresponding to the service data. Compared with the prior art, the method and the device for the data transmission between the network equipment and the target equipment have the advantages that the target equipment is determined through the mapping relation between the address information, the service data is forwarded to the target equipment, the data transmission between the network equipment and the target equipment is achieved, and therefore the problem that the data transmission between the core network and the equipment cannot be carried out under the distributed networking is solved.
On the basis of the above implementation, how to establish the mapping relationship in the present application will be described below with reference to fig. 4. Fig. 4 is a flowchart illustrating another data transmission method according to an embodiment of the present application. The method comprises the following steps:
s201, receiving target address information corresponding to the service data sent by the target equipment.
S202, establishing a mapping relation according to the target address information corresponding to the service data and the forwarding address information of the forwarding equipment.
The technical terms, technical effects, technical features, and alternative embodiments of S201-204 can be understood with reference to S102 shown in fig. 3, and repeated descriptions thereof will not be repeated here.
On the basis of the above implementation, the following describes a data transmission between the network device and the target device in the present application with reference to fig. 5. Fig. 5 is a flowchart illustrating another data transmission method according to an embodiment of the present application. The method comprises the following steps:
s301, receiving a mode setting request sent by the target device.
S302, according to the mode setting request, the forwarding device is set to be in a network address conversion mode.
And S303, receiving target address information corresponding to the service data sent by the target equipment.
S304, establishing a mapping relation according to the target address information corresponding to the service data and the forwarding address information of the forwarding equipment.
S305, transmitting the forwarding address information corresponding to the target address information of the target device to the network device.
S306, receiving the service data sent by the network equipment.
S307, determining the target address information corresponding to the service data according to the forwarding address information corresponding to the service data and the mapping relation between the forwarding address information and the target address information.
And S308, sending the service data to the target equipment according to the target address information corresponding to the service data.
The technical terms, technical effects, technical features, and alternative embodiments of S301 to S308 can be understood with reference to S101 to S103 shown in fig. 3, and repeated descriptions thereof will not be repeated here.
Based on the above embodiments, a process of implementing data transmission between a network device and a target device through a mapping relationship in the present application will be specifically described below with reference to fig. 6. Fig. 6 is a signaling interaction diagram of a data transmission method according to an embodiment of the present application. As shown in fig. 6, the method includes:
s401, the target device sends a mode setting request to the forwarding device.
In this step, the target device calls a corresponding functional interface in the forwarding device according to the service SDK, and sends a mode setting request to the forwarding device.
S402, the forwarding device sets the forwarding device to be in a network address conversion mode according to the mode setting request.
In this step, after the target device sends a mode setting request to the forwarding device, the forwarding device receives the mode setting request, and sets the forwarding device to the network address translation mode according to the mode setting request.
S403, the forwarding device sends indication information to the target device, wherein the indication information is used for indicating that the network address conversion mode setting is completed.
In this step, after the forwarding device sets the forwarding device to the network address translation mode according to the mode setting request, the forwarding device sends indication information to the target device, where the indication information is used to indicate that the network address translation mode setting has been completed.
S404, the target device sends target address information to the forwarding device.
In this step, after the forwarding device is set to the network address translation mode, the target device sends the target address information to the forwarding device.
S405, the forwarding device establishes a mapping relation according to the target address information corresponding to the service data and the forwarding address information of the forwarding device.
In this step, after the target device sends the target address information to the forwarding device, the forwarding device establishes a mapping relationship according to the target address information corresponding to the service data and the forwarding address information of the forwarding device.
Wherein the mapping relation is stored in the forwarding device.
S406, the forwarding device sends the forwarding address information to the network device.
In this step, after the forwarding device establishes a mapping relationship according to the destination address information corresponding to the service data and the forwarding address information of the forwarding device, the forwarding device sends the forwarding address information to the network device when the destination device performs a corresponding service.
And S407, the network device sends the service data to the forwarding device.
In this step, after the forwarding device sends the forwarding address information to the network device, the network device sends the service data to the forwarding device.
After receiving the forwarding address information, the network device sends the corresponding service data to the forwarding device according to the service data type.
S408, the forwarding device determines the target address information corresponding to the service data according to the forwarding address information corresponding to the service data and the mapping relationship between the forwarding address information and the target address information.
In this step, after the network device sends the service data to the forwarding device, the forwarding device determines the destination address information corresponding to the service data according to the forwarding address information corresponding to the service data and the mapping relationship between the forwarding address information and the destination address information.
And S409, the forwarding equipment sends the service data to the target equipment.
In this step, after the forwarding device determines the destination address information corresponding to the service data according to the forwarding address information corresponding to the service data and the mapping relationship between the forwarding address information and the destination address information, the forwarding device sends the service data to the destination device.
In the data transmission method provided in the embodiment of the present application, first, service data sent by a network device is received, then, target address information corresponding to the service data is determined according to forwarding address information corresponding to the service data and a mapping relationship between the forwarding address information and the target address information, and finally, the service data is sent to the target device according to the target address information corresponding to the service data. Compared with the prior art, the method and the device for the data transmission determine the target device through the mapping relation between the address information, forward the service data to the target device, achieve the data transmission between the network device and the target device, and therefore solve the problem that the data transmission cannot be conducted between the core network and the device under the distributed networking.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 7 is a schematic structural diagram of a data transmission device according to an embodiment of the present application. The data transmission means may be implemented by software, hardware or a combination of both. As shown in fig. 7, the data transmission apparatus 500 includes:
a receiving module 501, configured to receive service data sent by a network device;
a processing module 502, configured to determine, according to forwarding address information corresponding to the service data and a mapping relationship between the forwarding address information and target address information, target address information corresponding to the service data;
a sending module 503, configured to send the service data to the target device according to the target address information corresponding to the service data.
In an alternative embodiment, the address information includes internet protocol address information and port address information.
In an alternative embodiment, the forwarding address information and the destination address information are determined according to the service type of the service data.
In an optional implementation manner, the receiving module 501 is further configured to receive target address information corresponding to service data sent by a target device;
the processing module 502 is further configured to establish a mapping relationship according to the destination address information corresponding to the service data and the forwarding address information of the forwarding device.
In an optional implementation manner, the receiving module 501 is further configured to receive a mode setting request sent by the target device;
the processing module 502 is further configured to set the forwarding device to a network address translation mode according to the mode setting request, where the network address translation mode is used to instruct to forward the service data received by the forwarding device to the target device.
In an optional implementation, the network address translation mode is further used to instruct to send forwarding address information corresponding to the destination address information of the destination device to the network device.
The principle and technical effect of the data transmission device provided in this embodiment are similar to those of the data transmission method, and are not described herein again.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 8, the electronic device may include: at least one processor 601 and memory 602. Fig. 8 shows an electronic device as an example of a processor.
A memory 602 for storing programs. In particular, the program may include program code including computer operating instructions.
The memory 602 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor 601 is used for executing computer execution instructions stored in the memory 602 to implement the data transmission method;
the processor 601 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiments of the present Application.
Alternatively, in a specific implementation, if the communication interface, the memory 602 and the processor 601 are implemented independently, the communication interface, the memory 602 and the processor 601 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. Buses may be classified as address buses, data buses, control buses, etc., but do not represent only one bus or type of bus.
Alternatively, in a specific implementation, if the communication interface, the memory 602 and the processor 601 are integrated into a chip, the communication interface, the memory 602 and the processor 601 may complete communication through an internal interface.
The embodiment of the application also provides a chip which comprises a processor and an interface. Wherein the interface is used for inputting and outputting data or instructions processed by the processor. The processor is configured to perform the methods provided in the above method embodiments. The chip can be applied to a data transmission device.
The present application also provides a computer-readable storage medium, which may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, are specifically, the computer-readable storage medium stores program information, and the program information is used for the data transmission method.
Embodiments of the present application further provide a program, which is configured to execute the data transmission method provided in the above method embodiments when executed by a processor.
Embodiments of the present application further provide a program product, such as a computer-readable storage medium, having stored therein instructions, which, when executed on a computer, cause the computer to execute the data transmission method provided by the foregoing method embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the invention are brought about in whole or in part when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). Computer-readable storage media can be any available media that can be accessed by a computer or a data storage device, such as a server, data center, etc., that includes one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (15)

1. A method of data transmission, the method comprising:
receiving service data sent by network equipment;
determining target address information corresponding to the service data according to forwarding address information corresponding to the service data and a mapping relation between the forwarding address information and the target address information;
and sending the service data to target equipment according to the target address information corresponding to the service data.
2. The method of claim 1, wherein the address information comprises internet protocol address information and port address information.
3. The method of claim 1, wherein the forwarding address information and the destination address information are determined according to a traffic type of the traffic data.
4. The method of claim 1, wherein before the receiving the traffic data sent by the network device, the method further comprises:
receiving target address information corresponding to the service data sent by the target equipment;
and establishing the mapping relation according to the target address information corresponding to the service data and the forwarding address information of the forwarding equipment.
5. The method of claim 1, wherein before the receiving the traffic data sent by the network device, the method further comprises:
receiving a mode setting request sent by the target equipment;
and setting the forwarding equipment to be in a network address conversion mode according to the mode setting request, wherein the network address conversion mode is used for indicating that the service data received by the forwarding equipment is forwarded to the target equipment.
6. The method of claim 5, further comprising:
the network address conversion mode is further used for indicating that forwarding address information corresponding to the target address information of the target device is sent to the network device.
7. A data transmission apparatus, characterized in that the apparatus comprises:
the receiving module is used for receiving the service data sent by the network equipment;
the processing module is used for determining target address information corresponding to the service data according to forwarding address information corresponding to the service data and a mapping relation between the forwarding address information and the target address information;
and the sending module is used for sending the service data to the target equipment according to the target address information corresponding to the service data.
8. The apparatus of claim 7, wherein the address information comprises internet protocol address information and port address information.
9. The apparatus of claim 7, wherein the forwarding address information and the destination address information are determined according to a traffic type of the traffic data.
10. The apparatus according to claim 7, wherein the receiving module is further configured to receive destination address information corresponding to the service data sent by the destination device;
the processing module is further configured to establish the mapping relationship according to destination address information corresponding to the service data and forwarding address information of the forwarding device.
11. The apparatus according to claim 7, wherein the receiving module is further configured to receive a mode setting request sent by the target device;
the processing module is further configured to set the forwarding device to a network address translation mode according to the mode setting request, where the network address translation mode is used to instruct to forward the service data received by the forwarding device to the target device.
12. The apparatus of claim 11, wherein the network address translation mode is further configured to instruct sending forwarding address information corresponding to the destination address information of the destination device to the network device.
13. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method steps according to any of claims 1-6.
14. A computer program product comprising a computer program, characterized in that the computer program realizes the method steps of any of claims 1-6 when executed by a processor.
15. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1-6.
CN202011447370.1A 2020-12-11 2020-12-11 Data transmission method and device Active CN114697388B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011447370.1A CN114697388B (en) 2020-12-11 2020-12-11 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011447370.1A CN114697388B (en) 2020-12-11 2020-12-11 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN114697388A true CN114697388A (en) 2022-07-01
CN114697388B CN114697388B (en) 2024-01-30

Family

ID=82130488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011447370.1A Active CN114697388B (en) 2020-12-11 2020-12-11 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN114697388B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115734201A (en) * 2022-11-18 2023-03-03 中国联合网络通信集团有限公司 Method and device for acquiring user service data, electronic equipment and storage medium
CN116132385A (en) * 2022-08-18 2023-05-16 马上消费金融股份有限公司 Data forwarding method, device, computer equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877728A (en) * 2010-06-25 2010-11-03 中兴通讯股份有限公司 Method and device for converting and forwarding network addresses
EP2262185A1 (en) * 2008-04-30 2010-12-15 Chengdu Huawei Symantec Technologies Co., Ltd. Method and system for forwarding data among private networks
CN103023787A (en) * 2011-09-26 2013-04-03 百度在线网络技术(北京)有限公司 Data center system, data center device and method for providing service
CN106982270A (en) * 2016-01-19 2017-07-25 华为技术有限公司 A kind of method, device and network system distributed and map public network address
CN107959613A (en) * 2016-10-18 2018-04-24 华为技术有限公司 Message forwarding method and device
CN110662259A (en) * 2019-12-02 2020-01-07 武汉慧联无限科技有限公司 Message processing method and device and computer storage medium
CN111147425A (en) * 2018-11-05 2020-05-12 成都鼎桥通信技术有限公司 Data access processing method, device, equipment and storage medium
CN111432040A (en) * 2019-01-09 2020-07-17 成都鼎桥通信技术有限公司 Data packet sending method and device for multi-system terminal
CN111711705A (en) * 2020-04-21 2020-09-25 北京天维信通科技有限公司 Method and device for realizing network connection based on bidirectional NAT (network Address translation) by proxy node

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2262185A1 (en) * 2008-04-30 2010-12-15 Chengdu Huawei Symantec Technologies Co., Ltd. Method and system for forwarding data among private networks
CN101877728A (en) * 2010-06-25 2010-11-03 中兴通讯股份有限公司 Method and device for converting and forwarding network addresses
CN103023787A (en) * 2011-09-26 2013-04-03 百度在线网络技术(北京)有限公司 Data center system, data center device and method for providing service
CN106982270A (en) * 2016-01-19 2017-07-25 华为技术有限公司 A kind of method, device and network system distributed and map public network address
CN107959613A (en) * 2016-10-18 2018-04-24 华为技术有限公司 Message forwarding method and device
CN111147425A (en) * 2018-11-05 2020-05-12 成都鼎桥通信技术有限公司 Data access processing method, device, equipment and storage medium
CN111432040A (en) * 2019-01-09 2020-07-17 成都鼎桥通信技术有限公司 Data packet sending method and device for multi-system terminal
CN110662259A (en) * 2019-12-02 2020-01-07 武汉慧联无限科技有限公司 Message processing method and device and computer storage medium
CN111711705A (en) * 2020-04-21 2020-09-25 北京天维信通科技有限公司 Method and device for realizing network connection based on bidirectional NAT (network Address translation) by proxy node

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116132385A (en) * 2022-08-18 2023-05-16 马上消费金融股份有限公司 Data forwarding method, device, computer equipment and storage medium
CN115734201A (en) * 2022-11-18 2023-03-03 中国联合网络通信集团有限公司 Method and device for acquiring user service data, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114697388B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
EP3742785B1 (en) Session management method and device
CN109672708B (en) Communication method, device and system
CN112235175B (en) Access method and access device of network bridge equipment and network bridge equipment
CN114697388B (en) Data transmission method and device
CN110177010B (en) Link switching method and device
CN110752975A (en) Network sharing method and device
CN108462701B (en) Hotspot-free shared mobile phone network surfing system and method
US20150055575A1 (en) Radio device, address determination method, communication system and radio terminal
KR20100059939A (en) Network allocation
CN104426816B (en) A kind of virtual machine communication method and device
EP3086617A1 (en) Repeating method and corresponding communication network device, system, computer readable program product and computer readable storage medium
JP2019525566A (en) Multi-network convergence method and apparatus
CN112788160B (en) Switching method and switching device of address information
CN107454659B (en) Terminal identification method, system, terminal equipment and base station
CN110430478B (en) Networking communication method, device, terminal equipment and storage medium
CN115174310B (en) PDN dialing and configuration method, system, device, equipment and storage medium
CN107547692B (en) Method and device for configuring IP address and port number between dual systems
CN103179229B (en) A kind of data service communications method, equipment and system
CN112511980B (en) Communication system, method and device
CN112996137A (en) Method for establishing data connection on multi-operation system terminal
CN108200542B (en) Method and device for interconnecting multiple incompatible systems
CN113014679B (en) Communication method, device and system
CN112448878B (en) PPPoE transparent transmission method, PPPoE server and electronic equipment
CN117377129A (en) Network sharing method and device, chip, electronic equipment and storage medium
CN106789529B (en) Method and terminal for implementing OVERLAY network

Legal Events

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