[go: up one dir, main page]

CN111107176A - Data transmission method and device, computer equipment and storage medium - Google Patents

Data transmission method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111107176A
CN111107176A CN201911293553.XA CN201911293553A CN111107176A CN 111107176 A CN111107176 A CN 111107176A CN 201911293553 A CN201911293553 A CN 201911293553A CN 111107176 A CN111107176 A CN 111107176A
Authority
CN
China
Prior art keywords
address
data
arp
queried
uplink data
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
CN201911293553.XA
Other languages
Chinese (zh)
Other versions
CN111107176B (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.)
Comba Network Systems Co Ltd
Original Assignee
Comba Telecom Systems China 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 Comba Telecom Systems China Ltd filed Critical Comba Telecom Systems China Ltd
Priority to CN201911293553.XA priority Critical patent/CN111107176B/en
Publication of CN111107176A publication Critical patent/CN111107176A/en
Priority to PCT/CN2020/136919 priority patent/WO2021121286A1/en
Application granted granted Critical
Publication of CN111107176B publication Critical patent/CN111107176B/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/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • 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
    • H04L61/255Maintenance or indexing of mapping tables

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请涉及一种数据传输方法、装置、计算机设备和存储介质,由于预先在基站的SDAP模块中建立了地址映射表,映射单元根据接收的数据,将MAC地址与IP地址的映射关系存储至地址映射表中,在接收到数据为ARP/RARP请求数据时,只需在地址映射表中查询是否存在待查询地址的对应映射关系,并在存在对应映射关系时,根据查询结果直接进行响应,相当于,映射单元执行数据监控、自学习,构建内部MAC地址与IP地址的映射表,在终端发起相应查询请求时,率先查找自身映射表,存在时直接给予终端响应服务,这样,极大降低了业务响应的时延,提升了客户体验。

Figure 201911293553

The present application relates to a data transmission method, device, computer equipment and storage medium. Since an address mapping table is established in the SDAP module of the base station in advance, the mapping unit stores the mapping relationship between the MAC address and the IP address to the address according to the received data. In the mapping table, when the received data is ARP/RARP request data, it is only necessary to query whether there is a corresponding mapping relationship of the address to be queried in the address mapping table, and if there is a corresponding mapping relationship, it will directly respond according to the query result. Therefore, the mapping unit performs data monitoring and self-learning, and builds a mapping table between internal MAC addresses and IP addresses. When the terminal initiates a corresponding query request, it first searches its own mapping table, and directly responds to the terminal when it exists. The delay of business response improves customer experience.

Figure 201911293553

Description

Data transmission method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data transmission method, an apparatus, a computer device, and a storage medium.
Background
In the 4G communication system, the terminal cannot perform the conventional ethernet services, such as an Address Resolution Protocol (ARP) service, a Reverse Address Resolution Protocol (RARP) service, and the like, which are all supported in the 5G system.
The existing 5G base station does not perform deep analysis on the service data of the ethernet session, and does not perform self-learning of large data, especially for the ARP/RARP service, that is, the 5G base station does not directly have a response capability to the ethernet session service, and is only located at a working position for forwarding a corresponding service packet.
Therefore, the existing 5G base station has a delay problem to the service response of ARP/RARP in the Ethernet session.
Disclosure of Invention
In view of the above, it is necessary to provide a data transmission method, an apparatus, a computer device and a storage medium for solving the above technical problems.
In a first aspect, an embodiment of the present application provides a data transmission method, where the method includes:
receiving uplink data sent by the PDCP module;
if the uplink data is ARP/RARP request data, acquiring a first address to be queried in the ARP/RARP request data, wherein the first address to be queried comprises an IP address to be queried or an MAC address to be queried;
inquiring a second address corresponding to the first address to be inquired from a preset address mapping table; the address mapping table comprises mapping relations between a plurality of MAC addresses and IP addresses;
and if the second address exists in the address mapping table, sending the second address to the PDCP module.
In one embodiment, if the first address to be queried is an IP address, the second address is a MAC address; and if the first address to be inquired is the MAC address, the second address is the IP address.
In one embodiment, before querying a second address corresponding to a first address to be queried from a preset address mapping table, the method further includes:
and if the second address does not exist in the address mapping table, sending the uplink data to the GTP module.
In one embodiment, before obtaining the first address to be queried in the ARP/RARP request data, the method includes:
judging whether the uplink data is an Ethernet session;
if the uplink data is the Ethernet session, judging whether the uplink data is ARP/RARP request data;
if the uplink data is ARP/RARP request data, executing a step of acquiring a first address to be inquired in the ARP/RARP request data;
and if the data is not the ARP/RARP request data, sending the uplink data to the GTP module.
In one embodiment, determining whether the upstream data is an ethernet session includes: and if the bearing type of the uplink data is the bearing type corresponding to the Ethernet session, determining that the uplink data is the Ethernet session.
In one embodiment, the determining whether the uplink data is ARP/RARP request data includes: and if the data type identifier carried in the uplink data is the identifier corresponding to the ARP/RARP request data, determining that the uplink data is the ARP/RARP request data.
In one embodiment, the method further comprises:
acquiring an original MAC and a corresponding source IP address in uplink data;
and updating the address mapping table according to the original MAC in the uplink data and the corresponding source IP address.
In one embodiment, the method further comprises:
receiving downlink data sent by a GTP module;
acquiring an original MAC and a corresponding source IP address in downlink data;
and updating the address mapping table according to the original MAC and the corresponding source IP address in the downlink data.
In one embodiment, before acquiring an original MAC and a corresponding source IP address in downlink data, the method includes:
judging whether the downlink data is response data of the ARP/RARP request;
and if so, acquiring the original MAC and the corresponding source IP address in the downlink data.
If not, the downlink data is sent to the PDCP module.
In a second aspect, an embodiment of the present application provides a data transmission apparatus, including:
a receiving module, configured to receive uplink data sent by the PDCP module;
the acquisition module is used for acquiring a first address to be queried in the ARP/RARP request data if the uplink data is the ARP/RARP request data, wherein the first address to be queried comprises an IP address to be queried or an MAC address to be queried;
the query module is used for querying a second address corresponding to the first address to be queried from a preset address mapping table; the address mapping table comprises mapping relations between a plurality of MAC addresses and IP addresses;
and the sending module is used for sending the second address to the PDCP module if the second address exists in the address mapping table.
In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps of any one of the methods provided in the embodiments of the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any one of the methods provided in the embodiments of the first aspect.
The embodiment of the application provides a data transmission method, a data transmission device, computer equipment and a storage medium, because the address mapping table is established in the SDAP module of the base station in advance, the mapping unit stores the mapping relation between the MAC address and the IP address into the address mapping table according to the received data, when the received data is ARP/R ARP request data, only the address mapping table is required to be inquired whether the corresponding mapping relation of the address to be inquired exists or not, and when the corresponding mapping relation exists, directly responding according to the query result, namely, the mapping unit performs data monitoring and self-learning to construct a mapping table of an internal MAC address and an IP address, when the terminal initiates a corresponding query request, the terminal searches a self mapping table firstly, and if the self mapping table exists, the terminal directly provides response service to the terminal, so that the time delay of service response is greatly reduced, and the customer experience is improved.
Drawings
FIG. 1 is a diagram of an application environment of a data transmission method according to an embodiment;
fig. 2 is a flowchart illustrating a data transmission method according to an embodiment;
FIG. 2a is a block diagram illustrating modules of a data transmission according to an embodiment;
fig. 3 is a flowchart illustrating a data transmission method according to an embodiment;
fig. 4 is a flowchart illustrating a data transmission method according to an embodiment;
fig. 5 is a flowchart illustrating a data transmission method according to an embodiment;
fig. 6 is a flowchart illustrating a data transmission method according to an embodiment;
fig. 7 is a complete diagram of an uplink data transmission method according to an embodiment;
fig. 8 is a complete diagram of an uplink data transmission method according to an embodiment;
fig. 9 is a block diagram of a data transmission apparatus according to an embodiment;
fig. 10 is a block diagram of a data transmission apparatus according to an embodiment;
fig. 11 is a block diagram of a data transmission apparatus according to an embodiment;
FIG. 12 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The data transmission method provided by the application can be applied to an application environment shown in fig. 1, wherein a 5G core network includes a core network device, a 5G access network includes a 5G base station and a 4G base station, and a user terminal device performs data interaction with the base station. The user terminal may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. In the application environment, the user terminal equipment sends each service data to the 5G core network through the 5G access network, wherein the data transmission method provided by the application is realized when the 5G access network and the 5G core network carry out data interaction. The 5G base station includes a Service Data Adaptation Protocol (SDAP) module, a Packet Data Convergence Protocol (PDCP) module, a GPRS Tunneling Protocol (GTP) module, and the like, and in practical application, a mapping unit is set in the SDAP module in the base station, and the mapping unit is used to execute the Data transmission method provided in the present application.
The embodiment of the application provides a data transmission method, a data transmission device, computer equipment and a storage medium, and aims to solve the problem that the service response of the existing 5G base station to ARP/RARP in an Ethernet session has time delay. The following describes in detail the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems by embodiments and with reference to the drawings. 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. It should be noted that in the data transmission method provided in the present application, the execution main bodies of fig. 2 to fig. 8 are mapping units, where the execution main bodies may also be data transmission devices or base stations, and the mapping units or the data transmission devices may be implemented as part or all of the base stations by software, hardware, or a combination of software and hardware.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 is obvious that the described embodiments are some embodiments of the present application, but not all embodiments.
In an embodiment, fig. 2 provides a data transmission method, where this embodiment relates to a specific process of a mapping unit processing uplink data when the uplink data is ARP/RARP request data, as shown in fig. 2, the method includes:
s101, receiving uplink data sent by the PDCP module.
Referring to fig. 2a, the uplink data represents data transmitted from the mobile phone terminal to the internet server. The uplink data may be any data type, function and data carrying any relevant information, for example, various service data related to the mobile phone terminal, such as signaling data, IP data, and the like. In practical application, after the mobile phone terminal sends uplink data and reaches the PDCP module, the mapping unit in the SDAP module receives the uplink data. The embodiment of the present application takes ARP/RARP service in which transmission data between a mobile phone terminal and a 5G base station is an ethernet session as an example.
S102, if the uplink data is ARP/RARP request data, a first address to be inquired in the ARP/RARP request data is obtained, and the first address to be inquired comprises an IP address to be inquired or an MAC address to be inquired.
The ARP request data indicates an Address Resolution Protocol (ARP), which is a TCP/IP Protocol for acquiring a physical Address according to an IP Address, that is, an ARP command may be used to query a correspondence between an IP Address and an MAC Address in an ARP cache of the local computer, add or delete a static correspondence, and the like; the RARP request data indicates a Reverse Address Resolution Protocol (RARP), which is a Reverse request of ARP, that is, a TCP/IP protocol that acquires an IP Address according to a MAC Address.
Based on the uplink data received by the mapping unit, if the uplink data belongs to the ARP/RARP request data, the mapping unit acquires a first address to be queried in the ARP/RARP request data. The different first addresses which are requested to be queried are different, optionally, if the first addresses are ARP request data, the first addresses to be queried are IP addresses to be queried, and if the first addresses are RARP request data, the first addresses to be queried are MAC addresses to be queried.
S103, inquiring a second address corresponding to the first address to be inquired from a preset address mapping table; the address mapping table comprises a plurality of mapping relations between MAC addresses and IP addresses.
The address mapping table is a table which is established in advance and used for storing the mapping relation between the MAC address and the IP address, and the address mapping table is updated and maintained in the data transmission process of the mobile phone terminal and the base station. It can be understood that, during the first data transmission process after the address mapping table is established, the mapping unit starts to store the mapping relationship between the MAC address and the IP address in each received data into the address mapping table.
Specifically, in this step, the mapping unit queries, from a preset address mapping table, a second address corresponding to the first address to be queried, where the second address is an address corresponding to the first address to be queried, and optionally, if the first address to be queried is an IP address, the second address is an MAC address; and if the first address to be inquired is the M AC address, the second address is the IP address. Of course, since the address mapping table is in a state of being stored and updated in real time, there are two cases that the corresponding second address is queried from the first mapping table and the corresponding second address is not queried in the query.
S104, if the second address exists in the address mapping table, the second address is sent to the PDCP module.
Aiming at the condition that a second address corresponding to the first address to be inquired exists in the address mapping table, the mapping unit directly responds a message according to the inquired mapping information component, namely processes the message according to the SDAP protocol, and then sends the message to the PDCP module.
In the data transmission method provided by this embodiment, an address mapping table is established in an SDAP module of a base station in advance, a mapping unit stores a mapping relationship between an MAC address and an IP address in the address mapping table according to received data, when the received data is ARP/RARP request data, it is only necessary to query whether a corresponding mapping relationship of an address to be queried exists in the address mapping table, and when the corresponding mapping relationship exists, a response is directly performed according to a query result, which is equivalent to that, the mapping unit performs data monitoring and self-learning to construct a mapping table of an internal MAC address and an IP address, when a terminal initiates a corresponding query request, the mapping table itself is searched first, and when the corresponding query request exists, a response service is directly provided to the terminal, so that a service response delay is greatly reduced, and customer experience is improved.
For the above embodiment, if there is no second address corresponding to the first address to be queried in the address mapping table, an embodiment is provided, and optionally, the method further includes: and if the second address does not exist in the address mapping table, sending the uplink data to the GTP module.
Referring to the data flow chart of each module in the base station shown in fig. 2a, when there is no second address in the address mapping table, which indicates that the mapping unit cannot directly process the request data at present, the request data is continuously transmitted upward and transmitted to the GTP module in the base station. Therefore, when the terminal cannot respond to the request data of the terminal, the request data is forwarded to the path capable of processing the request, and the timeliness of data transmission is greatly guaranteed.
As to the above process for determining whether uplink data is ARP/RARP request data, the present application provides specific descriptions for corresponding embodiments, and in one embodiment, as shown in fig. 3, the step of determining whether uplink data is ARP/RARP request data includes:
s201, judging whether the uplink data is an Ethernet session.
After receiving the uplink data, the mapping unit judges whether the uplink data is an ethernet session, and executes the subsequent steps on the premise that the uplink data is the ethernet session, otherwise, directly transmits the uplink data according to the original path, namely to the GTP module, under the condition that the uplink data is not the ethernet session.
Optionally, in an embodiment, one way of determining whether the upstream data is an ethernet session includes: and if the bearing type of the uplink data is the bearing type corresponding to the Ethernet session, determining that the uplink data is the Ethernet session. That is, the mapping unit determines whether the bearer type of the uplink data is the bearer type corresponding to the ethernet session, and if so, determines that the uplink data is the ethernet session.
S202, if the uplink data is the Ethernet session, judging whether the uplink data is ARP/RARP request data.
When the uplink data is the Ethernet session, the mapping unit continuously judges whether the uplink data is ARP/RARP request data. If the ARP/RARP request data is present, step S203 is executed, that is, the subsequent data transmission is executed according to the methods provided in steps S103 and S104; if not, executing step S204, that is, transmitting according to the original path, and transmitting the uplink data to the GTP module.
S203, the first address to be inquired in the ARP/RARP request data is obtained.
And S204, sending the uplink data to the GTP module.
Optionally, in an embodiment, a manner of determining whether the uplink data is ARP/RARP request data includes: and if the data type identifier carried in the uplink data is the identifier corresponding to the ARP/RARP request data, determining that the uplink data is the ARP/RARP request data. And the mapping unit judges a data type identifier carried in a data packet of the uplink data, and if the data type identifier is consistent with an identifier corresponding to the ARP/RARP request data, the mapping unit determines that the uplink data is the ARP/RARP request data. Of course, in practical applications, it may also be determined whether the uplink data is ARP/RARP request data according to other manners, and this determination manner is not specifically limited in this embodiment.
In the data transmission method provided in this embodiment, after receiving the uplink data, it is first determined whether the uplink data is ARP/RARP request data, if the uplink data is ARP/RARP request data, the step of searching the address mapping table is executed, and if the uplink data is not ARP/RARP request data, the uplink data is transmitted according to the original transmission path.
In addition, the present application further provides an embodiment of updating the address mapping table, where the process of updating the address mapping table includes two types, one is updating according to the uplink data, and the other is updating according to the downlink data received by the mapping unit.
As shown in fig. 4, in an embodiment, the process of updating the address mapping table according to the uplink data includes:
s301, the original MAC in the uplink data and the corresponding source IP address are obtained.
In this embodiment, the mapping unit obtains, from the uplink data, an original MAC carried by the uplink data and a corresponding source IP address, that is, an MAC of the uplink data itself and a corresponding IP address.
S302, updating an address mapping table according to the original MAC in the uplink data and the corresponding source IP address.
And updating the MAC of the acquired uplink data and the corresponding IP address into an address mapping table. When it needs to be described, when the address mapping table is updated, if the MAC obtained this time and the corresponding IP address already exist in the address mapping table, storage is not needed, so that processing resources can be saved, and processing efficiency can be improved.
As shown in fig. 5, in an embodiment, the process of updating the address mapping table according to the downlink data includes:
s401, receiving downlink data sent by the GTP module.
This embodiment is a process of updating, by the mapping unit, the address mapping table according to the downlink data, and therefore, the downlink data sent by the GTP module needs to be received first. The downlink data may refer to the data transmitted toward the mobile phone terminal in fig. 2 a.
S402, acquiring the original MAC and the corresponding source IP address in the downlink data.
And S403, updating the address mapping table according to the original MAC and the corresponding source IP address in the downlink data.
And acquiring the MAC carried by the downlink data and the corresponding IP address from the downlink data, and updating the MAC and the corresponding IP address in a stored value address mapping table.
In the two methods for updating the address mapping table provided in this embodiment, no matter the uplink data or the downlink data received by the mapping unit, the address mapping table needs to be updated according to the MAC carried in the data and the corresponding IP address, so as to ensure that the data in the address mapping table is effective and comprehensive.
It is conceivable that the present application is directed to an ARP/RARP request service in an ethernet session, so to improve processing efficiency, after receiving downlink data, a mapping unit needs to first determine whether the downlink data is response data of an ARP/RARP request, and optionally, as shown in fig. 6, the method includes:
s501, judging whether the downlink data is response data of the ARP/RARP request.
In this embodiment, the determining method may refer to the determining method provided in the embodiment of fig. 3, and in practical application, other manners may also be adopted to determine whether the downlink data is response data of an ARP/RARP request, which is not limited in this embodiment. If the downlink data is the response data of the ARP/RARP request, step S502 is executed, and if the downlink data is not the response data of the ARP/RARP request, step S503 is executed.
S502, the original MAC in the downlink data and the corresponding source IP address are obtained.
This step is the step S402, that is, if the determination result is that the downlink data is the response data of the ARP/RARP request, the step S402 is executed.
S503, sending the downlink data to the PDCP module.
In this step, if the downlink data is not the response data of the ARP/RARP request as a result of the determination, the downlink data is sent to the PDCP module, that is, the transmission is performed according to the original path without any processing according to the downlink data.
In the embodiment, after receiving the downlink data, it is determined whether the downlink data is of a data type to be processed, and if not, the downlink data is directly transmitted according to the original path, so that resources are greatly saved, and the data transmission efficiency is improved.
Based on all the above embodiments, as shown in fig. 7 and fig. 8, the present application provides a complete process of uplink data and downlink data, where the uplink transmission executing step includes:
s11, receiving the uplink data transmitted from the PDCP module, and turning to S12;
s12, judging whether the uplink data is Ethernet conversation, if yes, turning to S13, otherwise, turning to S18;
s13, judging whether the request data is ARP/RARP, if so, turning to S14, otherwise, turning to S18;
s14, recording the mapping between the original MAC and the source IP address in the uplink data and storing the mapping to a mapping table library, and turning to S15;
s15, inquiring a local preset MAC-IP address mapping table according to the address to be inquired carried in the uplink data, and turning to S16;
s16, judging whether the corresponding mapping of the address request to be inquired exists, if so, turning to S17, otherwise, turning to S18;
s17, responding the ARP/RARP request according to the searched mapping information, processing the message according to the SDAP protocol, then sending the message to the PDCP module, and turning to S19;
s18, processing the message according to the SDAP protocol, and then sending the message to the GTP module;
and S19, discarding the uplink data message currently processed, and not performing uplink forwarding.
Wherein, the downlink transmission executing step comprises:
s21, receiving downlink data from the GTP module, and turning to S22;
s22, judging whether the session is Ethernet session, if yes, turning to S23, otherwise, turning to S25;
s23, judging whether the message is ARP/RARP response message, if yes, switching to S24, otherwise, switching to S25;
s24, recording the mapping between the original MAC and the source IP address in the data, updating the local preset MAC-IP address mapping table, and turning to S25;
s25, processing the message according to the SDAP protocol, and then sending the message to the PDCP module.
In order to reduce the service response delay of ARP/RARP in the Ethernet session, the embodiment monitors the service data of the corresponding session in the base station, constructs an internal address mapping table through self-learning, and directly provides response service under the condition of first finding and existence when finding the terminal address request, thereby improving the service experience.
It should be understood that although the various steps in the flow charts of fig. 2-8 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-8 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 9, there is provided a data transmission apparatus including: a receiving module 10, an obtaining module 11, a querying module 12 and a sending module 13, wherein,
a receiving module 10, configured to receive uplink data sent by the PDCP module;
the acquiring module 11 is configured to acquire a first address to be queried in ARP/RARP request data if the uplink data is the ARP/RARP request data, where the first address to be queried includes an IP address to be queried or an MAC address to be queried;
the query module 12 is configured to query a second address corresponding to the first address to be queried from a preset address mapping table; the address mapping table comprises mapping relations between a plurality of MAC addresses and IP addresses;
a sending module 13, configured to send the second address to the PD CP module if the second address exists in the address mapping table.
In one embodiment, if the first address to be queried is an IP address, the second address is a MAC address; and if the first address to be inquired is the MAC address, the second address is the IP address.
In an embodiment, the sending module 13 is further configured to send the uplink data to the GTP module if the second address does not exist in the address mapping table.
In one embodiment, as shown in fig. 10, there is provided a data transmission apparatus, further comprising: a first judging module 14 and a second judging module 15, wherein,
a first judging module 14, configured to judge whether uplink data is an ethernet session;
a second judging module 15, configured to judge whether the uplink data is AR P/RARP request data if the uplink data is an ethernet session; if the uplink data is the ARP/RARP request data, the acquiring module 11 is switched to execute the step of acquiring the first address to be queried in the ARP/RARP request data; if the data is not the ARP/RARP request data, the sending module 13 is switched to send the uplink data to the GTP module.
In an embodiment, the first determining module 14 is specifically configured to determine that the uplink data is the ethernet session if the bearer type of the uplink data is the bearer type corresponding to the ethernet session.
In an embodiment, the second determining module 15 is specifically configured to determine that the uplink data is ARP/RARP request data if the data type identifier carried in the uplink data is an identifier corresponding to the ARP/RARP request data.
In one embodiment, as shown in fig. 11, there is provided a data transmission apparatus, further comprising: an updating module 16, namely the obtaining module 11, configured to obtain an original MAC in the uplink data and a corresponding source I P address;
and the updating module 16 is configured to update the address mapping table according to the original MAC in the uplink data and the corresponding source IP address.
In an embodiment, the receiving module 10 is further configured to receive downlink data sent by a GTP module;
the obtaining module 11 is further configured to obtain an original MAC and a corresponding source IP address in the downlink data;
the updating module 16 is further configured to update the address mapping table according to the original MAC in the downlink data and the corresponding source IP address.
In an embodiment, the second determining module 15 is further configured to determine whether the downlink data is response data of an ARP/R ARP request; if yes, the obtaining module 11 is turned to obtain the original MAC and the corresponding source IP address in the downlink data. If not, the sending module is switched to, and the downlink data is sent to the PDCP module.
The implementation principle and technical effect of all the embodiments of the data transmission device are similar to those of the embodiments of the data transmission method, and are not described herein again.
For specific limitations of the data transmission device, reference may be made to the above limitations of the data transmission method, which are not described herein again. The modules in the data transmission device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 12. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a data transmission method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
receiving uplink data sent by the PDCP module;
if the uplink data is ARP/RARP request data, acquiring a first address to be queried in the ARP/RARP request data, wherein the first address to be queried comprises an IP address to be queried or an MAC address to be queried;
inquiring a second address corresponding to the first address to be inquired from a preset address mapping table; the address mapping table comprises mapping relations between a plurality of MAC addresses and IP addresses;
and if the second address exists in the address mapping table, sending the second address to the PDCP module.
The implementation principle and technical effect of the computer device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving uplink data sent by the PDCP module;
if the uplink data is ARP/RARP request data, acquiring a first address to be queried in the ARP/RARP request data, wherein the first address to be queried comprises an IP address to be queried or an MAC address to be queried;
inquiring a second address corresponding to the first address to be inquired from a preset address mapping table; the address mapping table comprises mapping relations between a plurality of MAC addresses and IP addresses;
and if the second address exists in the address mapping table, sending the second address to the PDCP module.
The implementation principle and technical effect of the computer-readable storage medium provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1.一种数据传输方法,其特征在于,所述方法包括:1. a data transmission method, is characterized in that, described method comprises: 接收PDCP模块发送的上行数据;Receive the uplink data sent by the PDCP module; 若所述上行数据为ARP/RARP请求数据,获取所述ARP/RARP请求数据中的待查询第一地址,所述待查询第一地址包括待查询IP地址或待查询MAC地址;If the uplink data is ARP/RARP request data, obtain the first address to be queried in the ARP/RARP request data, where the first address to be queried includes the IP address to be queried or the MAC address to be queried; 从预设的地址映射表中,查询所述待查询第一地址对应的第二地址;所述地址映射表中包括多个MAC地址与IP地址的映射关系;From a preset address mapping table, query the second address corresponding to the first address to be queried; the address mapping table includes a plurality of mapping relationships between MAC addresses and IP addresses; 若所述地址映射表中存在所述第二地址,则将所述第二地址发送至所述PD CP模块。If the second address exists in the address mapping table, the second address is sent to the PD CP module. 2.根据权利要求1所述的方法,其特征在于,若所述待查询第一地址为I P地址,则所述第二地址为MAC地址;若所述待查询第一地址为MAC地址,则所述第二地址为IP地址。2. The method according to claim 1, wherein, if the first address to be queried is an IP address, the second address is a MAC address; if the first address to be queried is a MAC address, then The second address is an IP address. 3.根据权利要求1或2所述的方法,其特征在于,所述从预设的地址映射表中,查询所述待查询第一地址对应的第二地址之前,所述方法还包括:3. The method according to claim 1 or 2, wherein before querying the second address corresponding to the first address to be queried from a preset address mapping table, the method further comprises: 若所述地址映射表中不存在所述第二地址,将所述上行数据发送至GTP模块。If the second address does not exist in the address mapping table, the uplink data is sent to the GTP module. 4.根据权利要求1或2所述的方法,其特征在于,在获取所述ARP/RARP请求数据中的待查询第一地址之前,所述方法包括:4. The method according to claim 1 or 2, wherein before acquiring the first address to be queried in the ARP/RARP request data, the method comprises: 判断所述上行数据是否为以太网会话;Determine whether the uplink data is an Ethernet session; 若所述上行数据为以太网会话,判断所述上行数据是否为所述ARP/RARP请求数据;If the uplink data is an Ethernet session, determine whether the uplink data is the ARP/RARP request data; 若所述上行数据是ARP/RARP请求数据,则执行获取所述ARP/RARP请求数据中的待查询第一地址的步骤;If the uplink data is ARP/RARP request data, then perform the step of acquiring the first address to be queried in the ARP/RARP request data; 若不是所述ARP/RARP请求数据,则将所述上行数据发送至GTP模块。If it is not the ARP/RARP request data, the uplink data is sent to the GTP module. 5.根据权利要求4所述的方法,其特征在于,所述判断所述上行数据是否为以太网会话,包括:若所述上行数据的承载类型为以太网会话对应的承载类型,则确定所述上行数据为以太网会话。5. The method according to claim 4, wherein the judging whether the uplink data is an Ethernet session comprises: if the bearer type of the uplink data is a bearer type corresponding to the Ethernet session, determining the The above-mentioned upstream data is an Ethernet session. 6.根据权利要求4所述的方法,其特征在于,所述判断所述上行数据是否为所述ARP/RARP请求数据,包括:若所述上行数据中携带的数据类型标识为所述ARP/RARP请求数据对应的标识,则确定所述上行数据为所述ARP/RARP请求数据。6. The method according to claim 4, wherein the judging whether the uplink data is the ARP/RARP request data comprises: if the data type identifier carried in the uplink data is the ARP/RARP request data the identifier corresponding to the RARP request data, the uplink data is determined to be the ARP/RARP request data. 7.根据权利要求1或2所述的方法,其特征在于,所述方法还包括:7. The method according to claim 1 or 2, wherein the method further comprises: 获取所述上行数据中的原MAC与对应的源IP地址;Obtain the original MAC and the corresponding source IP address in the uplink data; 根据所述上行数据中的原MAC与对应的源IP地址,更新所述地址映射表。The address mapping table is updated according to the original MAC and the corresponding source IP address in the uplink data. 8.根据权利要求7所述的方法,其特征在于,所述方法还包括:8. The method according to claim 7, wherein the method further comprises: 接收GTP模块发送的下行数据;Receive the downlink data sent by the GTP module; 获取所述下行数据中的原MAC与对应的源IP地址;Obtain the original MAC and the corresponding source IP address in the downlink data; 根据所述下行数据中的原MAC与对应的源IP地址,更新所述地址映射表。The address mapping table is updated according to the original MAC and the corresponding source IP address in the downlink data. 9.根据权利要求8所述的方法,其特征在于,所述获取所述下行数据中的原MAC与对应的源IP地址之前,所述方法包括:9. The method according to claim 8, wherein before acquiring the original MAC and the corresponding source IP address in the downlink data, the method comprises: 判断所述下行数据是否为ARP/RARP请求的响应数据;Determine whether the downlink data is the response data of the ARP/RARP request; 若是,获取所述下行数据中的原MAC与对应的源IP地址;If so, obtain the original MAC and the corresponding source IP address in the downlink data; 若不是,将所述下行数据发送至所述PDCP模块。If not, send the downlink data to the PDCP module. 10.一种数据传输装置,其特征在于,所述装置包括:10. A data transmission device, characterized in that the device comprises: 接收模块,用于接收PDCP模块发送的上行数据;a receiving module for receiving uplink data sent by the PDCP module; 获取模块,用于若所述上行数据为ARP/RARP请求数据,获取所述ARP/RAR P请求数据中的待查询第一地址,所述待查询第一地址包括待查询IP地址或待查询MAC地址;an obtaining module, configured to obtain a first address to be queried in the ARP/RARP request data if the uplink data is ARP/RARP request data, where the first address to be queried includes an IP address to be queried or a MAC address to be queried address; 查询模块,用于从预设的地址映射表中,查询所述待查询第一地址对应的第二地址;所述地址映射表中包括多个MAC地址与IP地址的映射关系;a query module, configured to query the second address corresponding to the first address to be queried from a preset address mapping table; the address mapping table includes a plurality of mapping relationships between MAC addresses and IP addresses; 发送模块,用于若所述地址映射表中存在所述第二地址,则将所述第二地址发送至所述PDCP模块。A sending module, configured to send the second address to the PDCP module if the second address exists in the address mapping table. 11.一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至9中任一项所述方法的步骤。11. A computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the method according to any one of claims 1 to 9 when the processor executes the computer program . 12.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至9中任一项所述的方法的步骤。12. A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
CN201911293553.XA 2019-12-16 2019-12-16 Data transmission method, apparatus, computer equipment and storage medium Active CN111107176B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911293553.XA CN111107176B (en) 2019-12-16 2019-12-16 Data transmission method, apparatus, computer equipment and storage medium
PCT/CN2020/136919 WO2021121286A1 (en) 2019-12-16 2020-12-16 Data transmission method and apparatus, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911293553.XA CN111107176B (en) 2019-12-16 2019-12-16 Data transmission method, apparatus, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111107176A true CN111107176A (en) 2020-05-05
CN111107176B CN111107176B (en) 2021-08-24

Family

ID=70422926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911293553.XA Active CN111107176B (en) 2019-12-16 2019-12-16 Data transmission method, apparatus, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN111107176B (en)
WO (1) WO2021121286A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112183690A (en) * 2020-09-30 2021-01-05 深圳市快易典教育科技有限公司 Integrated learning management method and system for teaching and electronic equipment
CN112911617A (en) * 2021-01-20 2021-06-04 广东工贸职业技术学院 Data transmission method and device, computer equipment and storage medium
WO2021121286A1 (en) * 2019-12-16 2021-06-24 京信网络系统股份有限公司 Data transmission method and apparatus, computer device and storage medium
CN114422478A (en) * 2021-12-21 2022-04-29 福建星网智慧科技有限公司 Method for mapping GEMPORT ID and MAC address and storage device
CN114710467A (en) * 2022-03-25 2022-07-05 阿里巴巴(中国)有限公司 IP address storage method, device and hardware gateway
CN115552386A (en) * 2021-03-31 2022-12-30 腾讯美国有限责任公司 Method and device for reverse address mapping when using content preparation in 5G network

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116346718A (en) * 2021-12-22 2023-06-27 中国电信股份有限公司 Protocol stack message forwarding method and device, electronic equipment and storage medium
CN114666300B (en) * 2022-05-20 2022-09-02 杭州海康威视数字技术股份有限公司 Multitask-based bidirectional connection blocking method and device and electronic equipment
CN115514555A (en) * 2022-09-20 2022-12-23 南京中孚信息技术有限公司 Network information processing method, device, electronic device and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286948A (en) * 2008-05-30 2008-10-15 杭州华三通信技术有限公司 Access authority control method and wireless access equipment
CN105791459A (en) * 2016-03-01 2016-07-20 山东航天电子技术研究所 A Service Mapping Method from IP Network to AdHoc Network
CN106973126A (en) * 2017-05-26 2017-07-21 杭州迪普科技股份有限公司 A kind of arp reply method and device
US20180041465A1 (en) * 2016-08-05 2018-02-08 Electronics And Telecommunications Research Institute Distributed mobility management system and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109617657B (en) * 2019-01-22 2021-07-30 新华三技术有限公司 Message processing method and device
CN111107176B (en) * 2019-12-16 2021-08-24 京信网络系统股份有限公司 Data transmission method, apparatus, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286948A (en) * 2008-05-30 2008-10-15 杭州华三通信技术有限公司 Access authority control method and wireless access equipment
CN105791459A (en) * 2016-03-01 2016-07-20 山东航天电子技术研究所 A Service Mapping Method from IP Network to AdHoc Network
US20180041465A1 (en) * 2016-08-05 2018-02-08 Electronics And Telecommunications Research Institute Distributed mobility management system and method
CN106973126A (en) * 2017-05-26 2017-07-21 杭州迪普科技股份有限公司 A kind of arp reply method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
FUJITSU: "Architecture and protocol details for LWA", 《3GPP TSG-RAN WG2 MEETING #90 R2-152187》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021121286A1 (en) * 2019-12-16 2021-06-24 京信网络系统股份有限公司 Data transmission method and apparatus, computer device and storage medium
CN112183690A (en) * 2020-09-30 2021-01-05 深圳市快易典教育科技有限公司 Integrated learning management method and system for teaching and electronic equipment
CN112911617A (en) * 2021-01-20 2021-06-04 广东工贸职业技术学院 Data transmission method and device, computer equipment and storage medium
CN115552386A (en) * 2021-03-31 2022-12-30 腾讯美国有限责任公司 Method and device for reverse address mapping when using content preparation in 5G network
CN114422478A (en) * 2021-12-21 2022-04-29 福建星网智慧科技有限公司 Method for mapping GEMPORT ID and MAC address and storage device
CN114710467A (en) * 2022-03-25 2022-07-05 阿里巴巴(中国)有限公司 IP address storage method, device and hardware gateway
CN114710467B (en) * 2022-03-25 2024-03-12 阿里巴巴(中国)有限公司 IP address storage method and device and hardware gateway

Also Published As

Publication number Publication date
WO2021121286A1 (en) 2021-06-24
CN111107176B (en) 2021-08-24

Similar Documents

Publication Publication Date Title
CN111107176B (en) Data transmission method, apparatus, computer equipment and storage medium
CN116405461B (en) Data processing method, network element equipment and readable storage medium
EP3157230B1 (en) Method for acquiring identifier of terminal in network, management network element and storage medium
CN109803242B (en) Method, apparatus and readable storage medium for NF discovery through NRF
CN104202360B (en) The method of accessed web page, device and router
EP3595355A1 (en) Resource obtaining method, apparatus and system
US8346968B2 (en) Proactive DNS query system based on call flow analysis
CN107154963B (en) Request processing method and device and electronic equipment
WO2013131472A1 (en) Message processing method, device and system
CN109088799B (en) Client access method, device, terminal and storage medium
US20040258021A1 (en) Program for voice talking, voice talking method, and voice talking apparatus
US7600011B1 (en) Use of a domain name server to direct web communications to an intermediation platform
CN108282521B (en) BIP protocol data transmission method and device, computer equipment and storage medium
WO2020228038A1 (en) Domain name processing method, apparatus, electronic device, and storage medium
US11638138B2 (en) Device-to-device content providing method
WO2017097023A1 (en) Perception-free authentication method and system, and control method and system based on method
WO2007056954A1 (en) A method for processing data synchronization and client terminal, server and data synchronization system thereof
WO2022222438A1 (en) Profile state synchronization method and apparatus, terminal, server, and storage medium
WO2017107795A1 (en) Method and device for accelerating access to website
WO2021056847A1 (en) Message transmission method, apparatus, computer device and storage medium
CN108810092B (en) Network access method and device, electronic equipment and computer readable storage medium
CN112911617A (en) Data transmission method and device, computer equipment and storage medium
CN110278558B (en) Message interaction method and WLAN system
CN110661895A (en) A network address mapping method for a server and a network address mapping device
CN110753921B (en) Query request processing method, device, computer equipment and storage medium

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
CB02 Change of applicant information

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: Comba Telecom System (China) Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant