WO2021121286A1 - 数据传输方法、装置、计算机设备和存储介质 - Google Patents

数据传输方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2021121286A1
WO2021121286A1 PCT/CN2020/136919 CN2020136919W WO2021121286A1 WO 2021121286 A1 WO2021121286 A1 WO 2021121286A1 CN 2020136919 W CN2020136919 W CN 2020136919W WO 2021121286 A1 WO2021121286 A1 WO 2021121286A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
data
arp
queried
uplink data
Prior art date
Application number
PCT/CN2020/136919
Other languages
English (en)
French (fr)
Inventor
徐慧俊
卜斌龙
王琪
李学锋
Original Assignee
京信网络系统股份有限公司
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 京信网络系统股份有限公司 filed Critical 京信网络系统股份有限公司
Publication of WO2021121286A1 publication Critical patent/WO2021121286A1/zh

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

Definitions

  • This application relates to the field of communication technology, in particular to a data transmission method, device, computer equipment and storage medium.
  • the terminal cannot perform traditional Ethernet services, such as Address Resolution Protocol (ARP), Reverse Address Resolution Protocol (RARP) services, etc. These services are all in the 5G system. Supported.
  • ARP Address Resolution Protocol
  • RARP Reverse Address Resolution Protocol
  • the existing 5G base station has a time delay problem in responding to the ARP/RARP service in the Ethernet session.
  • an embodiment of the present application provides a data transmission method, the method including:
  • the uplink data is ARP/RARP request data
  • obtain the first address to be queried in the ARP/RARP request data includes the IP address to be queried or the MAC address to be queried;
  • the address mapping table includes the mapping relationship between multiple MAC addresses and IP addresses
  • the second address exists in the address mapping table, the second address is sent to the PDCP module.
  • the second address is a MAC address
  • the first address to be queried is an IP address
  • the second address is an IP address
  • the method before querying the second address corresponding to the first address to be queried from the preset address mapping table, the method further includes:
  • the uplink data is sent to the GTP module.
  • the method before obtaining the first address to be queried in the ARP/RARP request data, the method includes:
  • the uplink data is ARP/RARP request data, perform the step of obtaining the first address to be queried in the ARP/RARP request data;
  • the uplink data is sent to the GTP module.
  • determining whether the uplink data is an Ethernet session includes: if the bearer type of the uplink data is a bearer type corresponding to the Ethernet session, determining that the uplink data is an Ethernet session.
  • determining whether the uplink data is ARP/RARP request data includes: if the data type identifier carried in the uplink data is an identifier corresponding to the ARP/RARP request data, determining that the uplink data is ARP/RARP request data.
  • the method further includes:
  • the address mapping table is updated.
  • the method further includes:
  • the address mapping table is updated.
  • the method before obtaining the original MAC and the corresponding source IP address in the downlink data, the method includes:
  • an embodiment of the present application provides a data transmission device, which includes:
  • the receiving module is used to receive the uplink data sent by the PDCP module
  • the obtaining module is used to obtain the first address to be queried in the ARP/RARP request data if the uplink data is ARP/RARP request data, and the first address to be queried includes the IP address to be queried or the MAC address to be queried;
  • the query module is used to query the second address corresponding to the first address to be queried from the preset address mapping table;
  • the address mapping table includes a plurality of mapping relationships between MAC addresses and IP addresses;
  • the sending module is configured to send the second address to the PDCP module if there is a second address in the address mapping table.
  • an embodiment of the present application provides a computer device, including a memory and a processor, 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 the processor executes the computer program.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the methods provided in the above-mentioned embodiments of the first aspect are implemented.
  • the mapping unit maps the MAC address to the IP address based on the received data Stored in the address mapping table, when the received data is ARP/RARP request data, you only need to query the address mapping table whether there is a corresponding mapping relationship for the address to be queried, and when there is a corresponding mapping relationship, proceed directly according to the query result Response is equivalent to that the mapping unit performs data monitoring, self-learning, and builds a mapping table between internal MAC addresses and IP addresses.
  • the terminal initiates a corresponding query request, it is the first to look up its own mapping table, and directly give the terminal response service when it exists. This greatly reduces the latency of business response and improves customer experience.
  • FIG. 1 is an application environment diagram of a data transmission method provided by an embodiment
  • FIG. 2 is a schematic flowchart of a data transmission method provided by an embodiment
  • Figure 2a is a schematic diagram of various data transmission modules provided by an embodiment
  • FIG. 3 is a schematic flowchart of a data transmission method provided by an embodiment
  • FIG. 4 is a schematic flowchart of a data transmission method provided by an embodiment
  • FIG. 5 is a schematic flowchart of a data transmission method provided by an embodiment
  • FIG. 6 is a schematic flowchart of a data transmission method provided by an embodiment
  • FIG. 7 is a complete schematic diagram of an uplink data transmission method provided by an embodiment
  • FIG. 8 is a complete schematic diagram of an uplink data transmission method provided by an embodiment
  • FIG. 9 is a structural block diagram of a data transmission device according to an embodiment.
  • FIG. 10 is a structural block diagram of a data transmission device according to an embodiment
  • FIG. 11 is a structural block diagram of a data transmission device provided by an embodiment
  • Fig. 12 is a diagram of the internal structure of a computer device in an embodiment.
  • the data transmission method provided by this application can be applied to the application environment as shown in FIG. 1, where the 5G core network includes core network equipment, the 5G access network includes 5G base stations and 4G base stations, and the user terminal equipment and The base station performs data exchange.
  • the user terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the user terminal device sends each service data to the 5G core network through the 5G access network, where the data transmission method provided in this application is implemented when the 5G access network and the 5G core network perform data interaction.
  • the 5G base station includes the Service Data Adaptation Protocol (SDAP) module, the Packet Data Convergence Protocol (PDCP) module, and the GPRS Tunnelling Protocol (GTP) module.
  • SDAP Service Data Adaptation Protocol
  • PDCP Packet Data Convergence Protocol
  • GTP GPRS Tunnelling Protocol
  • 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 this application.
  • the embodiments of the present application provide a data transmission method, device, computer equipment, and storage medium, aiming to solve the problem of delay in the response of the existing 5G base station to the ARP/RARP service in the Ethernet session.
  • the technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail through the embodiments and the accompanying drawings.
  • the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
  • the execution body of FIG. 2 to FIG. 8 is a mapping unit, where the execution body may also be a data transmission device or a base station, and the mapping unit or data transmission device may Realize part or all of the base station through software, hardware, or a combination of software and hardware.
  • FIG. 2 provides a data transmission method. This embodiment relates to the specific process of the mapping unit processing the uplink data when the uplink data is ARP/RARP request data, as shown in FIG. 2.
  • the method includes:
  • S101 Receive uplink data sent by the PDCP module.
  • Uplink data represents data sent from the mobile terminal and transmitted to the Internet server.
  • the uplink data can be any data type, function, and data carrying any related information, for example, it can be various service data related to the mobile phone terminal such as signaling data and IP data.
  • the mapping unit set in the SDAP module receives the uplink data.
  • an ARP/RARP service in which data transmitted between a mobile phone terminal and a 5G base station is an Ethernet session is taken as an example for description.
  • the uplink data is ARP/RARP request data
  • the ARP request data represents the address resolution protocol (Address Resolution Protocol, ARP), which is a TCP/IP protocol that obtains the physical address based on the IP address, that is, the ARP command can be used to query the correspondence between the IP address and the MAC address in the local ARP cache , Add or delete static correspondences, etc.;
  • RARP request data represents Reverse Address Resolution Protocol (RARP), which is a reverse ARP request, that is, a TCP/IP protocol that obtains an IP address based on a MAC address.
  • RARP Reverse Address Resolution Protocol
  • the mapping unit Based on the uplink data received by the above mapping unit, if the uplink data belongs to ARP/RARP request data, the mapping unit obtains the first address to be queried in the ARP/RARP request data.
  • the first address to be queried is different for different requests.
  • the first address to be queried is the IP address to be queried
  • RARP request data the first address to be queried is the IP address to be queried.
  • S103 Query the second address corresponding to the first address to be queried from the preset address mapping table; the address mapping table includes a plurality of mapping relationships between MAC addresses and IP addresses.
  • the address mapping table is a pre-established table for storing the mapping relationship between the MAC address and the IP address.
  • the address mapping table is updated and maintained during the data transmission process between the mobile phone terminal and the base station. It is understandable that in 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 in the address mapping table.
  • the mapping unit queries the second address corresponding to the first address to be queried from the preset address mapping table, where the second address is the address corresponding to the first address to be queried, optionally, if 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.
  • the address mapping table is in a state of real-time storage and update, there are two situations in which the corresponding second address is queried from the first mapping table and the corresponding second address is not queried during the query.
  • the mapping unit In view of the existence of the second address corresponding to the first address to be queried in the address mapping table, the mapping unit directly responds to the message with the second address according to the found mapping information component, that is, processes the message according to the SDAP protocol, and then transfers the message Delivered to the PDCP module.
  • the mapping unit since the 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 in the address mapping table according to the received data.
  • the mapping unit When requesting data for ARP/RARP, you only need to query the address mapping table whether there is a corresponding mapping relationship for the address to be queried, and when there is a corresponding mapping relationship, respond directly according to the query result, which is equivalent to that the mapping unit performs data monitoring, Self-learning, build the internal MAC address and IP address mapping table, when the terminal initiates the corresponding query request, the first to look up its own mapping table, and directly give the terminal response service when it exists, which greatly reduces the delay of business response and improves Customer Experience.
  • the method further includes: if the second address does not exist in the address mapping table Address, send the uplink data to the GTP module.
  • this application provides a corresponding embodiment for specific description.
  • the steps include:
  • the mapping unit judges whether the uplink data is an Ethernet session. The subsequent steps will only be executed if the uplink data is an Ethernet session. Otherwise, if the uplink data is not an Ethernet session, it will directly The uplink data is transmitted according to the original path, that is, transmitted to the GTP module.
  • a way to determine whether the uplink data is an Ethernet session includes: if the bearer type of the uplink data is a bearer type corresponding to the Ethernet session, determining that the uplink data is an 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 an Ethernet session.
  • the mapping unit continues to determine whether the uplink data is ARP/RARP request data. If it is ARP/RARP request data, perform step S203, that is, perform subsequent data transmission according to the methods provided in steps S103 and S104; if it is not ARP/RARP request data, perform step S204, that is, perform transmission according to the original path, and perform the uplink The data is transferred to the GTP module.
  • S203 Acquire the first address to be queried in the ARP/RARP request data.
  • S204 Send the uplink data to the GTP module.
  • a way to determine whether the uplink data is ARP/RARP request data includes: if the data type identifier carried in the uplink data is the identifier corresponding to the ARP/RARP request data, then determining that the uplink data is ARP/RARP request data.
  • the mapping unit determines the data type identifier carried in the data packet of the uplink data, and the data type identifier is consistent with the identifier corresponding to the ARP/RARP request data, and then determines that the uplink data is the ARP/RARP request data.
  • the uplink data after receiving the uplink data, it is first judged whether the uplink data is ARP/RARP request data. If it is ARP/RARP request data, the step of looking up the address mapping table is executed, if it is not ARP/RARP The requested data is transmitted according to the original transmission path. In this way, the received uplink data is processed only when the data type needs to be processed, which avoids waste of resources and improves the efficiency of data transmission.
  • this application also provides an embodiment for updating the above address mapping table.
  • the process of updating the address mapping table includes two types, one is to update the above uplink data, and the other is to update the downlink data received by the mapping unit. Update.
  • the process of updating the address mapping table according to the above uplink data includes:
  • the mapping unit obtains the original MAC carried in the uplink data and the corresponding source IP address from the uplink data, that is, the MAC of the uplink data itself and the corresponding IP address.
  • the process of updating the address mapping table according to the downlink data includes:
  • S401 Receive downlink data sent by the GTP module.
  • This embodiment is a process in which the mapping unit updates the address mapping table according to the downlink data. Therefore, it is necessary to first receive the downlink data sent by the GTP module.
  • the downlink data can refer to the data transmitted to the mobile phone terminal in the above-mentioned Figure 2a.
  • S402 Acquire the original MAC and the corresponding source IP address in the downlink data.
  • the MAC and the corresponding IP address carried in the downlink data are obtained from the downlink data, and the MAC and the corresponding IP address are updated in the stored value address mapping table.
  • the address mapping table needs to be updated according to the MAC and the corresponding IP address carried in the data to ensure that the address mapping table is The data is valid and comprehensive.
  • the mapping unit needs to first determine whether the downlink data is a response to the ARP/RARP request.
  • Data optionally, as shown in Figure 6, the method includes:
  • S501 Determine whether the downlink data is the response data of the ARP/RARP request.
  • the judgment method can refer to the judgment method provided in the embodiment of FIG. 3, in practical applications, other methods can also be used for judgment, which is not limited in this embodiment. . If the result of the judgment is that the downlink data is the response data of the ARP/RARP request, step S502 is executed, and if the result of the judgment is that the downlink data is not the response data of the ARP/RARP request, step S503 is executed.
  • S502 Acquire the original MAC and the corresponding source IP address in the downlink data.
  • step S402 that is, if the judgment result is that the downlink data is the response data of the ARP/RARP request, step S402 is executed.
  • S503 Send the downlink data to the PDCP module.
  • the downlink data is sent to the PDCP module, that is, it does not need to do any processing according to the downlink data, and the transmission can be carried out according to the original path.
  • the downlink data after receiving the downlink data, it is first confirmed whether the downlink data is a data type that needs to be processed, if not, it is directly transmitted according to the original path, which greatly saves resources and improves data transmission efficiency.
  • this application provides a complete process of uplink data and downlink data, and the uplink transmission execution steps include:
  • S11 receive the uplink data transmitted from the PDCP module, and transfer to S12;
  • S12 Judge whether the uplink data is an Ethernet session, if it is an Ethernet session, go to S13, otherwise go to S18;
  • S15 Query a locally preset MAC-IP address mapping table according to the address to be queried carried in the uplink data, and turn to S16;
  • S17 Respond to the ARP/RARP request according to the found mapping information, process the message according to the SDAP protocol, and then deliver the message to the PDCP module, and then transfer to S19;
  • S18 Process the message according to the SDAP protocol, and then send the message to the GTP module;
  • the downlink transmission execution steps include:
  • S21 receive downlink data from the GTP module, and transfer to S22;
  • S24 Record the original MAC and source IP address mapping in the downlink data, update the locally preset MAC-IP address mapping table, and switch to S25;
  • S25 Process the message according to the SDAP protocol, and then deliver the message to the PDCP module.
  • the service data of the corresponding session is monitored inside the base station, and the internal address mapping table is constructed through self-learning.
  • the terminal address request is found, it is the first to find and exist Under the circumstances, the response service is directly provided to enhance the business experience.
  • a data transmission device which includes: a receiving module 10, an acquiring module 11, an inquiry module 12, and a sending module 13, wherein,
  • the receiving module 10 is used to receive uplink data sent by the PDCP module;
  • the obtaining module 11 is configured to obtain the first address to be queried in the ARP/RARP request data if the uplink data is ARP/RARP request data, and the first address to be queried includes the IP address to be queried or the MAC address to be queried;
  • the query module 12 is configured to query the second address corresponding to the first address to be queried from the preset address mapping table;
  • the address mapping table includes a plurality of mapping relationships between MAC addresses and IP addresses;
  • the sending module 13 is configured to send the second address to the PDCP module if there is a second address in the address mapping table.
  • 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.
  • the above-mentioned 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.
  • a data transmission device is provided, and the device further includes: a first judgment module 14 and a second judgment module 15, wherein:
  • the first judging module 14 is used to judge whether the uplink data is an Ethernet session
  • the second judgment module 15 is used for judging whether the uplink data is ARP/RARP request data if the uplink data is an Ethernet session; if the uplink data is ARP/RARP request data, then transfer to the above-mentioned obtaining module 11 to execute obtaining ARP/RARP The step of requesting the first address to be queried in the data; if it is not the ARP/RARP request data, transfer to the above-mentioned sending module 13 to send the uplink data to the GTP module.
  • the first determining module 14 is specifically configured to determine that the uplink data is an Ethernet session if the bearer type of the uplink data is the bearer type corresponding to the Ethernet session.
  • the second judgment module 15 is specifically configured to determine that the uplink data is the ARP/RARP request data if the data type identifier carried in the uplink data is the identifier corresponding to the ARP/RARP request data.
  • a data transmission device is provided, and the device further includes: an update module 16.
  • the above-mentioned obtaining module 11 is used to obtain the original MAC and the corresponding source IP address in the uplink data. ;
  • the update module 16 is used to update the address mapping table according to the original MAC in the uplink data and the corresponding source IP address.
  • the above-mentioned receiving module 10 is further configured to receive downlink data sent by the GTP module;
  • the above-mentioned obtaining module 11 is also used to obtain the original MAC and the corresponding source IP address in the downlink data;
  • the aforementioned update module 16 is also used to update the address mapping table according to the original MAC in the downlink data and the corresponding source IP address.
  • the second judgment module 15 is also used to judge whether the downlink data is the response data of the ARP/RARP request; if so, it transfers to the acquisition module 11 to obtain the original MAC and the corresponding source IP address in the downlink data. If not, transfer to the above sending module and send the downlink data to the PDCP module.
  • Each module in the above-mentioned data transmission device can be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
  • a computer device is provided.
  • the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 12.
  • the computer equipment includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus.
  • the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile 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 the operating system and computer programs in the non-volatile storage medium.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer program is executed by the processor to realize a data transmission method.
  • the display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen
  • the input device of the computer equipment can be a touch layer covered on the display screen, or it can be a button, a trackball or a touchpad set on the housing of the computer equipment , It can also be an external keyboard, touchpad, or mouse.
  • FIG. 12 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
  • the specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
  • a computer device including a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when the processor executes the computer program:
  • the uplink data is ARP/RARP request data
  • obtain the first address to be queried in the ARP/RARP request data includes the IP address to be queried or the MAC address to be queried;
  • the address mapping table includes the mapping relationship between multiple MAC addresses and IP addresses
  • the second address exists in the address mapping table, the second address is sent to the PDCP module.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
  • the uplink data is ARP/RARP request data
  • obtain the first address to be queried in the ARP/RARP request data includes the IP address to be queried or the MAC address to be queried;
  • the address mapping table includes the mapping relationship between multiple MAC addresses and IP addresses
  • the second address exists in the address mapping table, the second address is sent to the PDCP module.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

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地址的映射表,在终端发起相应查询请求时,率先查找自身映射表,存在时直接给予终端响应服务,这样,极大降低了业务响应的时延,提升了客户体验。

Description

数据传输方法、装置、计算机设备和存储介质 技术领域
本申请涉及通信技术领域,特别是涉及一种数据传输方法、装置、计算机设备和存储介质。
背景技术
在4G通信系统中,终端无法进行传统以太网业务,例如,地址解析协议(Address Resolution Protocol,ARP)、反向地址转换协议(Reverse Address Resolution Protocol,RARP)业务等,这些业务在5G系统中均得到了支持。
现有5G基站对以太网会话的业务数据,不进行深度分析,更不进行大数据的自学习,尤其ARP/RARP业务,也就是说,5G基站并无直接具备对以太网会话业务的响应能力,其仅仅处于转发相应业务报文的工作位置,虽然有些厂商对ARP业务的支持,但也是建立在代理和系统配合的角度,而非直接地、独立地支持。
因此,现有5G基站对以太网会话中ARP/RARP的服务响应存在时延问题。
发明内容
基于此,有必要针对上述技术问题,提供一种数据传输方法、装置、计算机设备和存储介质。
第一方面,本申请实施例提供一种数据传输方法,该方法包括:
接收PDCP模块发送的上行数据;
若上行数据为ARP/RARP请求数据,获取ARP/RARP请求数据中的待查询第一地址,待查询第一地址包括待查询IP地址或待查询MAC地址;
从预设的地址映射表中,查询待查询第一地址对应的第二地址;地址映射表中包括多个MAC地址与IP地址的映射关系;
若地址映射表中存在第二地址,则将第二地址发送至PDCP模块。
在其中一个实施例中,若待查询第一地址为IP地址,则第二地址为MAC地 址;若待查询第一地址为MAC地址,则第二地址为IP地址。
在其中一个实施例中,从预设的地址映射表中,查询待查询第一地址对应的第二地址之前,该方法还包括:
若地址映射表中不存在第二地址,将上行数据发送至GTP模块。
在其中一个实施例中,在获取ARP/RARP请求数据中的待查询第一地址之前,该方法包括:
判断上行数据是否为以太网会话;
若上行数据为以太网会话,判断上行数据是否为ARP/RARP请求数据;
若上行数据是ARP/RARP请求数据,则执行获取ARP/RARP请求数据中的待查询第一地址的步骤;
若不是ARP/RARP请求数据,则将上行数据发送至GTP模块。
在其中一个实施例中,判断上行数据是否为以太网会话,包括:若上行数据的承载类型为以太网会话对应的承载类型,则确定上行数据为以太网会话。
在其中一个实施例中,判断上行数据是否为ARP/RARP请求数据,包括:若上行数据中携带的数据类型标识为ARP/RARP请求数据对应的标识,则确定上行数据为ARP/RARP请求数据。
在其中一个实施例中,该方法还包括:
获取上行数据中的原MAC与对应的源IP地址;
根据上行数据中的原MAC与对应的源IP地址,更新地址映射表。
在其中一个实施例中,该方法还包括:
接收GTP模块发送的下行数据;
获取下行数据中的原MAC与对应的源IP地址;
根据下行数据中的原MAC与对应的源IP地址,更新地址映射表。
在其中一个实施例中,获取下行数据中的原MAC与对应的源IP地址之前,该方法包括:
判断下行数据是否为ARP/RARP请求的响应数据;
若是,获取下行数据中的原MAC与对应的源IP地址。
若不是,将下行数据发送至PDCP模块。
第二方面,本申请实施例提供一种数据传输装置,该装置包括:
接收模块,用于接收PDCP模块发送的上行数据;
获取模块,用于若上行数据为ARP/RARP请求数据,获取ARP/RARP请求数据中的待查询第一地址,待查询第一地址包括待查询IP地址或待查询MAC地址;
查询模块,用于从预设的地址映射表中,查询待查询第一地址对应的第二地址;地址映射表中包括多个MAC地址与IP地址的映射关系;
发送模块,用于若地址映射表中存在第二地址,则将第二地址发送至PDCP模块。
第三方面,本申请实施例提供一种计算机设备,包括存储器和处理器,存储器存储有计算机程序,处理器执行计算机程序时实现上述第一方面实施例提供的任一项方法的步骤。
第四方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述第一方面实施例提供的任一项方法的步骤。
本申请实施例提供的一种数据传输方法、装置、计算机设备和存储介质,由于预先在基站的SDAP模块中建立了地址映射表,映射单元根据接收的数据,将MAC地址与IP地址的映射关系存储至地址映射表中,在接收到数据为ARP/RARP请求数据时,只需在地址映射表中查询是否存在待查询地址的对应映射关系,并在存在对应映射关系时,根据查询结果直接进行响应,相当于,映射单元执行数据监控、自学习,构建内部MAC地址与IP地址的映射表,在终端发起相应查询请求时,率先查找自身映射表,存在时直接给予终端响应服务,这样,极大降低了业务响应的时延,提升了客户体验。
附图说明
图1为一个实施例提供的一种数据传输方法的应用环境图;
图2为一个实施例提供的一种数据传输方法的流程示意图;
图2a为一个实施例提供的数据传输各模块示意图;
图3为一个实施例提供的一种数据传输方法的流程示意图;
图4为一个实施例提供的一种数据传输方法的流程示意图;
图5为一个实施例提供的一种数据传输方法的流程示意图;
图6为一个实施例提供的一种数据传输方法的流程示意图;
图7为一个实施例提供的一种上行数据传输方法的完整示意图;
图8为一个实施例提供的一种上行数据传输方法的完整示意图;
图9为一个实施例提供的一种数据传输装置的结构框图;
图10为一个实施例提供的一种数据传输装置的结构框图;
图11为一个实施例提供的一种数据传输装置的结构框图;
图12为一个实施例中计算机设备的内部结构图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请提供的一种数据传输方法,可以应用于如图1所示的应用环境中,其中,5G核心网中包括核心网设备,5G接入网中包括5G基站和4G基站,用户终端设备与基站进行数据交互。其中,该用户终端可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。该应用环境中,用户终端设备通过5G接入网将各业务数据发送至5G核心网,其中,5G接入网与5G核心网之间进行数据交互时实现本申请提供的数据传输方法。其中,5G基站中包括服务数据适配协议(Service Data Adaptation Protocol,SDAP)模块、分组数据汇聚协议(Packet Data Convergence Protocol,PDCP)模块和GPRS隧道协议(GPRS Tunnelling Protocol,GTP)模块等,在实际应用中,基站中的SDAP模块中设置了映射单元,该映射单元用于执行本申请提供的数据传输方法。
本申请实施例提供一种数据传输方法、装置、计算机设备和存储介质,旨在解决现有5G基站对以太网会话中ARP/RARP的服务响应存在时延问题。下面将通过实施例并结合附图具体地对本申请的技术方案以及本申请的技术方案如 何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。需要说明的是,本申请提供的一种数据传输方法,图2-图8的执行主体为映射单元,其中,其执行主体还可以是数据传输装置或基站,其中该映射单元或数据传输装置可以通过软件、硬件或者软硬件结合的方式实现成为基站的部分或者全部。
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。
在一个实施例中,图2提供了一种数据传输方法,本实施例涉及的是映射单元在上行数据是ARP/RARP请求数据时,对上行数据进行处理的具体过程,如图2所示,该方法包括:
S101,接收PDCP模块发送的上行数据。
请参考图2a所示,上行数据表示从手机终端发出,并向互联网服务器方向传输的数据。该上行数据可以是任何数据类型、功能和携带任何相关信息的数据,例如可以是信令数据、IP数据等手机终端涉及的各种业务数据。在实际应用中,当手机终端发出上行数据后,一直到达PDCP模块后,设置在SDAP模块中的映射单元接收该上行数据。本申请实施例以手机终端与5G基站之间的传输数据为以太网会话的ARP/RARP业务为例进行说明。
S102,若上行数据为ARP/RARP请求数据,获取ARP/RARP请求数据中的待查询第一地址,待查询第一地址包括待查询IP地址或待查询MAC地址。
其中,ARP请求数据表示地址解析协议(Address Resolution Protocol,ARP),是根据IP地址获取物理地址的一个TCP/IP协议,即ARP命令可用于查询本机ARP缓存中IP地址和MAC地址的对应关系、添加或删除静态对应关系等;RARP请求数据表示反向地址转换协议(Reverse Address Resolution Protocol,RARP),是ARP的逆请求,即根据MAC地址获取IP地址的一个TCP/IP协议。
基于上述映射单元接收到的上行数据,若该上行数据属于ARP/RARP请求数据,映射单元获取该ARP/RARP请求数据中的待查询第一地址。其中,不同的请求待查询的第一地址不同,可选地,若为ARP请求数据,则待查询的第一地址 为待查询IP地址,若为RARP请求数据,则待查询第一地址为待查询MAC地址。
S103,从预设的地址映射表中,查询待查询第一地址对应的第二地址;地址映射表中包括多个MAC地址与IP地址的映射关系。
其中,地址映射表为预先建立的,用于存储MAC地址与IP地址的映射关系的表,该地址映射表的更新和维护在手机终端和基站的数据传输过程中。可以理解的是,在该地址映射表建立好后的第一次数据传输过程时,映射单元就开始将接收到的每个数据中的MAC地址与IP地址的映射关系存储至地址映射表中。
具体地,本步骤中,映射单元从预设的地址映射表中,查询待查询第一地址对应的第二地址,其中,第二地址为待查询第一地址对应的地址,可选地,若待查询第一地址为IP地址,则第二地址为MAC地址;若待查询第一地址为MAC地址,则第二地址为IP地址。当然,由于地址映射表是处于一个实时存储并更新的状态,因此在查询时存在从第一映射表中查询到对应的第二地址,和查询不到对应的第二地址的两种情况。
S104,若地址映射表中存在第二地址,则将第二地址发送至PDCP模块。
针对在地址映射表中存在待查询第一地址对应的第二地址情况,映射单元直接将该第二地址根据所查到映射信息组件响应报文,即按照SDAP协议处理报文,然后将报文下发至PDCP模块。
本实施例提供的数据传输方法,由于预先在基站的SDAP模块中建立了地址映射表,映射单元根据接收的数据,将MAC地址与IP地址的映射关系存储至地址映射表中,在接收到数据为ARP/RARP请求数据时,只需在地址映射表中查询是否存在待查询地址的对应映射关系,并在存在对应映射关系时,根据查询结果直接进行响应,相当于,映射单元执行数据监控、自学习,构建内部MAC地址与IP地址的映射表,在终端发起相应查询请求时,率先查找自身映射表,存在时直接给予终端响应服务,这样,极大降低了业务响应的时延,提升了客户体验。
针对上述实施例中,若在地址映射表中不存在待查询第一地址对应的第二地址情况,提供一个实施例,则可选地,该方法还包括:若地址映射表中不存 在第二地址,将上行数据发送至GTP模块。
其中,请参考图2a所示的基站中各模块数据流程图,当在地址映射表中不存在第二地址,表示映射单元目前无法直接处理该请求数据,则继续将该请求数据向上传输,传输至基站中的GTP模块即可。这样,在自身无法对终端的请求数据进行响应时,将该请求数据转发至可处理请求的路径,极大地保证了数据传输的及时性。
对于上述上行数据是否为ARP/RARP请求数据的判断过程,本申请提供了对应实施例进行具体说明,则在一个实施例中,如图3所示,判断上行数据是否为ARP/RARP请求数据的步骤包括:
S201,判断上行数据是否为以太网会话。
映射单元在接收到上行数据后,判断上行数据是否为以太网会话,在该上行数据为以太网会话的前提下,才会执行后续步骤,否则该上行数据不是以太网会话的情况下,直接将该上行数据依照原路径传输,即传输至GTP模块。
可选地,在一个实施例中,判断上行数据是否为以太网会话的一种方式包括:若上行数据的承载类型为以太网会话对应的承载类型,则确定上行数据为以太网会话。即映射单元判断该上行数据的承载类型是不是以太网会话对应的承载类型,若是,则确定该上行数据为以太网会话。
S202,若上行数据为以太网会话,判断上行数据是否为ARP/RARP请求数据。
在上行数据是以太网会话的情况下,映射单元继续判断该上行数据是否为ARP/RARP请求数据。若是ARP/RARP请求数据,则执行S203步骤,即根据上述S103和S104步骤提供的方法执行后续数据传输;若不是ARP/RARP请求数据,则执行S204步骤,即根据原路径进行传输,将该上行数据传输至GTP模块。
S203,获取ARP/RARP请求数据中的待查询第一地址。
S204,将上行数据发送至GTP模块。
可选地,在一个实施例中,判断上行数据是否为ARP/RARP请求数据的一种方式包括:若上行数据中携带的数据类型标识为ARP/RARP请求数据对应的标识,则确定上行数据为ARP/RARP请求数据。其中,映射单元判断上行数据的数据包中携带的数据类型标识,该数据类型标识与ARP/RARP请求数据对应的标识一致, 则确定上行数据为ARP/RARP请求数据。当然,在实际应用中,还可以是根据其他方式判断该上行数据是否为ARP/RARP请求数据,本实施例对此判断方式不作具体限定。
本实施例提供的数据传输方法,在接收到上行数据后,先判断该上行数据是否为ARP/RARP请求数据,若是ARP/RARP请求数据,才执行查找地址映射表的步骤,若不是ARP/RARP请求数据,则依照原传输路径传输,这样,在接收到的上行数据为需要处理的数据类型时,才进行处理,避免了资源浪费,提高了数据传输效率。
另外,本申请还提供了更新上述地址映射表的实施例,其中,更新地址映射表的过程包括两种,一种是根据上述上行数据进行更新,另一种是根据映射单元接收到的下行数据进行更新。
其中,如图4所示,在一个实施例中,根据上述上行数据更新地址映射表的过程包括:
S301,获取上行数据中的原MAC与对应的源IP地址。
本实施例中,映射单元从上行数据中获取该上行数据携带的原MAC与对应的源IP地址,即该上行数据本身的MAC与对应的IP地址。
S302,根据上行数据中的原MAC与对应的源IP地址,更新地址映射表。
将获取的上行数据本身的MAC与对应的IP地址,更新至地址映射表中。需要说明的时,更新地址映射表时,若地址映射表中已经存在此次获取的MAC与对应的IP地址,则无需进行存储,这样可以节省处理资源,提升处理效率。
如图5所示,在一个实施例中,根据下行数据更新地址映射表的过程包括:
S401,接收GTP模块发送的下行数据。
本实施例为映射单元根据下行数据更新地址映射表的过程,因此,需要先接收GTP模块发送的下行数据。该下行数据可参照上述图2a中数据向手机终端方向传输的数据。
S402,获取下行数据中的原MAC与对应的源IP地址。
S403,根据下行数据中的原MAC与对应的源IP地址,更新地址映射表。
从下行数据中获取该下行数据携带的MAC与对应的IP地址,将该MAC与对 应的IP地址更新存储值地址映射表中。
本实施例提供的两种更新地址映射表方法,无论是映射单元接收到的上行数据还是下行数据,均需根据数据中携带的MAC与对应的IP地址更新地址映射表,以保障地址映射表中的数据的有效和全面。
可以想到的是,本申请针对的是以太网会话中的ARP/RARP请求业务,因此为了提高处理效率,映射单元在接收到下行数据后,需要先判断该下行数据是否为ARP/RARP请求的响应数据,则可选地,如图6所示,该方法包括:
S501,判断下行数据是否为ARP/RARP请求的响应数据。
其中,判断下行数据是否为ARP/RARP请求的响应数据,判断方法可参照上述图3实施例中提供的判断方法,在实际应用中,也可采用其他方式进行判断,本实施例对此不作限定。若判断结果为下行数据是ARP/RARP请求的响应数据,则执行S502步骤,若判断结果为下行数据不是ARP/RARP请求的响应数据,则执行S503步骤。
S502,获取下行数据中的原MAC与对应的源IP地址。
本步骤即为S402步骤,即,若判断结果为下行数据是ARP/RARP请求的响应数据,执行S402步骤。
S503,将下行数据发送至PDCP模块。
本步骤中,若判断结果为下行数据不是ARP/RARP请求的响应数据,将下行数据发送至PDCP模块,即无需根据下行数据做任何处理,依照原路径进行传输即可。
本实施例中由于在接收到下行数据后,先确认该下行数据是否为需要处理的数据类型,若不是,则直接依照原路径传输,大大节省了资源,提高了数据传输效率。
基于上述所有实施例,如图7和图8所示,本申请提供一种上行数据和下行数据的完整过程,则上行传输执行步骤包括:
S11,接收来自PDCP模块传输的上行数据,转S12;
S12,判断该上行数据是否为以太网会话,若是转S13,否则转S18;
S13,判断是否为ARP/RARP请求数据,若是转S14,否则转S18;
S14,记录上行数据中原MAC与源IP地址映射并存储至映射表库,转S15;
S15,根据上行数据中携带的待查询地址,查询本地预设的MAC-IP地址映射表,转S16;
S16,判断是否存在待查询地址请求的相应映射,若是转S17,否则转S18;
S17,根据所查到映射信息响应该ARP/RARP请求,按照SDAP协议处理报文,然后将报文下发至PDCP模块,转S19;
S18,按照SDAP协议处理报文,然后将报文发往GTP模块;
S19,丢弃当前处理的上行数据报文,不再做上行转发。
其中,下行传输执行步骤包括:
S21,接收来自GTP模块的下行数据,转S22;
S22,判断是否为以太网会话,若是转S23,否则转S25;
S23,判断是否为ARP/RARP响应报文,若是转S24,否则转S25;
S24,记录下行数据中原MAC与源IP地址映射,更新本地预设的MAC-IP地址映射表,转S25;
S25,按照SDAP协议处理报文,然后将报文下发至PDCP模块。
以上实施例为了减少以太网会话中ARP/RARP的服务响应时延,在基站内部监控相应会话的业务数据,通过自学习构建内部地址映射表,在发现终端地址请求时,率先查到且存在的情况下直接给予响应服务,提升业务体验。
应该理解的是,虽然图2-8的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-8中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
在一个实施例中,如图9所示,提供了一种数据传输装置,该装置包括:接收模块10、获取模块11、查询模块12和发送模块13,其中,
接收模块10,用于接收PDCP模块发送的上行数据;
获取模块11,用于若上行数据为ARP/RARP请求数据,获取ARP/RARP请求数据中的待查询第一地址,待查询第一地址包括待查询IP地址或待查询MAC地址;
查询模块12,用于从预设的地址映射表中,查询待查询第一地址对应的第二地址;地址映射表中包括多个MAC地址与IP地址的映射关系;
发送模块13,用于若地址映射表中存在第二地址,则将第二地址发送至PDCP模块。
在一个实施例中,若待查询第一地址为IP地址,则第二地址为MAC地址;若待查询第一地址为MAC地址,则第二地址为IP地址。
在一个实施例中,上述发送模块13还用于若地址映射表中不存在第二地址,将上行数据发送至GTP模块。
在一个实施例中,如图10所示,提供了一种数据传输装置,该装置还包括:第一判断模块14和第二判断模块15,其中,
第一判断模块14,用于判断上行数据是否为以太网会话;
第二判断模块15,用于若上行数据为以太网会话,判断上行数据是否为ARP/RARP请求数据;若上行数据为是ARP/RARP请求数据,则转上述获取模块11,执行获取ARP/RARP请求数据中的待查询第一地址的步骤;若不是ARP/RARP请求数据,则转上述发送模块13,将上行数据发送至GTP模块。
在一个实施例中,第一判断模块14具体用于若上行数据的承载类型为以太网会话对应的承载类型,则确定上行数据为以太网会话。
在一个实施例中,第二判断模块15具体用于若上行数据中携带的数据类型标识为ARP/RARP请求数据对应的标识,则确定上行数据为ARP/RARP请求数据。
在一个实施例中,如图11所示,提供了一种数据传输装置,该装置还包括:更新模块16,则上述获取模块11,用于获取上行数据中的原MAC与对应的源IP地址;
更新模块16,用于根据根据上行数据中原MAC与对应的源IP地址,更新地址映射表。
在一个实施例中,上述接收模块10,还用于接收GTP模块发送的下行数据;
上述获取模块11,还用于获取下行数据中的原MAC与对应的源IP地址;
上述更新模块16,还用于根据下行数据中的原MAC与对应的源IP地址,更新地址映射表。
在一个实施例中,上述第二判断模块15还用于判断下行数据是否为ARP/RARP请求的响应数据;若是,转上述获取模块11,获取下行数据中的原MAC与对应的源IP地址。若不是,转上述发送模块,将下行数据发送至PDCP模块。
上述所有数据传输装置实施例,其实现原理和技术效果与上述数据传输方法实施例类似,在此不再赘述。
关于数据传输装置的具体限定可以参见上文中对于数据传输方法的限定,在此不再赘述。上述数据传输装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图12所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种数据传输方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。
本领域技术人员可以理解,图12中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:
接收PDCP模块发送的上行数据;
若上行数据为ARP/RARP请求数据,获取ARP/RARP请求数据中的待查询第一地址,待查询第一地址包括待查询IP地址或待查询MAC地址;
从预设的地址映射表中,查询待查询第一地址对应的第二地址;地址映射表中包括多个MAC地址与IP地址的映射关系;
若地址映射表中存在第二地址,则将第二地址发送至PDCP模块。
上述实施例提供的一种计算机设备,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:
接收PDCP模块发送的上行数据;
若上行数据为ARP/RARP请求数据,获取ARP/RARP请求数据中的待查询第一地址,待查询第一地址包括待查询IP地址或待查询MAC地址;
从预设的地址映射表中,查询待查询第一地址对应的第二地址;地址映射表中包括多个MAC地址与IP地址的映射关系;
若地址映射表中存在第二地址,则将第二地址发送至PDCP模块。
上述实施例提供的一种计算机可读存储介质,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形 式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (12)

  1. 一种数据传输方法,其特征在于,所述方法包括:
    接收PDCP模块发送的上行数据;
    若所述上行数据为ARP/RARP请求数据,获取所述ARP/RARP请求数据中的待查询第一地址,所述待查询第一地址包括待查询IP地址或待查询MAC地址;
    从预设的地址映射表中,查询所述待查询第一地址对应的第二地址;所述地址映射表中包括多个MAC地址与IP地址的映射关系;
    若所述地址映射表中存在所述第二地址,则将所述第二地址发送至所述PDCP模块。
  2. 根据权利要求1所述的方法,其特征在于,若所述待查询第一地址为IP地址,则所述第二地址为MAC地址;若所述待查询第一地址为MAC地址,则所述第二地址为IP地址。
  3. 根据权利要求1或2所述的方法,其特征在于,所述从预设的地址映射表中,查询所述待查询第一地址对应的第二地址之前,所述方法还包括:
    若所述地址映射表中不存在所述第二地址,将所述上行数据发送至GTP模块。
  4. 根据权利要求1或2所述的方法,其特征在于,在获取所述ARP/RARP请求数据中的待查询第一地址之前,所述方法包括:
    判断所述上行数据是否为以太网会话;
    若所述上行数据为以太网会话,判断所述上行数据是否为所述ARP/RARP请求数据;
    若所述上行数据是ARP/RARP请求数据,则执行获取所述ARP/RARP请求数据中的待查询第一地址的步骤;
    若不是所述ARP/RARP请求数据,则将所述上行数据发送至GTP模块。
  5. 根据权利要求4所述的方法,其特征在于,所述判断所述上行数据是否为以太网会话,包括:若所述上行数据的承载类型为以太网会话对应的承载类型,则确定所述上行数据为以太网会话。
  6. 根据权利要求4所述的方法,其特征在于,所述判断所述上行数据是否为所述ARP/RARP请求数据,包括:若所述上行数据中携带的数据类型标识为所 述ARP/RARP请求数据对应的标识,则确定所述上行数据为所述ARP/RARP请求数据。
  7. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:
    获取所述上行数据中的原MAC与对应的源IP地址;
    根据所述上行数据中的原MAC与对应的源IP地址,更新所述地址映射表。
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:
    接收GTP模块发送的下行数据;
    获取所述下行数据中的原MAC与对应的源IP地址;
    根据所述下行数据中的原MAC与对应的源IP地址,更新所述地址映射表。
  9. 根据权利要求8所述的方法,其特征在于,所述获取所述下行数据中的原MAC与对应的源IP地址之前,所述方法包括:
    判断所述下行数据是否为ARP/RARP请求的响应数据;
    若是,获取所述下行数据中的原MAC与对应的源IP地址;
    若不是,将所述下行数据发送至所述PDCP模块。
  10. 一种数据传输装置,其特征在于,所述装置包括:
    接收模块,用于接收PDCP模块发送的上行数据;
    获取模块,用于若所述上行数据为ARP/RARP请求数据,获取所述ARP/RARP请求数据中的待查询第一地址,所述待查询第一地址包括待查询IP地址或待查询MAC地址;
    查询模块,用于从预设的地址映射表中,查询所述待查询第一地址对应的第二地址;所述地址映射表中包括多个MAC地址与IP地址的映射关系;
    发送模块,用于若所述地址映射表中存在所述第二地址,则将所述第二地址发送至所述PDCP模块。
  11. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至9中任一项所述方法的步骤。
  12. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至9中任一项所述的方法的步骤。
PCT/CN2020/136919 2019-12-16 2020-12-16 数据传输方法、装置、计算机设备和存储介质 WO2021121286A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911293553.XA CN111107176B (zh) 2019-12-16 2019-12-16 数据传输方法、装置、计算机设备和存储介质
CN201911293553.X 2019-12-16

Publications (1)

Publication Number Publication Date
WO2021121286A1 true WO2021121286A1 (zh) 2021-06-24

Family

ID=70422926

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/136919 WO2021121286A1 (zh) 2019-12-16 2020-12-16 数据传输方法、装置、计算机设备和存储介质

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666300A (zh) * 2022-05-20 2022-06-24 杭州海康威视数字技术股份有限公司 基于多任务的双向连接阻断方法、装置及电子设备

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111107176B (zh) * 2019-12-16 2021-08-24 京信网络系统股份有限公司 数据传输方法、装置、计算机设备和存储介质
CN112183690A (zh) * 2020-09-30 2021-01-05 深圳市快易典教育科技有限公司 一种集体式教学用学习管理方法、系统、电子设备
CN112911617A (zh) * 2021-01-20 2021-06-04 广东工贸职业技术学院 数据传输方法、装置、计算机设备和存储介质
CN114422478A (zh) * 2021-12-21 2022-04-29 福建星网智慧科技有限公司 一种gemport id和mac地址映射的方法和存储设备
CN114710467B (zh) * 2022-03-25 2024-03-12 阿里巴巴(中国)有限公司 Ip地址存储方法、装置和硬件网关

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286948A (zh) * 2008-05-30 2008-10-15 杭州华三通信技术有限公司 一种访问权限控制的方法和无线接入设备
CN105791459A (zh) * 2016-03-01 2016-07-20 山东航天电子技术研究所 一种IP网络到AdHoc网络的业务映射方法
CN106973126A (zh) * 2017-05-26 2017-07-21 杭州迪普科技股份有限公司 一种arp应答方法及装置
US20180041465A1 (en) * 2016-08-05 2018-02-08 Electronics And Telecommunications Research Institute Distributed mobility management system and method
CN109617657A (zh) * 2019-01-22 2019-04-12 新华三技术有限公司 一种报文处理方法和装置
CN111107176A (zh) * 2019-12-16 2020-05-05 京信通信系统(中国)有限公司 数据传输方法、装置、计算机设备和存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286948A (zh) * 2008-05-30 2008-10-15 杭州华三通信技术有限公司 一种访问权限控制的方法和无线接入设备
CN105791459A (zh) * 2016-03-01 2016-07-20 山东航天电子技术研究所 一种IP网络到AdHoc网络的业务映射方法
US20180041465A1 (en) * 2016-08-05 2018-02-08 Electronics And Telecommunications Research Institute Distributed mobility management system and method
CN106973126A (zh) * 2017-05-26 2017-07-21 杭州迪普科技股份有限公司 一种arp应答方法及装置
CN109617657A (zh) * 2019-01-22 2019-04-12 新华三技术有限公司 一种报文处理方法和装置
CN111107176A (zh) * 2019-12-16 2020-05-05 京信通信系统(中国)有限公司 数据传输方法、装置、计算机设备和存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666300A (zh) * 2022-05-20 2022-06-24 杭州海康威视数字技术股份有限公司 基于多任务的双向连接阻断方法、装置及电子设备

Also Published As

Publication number Publication date
CN111107176A (zh) 2020-05-05
CN111107176B (zh) 2021-08-24

Similar Documents

Publication Publication Date Title
WO2021121286A1 (zh) 数据传输方法、装置、计算机设备和存储介质
US11003639B2 (en) Database data migration method, apparatus, terminal, system, and storage medium
WO2018153346A1 (zh) 一种网络切片的选择方法及装置
WO2018184491A1 (zh) 资源获取方法、装置及系统
CN109803242B (zh) 通过nrf进行nf发现的方法、设备及可读存储介质
US20190222666A1 (en) Routing for origin-facing points of presence
TWI552634B (zh) 完成直接傳輸層連接性的伺服器與使用者設備與其電腦程式產品
US20150213134A1 (en) Data query method and system and storage medium
EP3157230B1 (en) Method for acquiring identifier of terminal in network, management network element and storage medium
EP1940107A1 (en) A method for processing data synchronization and client terminal, server and data synchronization system thereof
AU2017427437A1 (en) Pdu type setting method, ue policy setting method, and related entity
WO2019205557A1 (zh) 物联网设备的资源订阅
US20040258021A1 (en) Program for voice talking, voice talking method, and voice talking apparatus
WO2017097023A1 (zh) 无感知认证方法系统,基于该方法系统的控制方法、系统
WO2015062228A1 (zh) 一种访问共享内存的方法和装置
US10075414B2 (en) Method and apparatus for providng push service in communication system
WO2018195829A1 (zh) 重定向的方法、控制面网元、聚合用户面网元、内容服务器和终端设备
WO2015096344A1 (zh) App获取终端的mac地址的方法及系统
US11206240B2 (en) Method and apparatus for processing data
US8457030B2 (en) Mobile phone and method for receiving calls
WO2020118633A1 (zh) 订阅消息的处理方法、装置、计算机设备和存储介质
TWI735633B (zh) 資料傳輸的方法、設備、裝置及系統
WO2018176439A1 (zh) 地址获取方法、业务能力开放网元和移动边缘计算网元
WO2021056847A1 (zh) 报文传输方法、装置、计算机设备和存储介质
EP3288242B1 (en) Domain name system accessing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20901670

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20901670

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 02/02/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20901670

Country of ref document: EP

Kind code of ref document: A1