Data transmission method and apparatus, and storage medium

CN117354867BActive Publication Date: 2026-10-30CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311481814.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-08
Publication Date
2026-10-30
Estimated Expiration
2043-11-08

AI Technical Summary

Technical Problem

[0003]本申请提供了一种数据传输方法、装置及存储介质,用于解决群组通信场景下MAC地址冲突的问题,保证数据的正常传输

Benefits of technology

[0006]基于上述方法,UPF网元获取UPF网元标识和多个终端的协议数据单元PDU会话信息,PDU会话信息包括5G群组标识、PDU会话标识和源媒体访问控制MAC地址,基于预设赋值规则,UPF网元将UPF网元标识和PDU会话信息进行组合,生成多个终端的源MAC地址对应的临时MAC地址。在多个终端源MAC地址相同的情况下,根据生成的临时MAC地址来进行数据传输。本方法能有效提高UPF网元的容错能力,能有效解决因客户配置导致的MAC地址冲突问题。临时MAC地址充分利用PDU会话中所产生的标识符,无需额外生成标识符,减少了系统计算和存储资源占用,能有效保证群组通信场景下的MAC地址唯一性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117354867B_ABST
    Figure CN117354867B_ABST
Patent Text Reader

Abstract

The application discloses a data transmission method and device and a storage medium, relates to the technical field of communication, and is applied to a user plane function (UPF) network element, the method comprises the following steps: acquiring a UPF network element identifier and protocol data unit (PDU) session information of a plurality of terminals, the PDU session information of the plurality of terminals comprising a 5G group identifier, a PDU session identifier and a source media access control (MAC) address, the source MAC addresses of the plurality of terminals being the same; based on a preset assignment rule, combining the UPF network element identifier and the PDU session information of the plurality of terminals to generate a temporary MAC address corresponding to the source MAC address of the plurality of terminals; and determining a mapping information table according to the PDU session information of the plurality of terminals and the temporary MAC address, the mapping information table being used for data transmission. The method provided in the application can solve the problem of MAC address conflict in a group communication scenario, so that the normal transmission of data is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a data transmission method, apparatus and storage medium. Background Technology

[0002] In 5G networks, the transmission of Ethernet data packets is based on routing rules configured in the User Plane Function (UPF) network element. The UPF can check the source MAC address received in Protocol Data Unit (PDU) sessions within uplink traffic. However, in practical applications, Media Access Control Address (MAC) conflicts caused by user actions are unavoidable, leading to data transmission failures. When the UPF detects a duplicate MAC address, it will deregister the old MAC address and register a new one. Repeating this process can result in a large number of message channels being occupied, and in severe cases, even prevent new users from connecting. Therefore, it is urgent to solve the MAC address conflict problem in group communication scenarios to ensure normal data transmission in group communication. Summary of the Invention

[0003] This application provides a data transmission method, apparatus, and storage medium to solve the problem of MAC address conflicts in group communication scenarios and ensure normal data transmission.

[0004] To achieve the above objectives, this application adopts the following technical solution:

[0005] Firstly, a data transmission method is provided, comprising: acquiring UPF network element identifiers and Protocol Data Unit (PDU) session information of multiple terminals, wherein the PDU session information of the multiple terminals includes a 5G group identifier, a PDU session identifier, and a source Media Access Control (MAC) address, and the source MAC addresses of the multiple terminals are the same; combining the UPF network element identifier and the PDU session information of the multiple terminals based on preset assignment rules to generate temporary MAC addresses corresponding to the source MAC addresses of the multiple terminals; and determining a mapping information table based on the PDU session information and temporary MAC addresses of the multiple terminals, wherein the mapping information table is used for data transmission.

[0006] Based on the above method, the UPF network element obtains the UPF network element identifier and Protocol Data Unit (PDU) session information from multiple terminals. The PDU session information includes the 5G group identifier, the PDU session identifier, and the source Media Access Control (MAC) address. Based on preset assignment rules, the UPF network element combines the UPF network element identifier and the PDU session information to generate temporary MAC addresses corresponding to the source MAC addresses of multiple terminals. When multiple terminals have the same source MAC address, data transmission is performed based on the generated temporary MAC address. This method effectively improves the fault tolerance capability of the UPF network element and effectively solves the MAC address conflict problem caused by customer configuration. The temporary MAC address fully utilizes the identifiers generated in the PDU session, eliminating the need for additional identifier generation, reducing system computation and storage resource consumption, and effectively ensuring the uniqueness of MAC addresses in group communication scenarios.

[0007] In one possible implementation, the above-mentioned "combining the UPF network element identifier and the PDU session information of multiple terminals based on preset assignment rules to generate a temporary MAC address corresponding to the source MAC address of the terminal" includes: using the UPF network element equipment vendor number as the high three bytes of the MAC address; using the UP network element identifier and PDU session information as the low three bytes of the MAC address; and combining the high three bytes and the third byte to generate a temporary MAC address corresponding to the source MAC address of multiple terminals.

[0008] In one possible implementation, the above-mentioned "using the UPF network element identifier and PDU session information as the lower three bytes of the MAC address" includes: the lower three bytes are 24 bits in total, of which: bits 1-3 are assigned values ​​using the UPF network element identifier; bits 4-12 are assigned values ​​using the 5G group identifier; bits 13-20 are assigned values ​​using the PDU session identifier; and bits 21-24 are assigned values ​​using the order in which multiple terminals access the 5G group.

[0009] In one possible implementation, the method further includes: if uplink or downlink traffic associated with the source MAC address is detected, then data transmission is performed according to the information in the mapping information table.

[0010] In one possible implementation, the method further includes: if a PDU session information release notification associated with the source MAC address is received, then the information in the mapping information table is deleted.

[0011] Secondly, a data transmission device is provided, which is applied to a chip or system-on-a-chip in the data transmission device, and can also be a functional module in the data transmission device for implementing the first aspect or any possible design of the first aspect. This device can implement the functions performed by the data transmission device in the above-mentioned aspects or possible designs, and the functions can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions. For example, the device includes an acquisition unit, a processing unit, and a determination unit.

[0012] The acquisition unit is used to acquire the UPF network element identifier and the Protocol Data Unit (PDU) session information of multiple terminals. The PDU session information of multiple terminals includes the 5G group identifier, the PDU session identifier and the source Media Access Control (MAC) address. The source MAC addresses of multiple terminals are the same.

[0013] The processing unit is used to combine the UPF network element identifier and the PDU session information of multiple terminals based on preset assignment rules to generate temporary MAC addresses corresponding to the source MAC addresses of multiple terminals.

[0014] The determining unit is used to determine a mapping information table based on the session information of multiple terminal PDUs and temporary MAC addresses. The mapping information table is used for data transmission.

[0015] In one possible implementation, the processing unit is specifically used to: use the UPF network element equipment vendor number as the high three bytes of the MAC address; use the UP network element identifier and PDU session information as the low three bytes of the MAC address; and combine the high three bytes and the third byte to generate temporary MAC addresses corresponding to the source MAC addresses of multiple terminals.

[0016] In one possible implementation, the processing unit is specifically used to: assign values ​​to bits 1-3 using the UPF network element identifier; assign values ​​to bits 4-12 using the 5G group identifier; assign values ​​to bits 13-20 using the PDU session identifier; and assign values ​​to bits 21-24 using the order in which multiple terminals access the 5G group.

[0017] In one possible implementation, the processing unit is further configured to: if uplink or downlink traffic associated with the source MAC address is detected, then transmit data according to the information in the mapping information table.

[0018] In one possible implementation, the processing unit is further configured to: if uplink or downlink traffic associated with the source MAC address is detected, then transmit data according to the information in the mapping information table.

[0019] Thirdly, a data transmission device is provided, which can be a data transmission device or a chip or system-on-a-chip within a data transmission device. This device can realize the functions performed by the data transmission device in the above aspects or possible designs. These functions can be implemented in hardware. For example, in one possible design, the device may include a processor and a communication interface. The processor can be used to support the data transmission device in realizing the functions involved in the first aspect or any possible design of the first aspect.

[0020] In another possible design, the data transmission device may further include a memory for storing computer execution instructions and data necessary for the data transmission device. When the device is in operation, the processor executes the computer execution instructions stored in the memory to cause the device to perform the data transmission method described in the first aspect or any of the possible designs of the first aspect.

[0021] Fourthly, a computer-readable storage medium is provided, which may be a readable non-volatile storage medium storing computer instructions or programs that, when executed on a computer, enable the computer to perform the data transmission method described in the first aspect or any of the possible designs of the above aspects.

[0022] Fifthly, a computer program product containing instructions is provided, which, when run on a computer, enables the computer to execute the data transmission method of the first aspect or any possible design of the above aspects.

[0023] In a sixth aspect, a data transmission apparatus is provided. This apparatus may be a data transmission device or a chip or system-on-a-chip within a data transmission device. The apparatus includes one or more processors and one or more memories. The one or more memories are coupled to the one or more processors and are used to store computer program code, including computer instructions. When the one or more processors execute the computer instructions, the data transmission apparatus causes it to perform the data transmission method as described in the first aspect or any possible design of the first aspect.

[0024] In a seventh aspect, a chip system is provided, comprising a processor and a communication interface, which can be used to implement the functions performed by the data transmission device in the first aspect or any possible design of the first aspect. In one possible design, the chip system further includes a memory for storing program instructions and / or data. The chip system may be composed of chips or may include chips and other discrete devices, without limitation. Attached Figure Description

[0025] Figure 1 This is a schematic diagram illustrating an application scenario of a data transmission method provided in an embodiment of this application;

[0026] Figure 2 This is a schematic diagram of the structure of a data transmission device provided in an embodiment of this application;

[0027] Figure 3 A flowchart illustrating a data transmission method provided in an embodiment of this application;

[0028] Figure 4 A schematic diagram of an assignment rule provided in an embodiment of this application;

[0029] Figure 5 A flowchart illustrating another data transmission method provided in an embodiment of this application;

[0030] Figure 6 This is a schematic diagram of another data transmission device provided in an embodiment of this application. Detailed Implementation

[0031] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0032] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the embodiments of this application as detailed in the appended claims.

[0033] It should also be understood that the term "comprising" indicates the presence of the described feature, whole, step, operation, element and / or component, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements and / or components.

[0034] Before introducing the embodiments of this application, the communication terms involved in the embodiments of this application will be explained.

[0035] 5G local access network (5G LAN) service is a communication service provided by the 5G system that offers IP or Ethernet communication to a specific 5G virtual network group (VN Group). This communication service can occur between two or more members of a 5G VN Group, or between a member of a 5G VN Group and an application in the data network.

[0036] A 5G VN Group is a set of user equipment (UEs) that are contracted and join a VN Group. This is equivalent to joining a virtual IP or Ethernet subnet, which enables 5G LAN-type services to be carried out in the virtual subnet.

[0037] In 5G LANs, the transmission of Ethernet data packets is based on routing rules configured in the UPF network element. UPF supports MAC address self-learning, meaning the UPF can examine the source MAC address received in the PDU session within uplink traffic. Based on the self-learned MAC address and the routing rules issued by the session management function (SMF) network element or configured locally, the UPF can provide Ethernet-based addressing and forwarding services.

[0038] However, in practical applications of 5G LANs, MAC address conflicts caused by user actions are unavoidable. Once the UPF detects a duplicate MAC address, it will perform MAC address migration, that is, deregister the old MAC address and register a new one. As long as the MAC address conflict problem is not resolved, the UPF will continuously repeat the above process, constantly sending user update messages, resulting in a large amount of message channel congestion, and in severe cases, preventing new users from logging in. In addition, because the UPF lacks a MAC address conflict alarm mechanism, users cannot quickly locate the MAC address conflict problem, resulting in relatively slow fault handling.

[0039] In view of this, this application proposes a data transmission method. In this method, the UPF network element obtains the UPF network element identifier and Protocol Data Unit (PDU) session information from multiple terminals. The PDU session information includes a 5G group identifier, a PDU session identifier, and a source Media Access Control (MAC) address. Based on preset assignment rules, the UPF network element combines the UPF network element identifier and the PDU session information to generate temporary MAC addresses corresponding to the source MAC addresses of multiple terminals. When multiple terminals have the same source MAC address, data transmission is performed based on the generated temporary MAC address. Compared to existing technologies, this solution effectively improves the fault tolerance capability of the UPF network element and effectively solves the MAC address conflict problem caused by customer configuration. The temporary MAC address fully utilizes the identifier generated in the PDU session, eliminating the need for additional identifier generation, reducing system computation and storage resource consumption, and effectively ensuring the uniqueness of MAC addresses in group communication scenarios.

[0040] It is understandable that the above method can be executed by a UPF network element. The data transmission method provided in the embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0041] like Figure 1 The diagram illustrates an application scenario of a data transmission method.

[0042] This application scenario includes network devices and multiple terminals (such as terminal 1 and terminal 2). The network devices are equipped with UPF network elements. These UPF elements are used to acquire PDU session information sent by multiple terminals and generate temporary MAC addresses based on the session information. Specifically, the network devices can be any of the following: small base stations, wireless access points, transceiver points (TRPs), transmission points (TPs), or other access nodes.

[0043] Terminals are used to send data to network devices to achieve communication and internet access functions. Specifically, terminals can be mobile phones, smartwatches, tablets, or computers with wireless transceiver capabilities. They can also be virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in autonomous driving, wireless terminals in telemedicine, wireless terminals in smart grids, wireless terminals in smart cities, smart home devices, and vehicle terminals, etc.

[0044] In a VN Group-A scenario, the subscriber identity modules (SIMs) inserted into the terminal are SIM-1 and SIM-2, both with MAC addresses of MAC-A. The downstream devices establish Ethernet sessions with PDU-1 and PDU-2 respectively through the user equipment. In this scenario, because the MAC addresses of the user equipment are both MAC-A, a MAC address conflict occurs.

[0045] The embodiments of this application do not limit the application scenarios of the data transmission system. The application scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of network architecture and the emergence of new service scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0046] In one example, this application embodiment also provides a data transmission device that can be used to execute the methods of this application embodiment.

[0047] For example, such as Figure 2 The diagram shown is a schematic representation of a data transmission device 200 provided in an embodiment of this application. The data transmission device 200 may include a processor 201, a communication interface 202, and a communication line 203.

[0048] Furthermore, the data transmission device 200 may also include a memory 204. The processor 201, memory 204, and communication interface 202 can be connected via a communication line 203.

[0049] The processor 201 can be a CPU, a general-purpose processor, a network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The processor 201 can also be other devices with processing capabilities, such as circuits, devices, or software modules, without limitation.

[0050] Communication interface 202 is used to communicate with other devices or other communication networks. Communication interface 202 can be a module, circuit, communication interface, or any device capable of enabling communication.

[0051] Communication line 203 is used to transmit information between the components included in data transmission device 200.

[0052] Memory 204 is used to store instructions. These instructions can be computer programs.

[0053] The memory 204 can be a read-only memory (ROM) or other type of static storage device that can store static information and / or instructions; it can also be a random access memory (RAM) or other type of dynamic storage device that can store information and / or instructions; it can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, etc., without limitation.

[0054] It should be noted that the memory 204 can exist independently of the processor 201 or can be integrated with the processor 201. The memory 204 can be used to store instructions, program code, or some data, etc. The memory 204 can be located inside or outside the data transmission device 200, without limitation. The processor 201 is used to execute the instructions stored in the memory 204 to implement the data transmission method provided in the following embodiments of this application.

[0055] In one example, processor 201 may include one or more CPUs, for example, Figure 2 CPU0 and CPU1 in the CPU.

[0056] As an optional implementation, the data transmission device 200 includes multiple processors, for example, besides Figure 2 In addition to processor 201, it may also include processor 207.

[0057] As an optional implementation, the data transmission device 200 also includes an output device 205 and an input device 206. For example, the input device 206 is a device such as a keyboard, mouse, microphone, or joystick, and the output device 205 is a device such as a display screen or speaker.

[0058] It should be noted that the data transmission device 200 can be a desktop computer, laptop computer, network server, mobile phone, tablet computer, wireless terminal, embedded device, chip system, or other device. Figure 2 Equipment with a similar structure. Furthermore... Figure 2 The composition shown is not limited, except Figure 2In addition to the components shown, it may also include components that are larger than those shown. Figure 2 More or fewer components, or combinations of certain components, or different arrangements of components.

[0059] In this embodiment of the application, the chip system may be composed of chips or may include chips and other discrete devices.

[0060] Furthermore, the actions, terms, etc., involved in the various embodiments of this application can be referenced interchangeably without limitation. The message names or parameter names in the messages between the various devices in the embodiments of this application are merely examples, and other names may be used in specific implementations without limitation.

[0061] To facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.

[0062] It should be noted that, in this application, the terms "exemplary" or "for example" are used to indicate that something is being described as an example, illustration, or illustration. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0063] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0064] The following is combined with Figure 1The application scenarios shown illustrate the data transmission method provided in the embodiments of this application. The actions, terminology, etc., involved in the various embodiments of this application can be referenced interchangeably without limitation. The message names or parameter names in the messages exchanged between devices in the embodiments of this application are merely examples; other names can be used in specific implementations without limitation. The actions involved in the various embodiments of this application are merely examples; other names can be used in specific implementations. For example, "included in" in the embodiments of this application can be replaced with "carried on" or "carried in," etc.

[0065] like Figure 3 The image shows a data transmission method provided in an embodiment of this application. The method includes:

[0066] S301. Obtain the UPF network element identifier and the protocol data unit (PDU) session information of multiple terminals.

[0067] The PDU session information includes the 5G group identifier, the PDU session identifier, and the source Media Access Control (MAC) address. The UPF identifier, or upf-id, is a unique identifier used in UPF network planning. The 5G group identifier, or VN Group ID, is a unique identifier used to identify group sessions. The PDU session identifier, or up-fseid, is a unique identifier assigned by the UPF responsible for 5G LAN group communication. Multiple terminals may have the same source MAC address in their PDU session information.

[0068] In one possible implementation, in response to the establishment of a PDU session between the UPF and the terminal, the UPF obtains the PDU session information and the UPF network element identifier during network planning.

[0069] S302. Based on preset assignment rules, combine the UPF network element identifier and the PDU session information of multiple terminals to generate temporary MAC addresses corresponding to the source MAC addresses of multiple terminals.

[0070] The generated temporary MAC address is 6 bytes long, with the first 3 bytes being the high 3 bytes and the last 3 bytes being the low 3 bytes. For example... Figure 4 As shown, the default assignment rule is that the high 3 bytes use the UPF network element equipment vendor number, and the low 3 bytes use the acquired UPF network element identifier and PDU session information of multiple terminals.

[0071] In one possible implementation, based on preset assignment rules, the UPF network element uses the equipment vendor ID assigned by the Institute of Electrical and Electronics Engineers (IEEE), or a custom equipment vendor ID, as the high 3 bytes of the temporary MAC address. The high 3 bytes are a fixed assignment field, for example, AA-BB-CC.

[0072] The UPF network element uses the PDU session information as the lower 3 bytes of the MAC address. Specifically, the lower 3 bytes consist of 24 bits, where bits 1-3 are assigned the UPF identifier (upf-id), bits 4-12 are assigned the 5G group identifier (VN Group ID), bits 13-20 are assigned the PDU session identifier (up-fseid), and bits 21-24 are assigned the order in which multiple terminals access the 5G group.

[0073] In one example, under the same communication group, the UPF network element generates the corresponding temporary MAC address based on the source MAC address of terminal 1, as shown in Table 1.

[0074] Table 1

[0075]

[0076] The high 3 bytes correspond to the equipment vendor number AA-BB-CC for the UDF network element. The low 3 bytes correspond to the UPF network element identifier 010, the 5G group identifier 000000010, the PDU session identifier 00000010, the terminal access sequence 0010, and the number 40-20-22, meaning that the temporary MAC address generated from the source MAC address of terminal 1 is AA-BB-CC-40-20-22.

[0077] In another example, under the same communication group, the corresponding temporary MAC address generated by the UPF network element based on the source MAC address of terminal 2 is shown in Table 2.

[0078] Table 2

[0079]

[0080]

[0081] The high 3 bytes correspond to the equipment vendor number AA-BB-CC for the UDF network element. The low 3 bytes correspond to the UPF network element identifier 010, the 5G group identifier 000000010, the PDU session identifier 00000011, the terminal access sequence 0011, and the number 40-20-22, meaning that the temporary MAC address generated from the source MAC address of terminal 1 is AA-BB-CC-40-20-33.

[0082] It should be noted that the data in Table 2 is exemplary, and this application does not impose any specific limitations on the data in the table.

[0083] Understandably, the capacity of the MAC address pool generated by the UPF network element can meet the access requirements of the maximum number of terminals allowed to access the largest 5G group under the same UPF network element. The maximum number of 5G groups supported by the same UPF network element is 512, the maximum number of terminal users supported by each 5G group is 256, and the maximum number of MAC addresses supported by each terminal per session is 16. Therefore, the MAC addresses generated by the UPF can include 512*256*16=2097152.

[0084] S303. Determine the mapping information table based on the session information of multiple terminal PDUs and the temporary MAC address.

[0085] The mapping information table is used for data transmission.

[0086] In one possible implementation, the UPF network element combines multiple terminal PDU session information and temporary MAC addresses generated by multiple terminals to determine a mapping information table. Furthermore, if the UPF network element detects uplink or downlink traffic associated with a source MAC address, it transmits data according to the information in the mapping information table.

[0087] In one example, the mapping information table can be represented as Table 3.

[0088] Table 3

[0089]

[0090]

[0091] In this case, Terminal 1 and Terminal 2 share the same source MAC address. When the UPD network element detects the uplink and downlink traffic of Terminal 1 and Terminal 2, it generates temporary MAC addresses corresponding to Terminal 1 and Terminal 2 respectively, and transmits data according to the port information in the mapping information table. The timestamp represents the order in which the terminals accessed the network as shown in Tables 1 and 2 above.

[0092] It should be noted that the data in Table 3 is exemplary, and this application does not impose any specific limitations on the data in the table.

[0093] based on Figure 3 This application provides a data transmission method. A UPF network element obtains the UPF network element identifier and Protocol Data Unit (PDU) session information from multiple terminals. The PDU session information includes a 5G group identifier, a PDU session identifier, and a source Media Access Control (MAC) address. Based on preset assignment rules, the UPF network element combines the UPF network element identifier and the PDU session information to generate temporary MAC addresses corresponding to the source MAC addresses of multiple terminals. When multiple terminals have the same source MAC address, data transmission is performed based on the generated temporary MAC address. Compared to existing technologies, this solution effectively improves the fault tolerance capability of the UPF network element and effectively solves the MAC address conflict problem caused by customer configuration. The temporary MAC address fully utilizes the identifier generated in the PDU session, eliminating the need for additional identifier generation, reducing system computation and storage resource consumption, and effectively ensuring the uniqueness of MAC addresses in group communication scenarios.

[0094] In some embodiments, such as Figure 5 As shown, the method also includes S501.

[0095] S501. If a PDU session information release notification associated with the source MAC address is received, the information in the mapping information table is deleted.

[0096] In one possible implementation, after the UPD network element transmits data according to the information in the mapping information table, if a PDU session information release notification associated with the source MAC address is received, the information in the mapping information table is deleted.

[0097] based on Figure 5 The technical solution involves deleting information from the mapping information table after the UPF completes data transmission, which can free up the storage space of the UPF network element. At the same time, when multiple new terminal MAC address conflicts occur, a corresponding temporary MAC address can be generated according to the terminal, so that the temporary MAC address can be reused.

[0098] This application embodiment can divide the data transmission device into functional modules or functional units according to the above method examples. For example, each function can be divided into a separate functional module or functional unit, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or in software functional modules or functional units. The module or unit division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0099] When dividing each function into modules according to its corresponding function. Figure 6A schematic diagram of a data transmission device 60 is shown, which can be used to perform the functions involved in the above embodiments. Figure 6 The data transmission device 60 shown may include: an acquisition unit 601, a processing unit 602, and a determination unit 603.

[0100] The acquisition unit 601 is used to acquire the UPF network element identifier and the protocol data unit (PDU) session information of multiple terminals. The PDU session information of multiple terminals includes the 5G group identifier, the PDU session identifier and the source media access control (MAC) address. The source MAC addresses of multiple terminals are the same.

[0101] The processing unit 602 is used to combine the UPF network element identifier and the PDU session information of multiple terminals based on a preset assignment rule to generate temporary MAC addresses corresponding to the source MAC addresses of multiple terminals.

[0102] The determining unit 603 is used to determine a mapping information table based on the session information of multiple terminal PDUs and temporary MAC addresses. The mapping information table is used for data transmission.

[0103] In one possible implementation, the processing unit 602 is specifically used to: use the UPF network element equipment vendor number as the high three bytes of the MAC address; use the UP network element identifier and PDU session information as the low three bytes of the MAC address; and combine the high three bytes and the third byte to generate temporary MAC addresses corresponding to the source MAC addresses of multiple terminals.

[0104] In one possible implementation, the processing unit 602 is specifically used to: assign values ​​to bits 1-3 using the UPF network element identifier; assign values ​​to bits 4-12 using the 5G group identifier; assign values ​​to bits 13-20 using the PDU session identifier; and assign values ​​to bits 21-24 using the order in which multiple terminals access the 5G group.

[0105] In one possible implementation, the processing unit 602 is further configured to: if uplink or downlink traffic associated with the source MAC address is detected, then transmit data according to the information in the mapping information table.

[0106] In one possible implementation, the processing unit 602 is further configured to: if uplink or downlink traffic associated with the source MAC address is detected, then transmit data according to the information in the mapping information table.

[0107] As another possible implementation method Figure 6 The processing unit 602 can be replaced by a processor that can integrate the functions of the processing unit 602.

[0108] Furthermore, when the processing unit 602 is replaced by a processor, the data transmission device 60 involved in the embodiments of this application can be... Figure 2 The data transmission device 200 shown.

[0109] This application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be implemented by a computer program instructing related hardware. This program can be stored in the computer-readable storage medium, and when executed, it can include the processes of the above method embodiments. The computer-readable storage medium can be an internal storage unit of the communication device (including a data transmitter and / or a data receiver) of any of the foregoing embodiments, such as the hard disk or memory of the communication device. The computer-readable storage medium can also be an external storage device of the terminal device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the terminal device. Further, the computer-readable storage medium can include both the internal storage unit of the communication device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the communication device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.

[0110] It should be noted that the terms "first" and "second," etc., in the specification, claims, and drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0111] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0112] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0113] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0114] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0115] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0116] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A data transmission method, characterized in that, Applied to User Plane Function (UPF) network elements; the method includes: The UPF network element identifier and Protocol Data Unit (PDU) session information of multiple terminals are obtained. The PDU session information of the multiple terminals includes a 5G group identifier, a PDU session identifier, and a source Media Access Control (MAC) address. The source MAC addresses of the multiple terminals are the same. Use the UPF network element equipment vendor number as the high three bytes of the MAC address; The UPF network element identifier and the PDU session information are used as the lower three bytes of the MAC address; The high three bytes and the low three bytes are combined to generate temporary MAC addresses corresponding to the source MAC addresses of the multiple terminals; A mapping information table is determined based on the multiple terminal PDU session information and the temporary MAC address. The mapping information table is used for data transmission.

2. The method according to claim 1, characterized in that, The step of using the UPF network element identifier and the PDU session information as the lower three bytes of the MAC address includes: The lower three bytes total 24 bits, of which: The first three digits are assigned values ​​using the UPF network element identifier; Bits 4-12 are assigned values ​​using the 5G group identifier; Bits 13-20 are assigned values ​​using the PDU session identifier; Bits 21-24 are assigned values ​​according to the order in which the multiple terminals under the 5G group access the network.

3. The method according to claim 1, characterized in that, The method further includes: If uplink or downlink traffic associated with the source MAC address is detected, data transmission is performed according to the information in the mapping information table.

4. The method according to claim 1, characterized in that, The method further includes: If a PDU session information release notification associated with the source MAC address is received, the information in the mapping information table is deleted.

5. A data transmission device, characterized in that, The device includes: The acquisition unit is used to acquire the UPF network element identifier and the Protocol Data Unit (PDU) session information of multiple terminals. The PDU session information of the multiple terminals includes the 5G group identifier, the PDU session identifier, and the source Media Access Control (MAC) address. The source MAC addresses of the multiple terminals are the same. The processing unit is used to combine the UPF network element identifier and the PDU session information of multiple terminals based on a preset assignment rule to generate a temporary MAC address corresponding to the source MAC address of the multiple terminals. The determining unit is configured to determine a mapping information table based on the multiple terminal PDU session information and the temporary MAC address, wherein the mapping information table is used for data transmission; The processing unit is specifically configured to use the UPF network element equipment vendor number as the high three bytes of the MAC address; use the UPF network element identifier and the PDU session information as the low three bytes of the MAC address; and combine the high three bytes and the low three bytes to generate a temporary MAC address corresponding to the source MAC address of the multiple terminals.

6. The apparatus according to claim 5, characterized in that, The processing unit is specifically used for: The first three digits are assigned values ​​using the UPF network element identifier; Bits 4-12 are assigned values ​​using the 5G group identifier; Bits 13-20 are assigned values ​​using the PDU session identifier; Bits 21-24 are assigned values ​​according to the order in which the multiple terminals under the 5G group access the network.

7. The apparatus according to claim 5, characterized in that, The processing unit is also used for: If uplink or downlink traffic associated with the source MAC address is detected, data transmission is performed according to the information in the mapping information table.

8. The apparatus according to claim 5, characterized in that, The processing unit is also used for: If a PDU session information release notification associated with the source MAC address is received, the information in the mapping information table is deleted.

9. A computer-readable storage medium, characterized in that, The readable storage medium stores instructions that, when executed, implement the method as described in any one of claims 1-4.

10. A data transmission device, characterized in that, include: A processor coupled to a memory for storing one or more programs, the one or more programs including computer-executable instructions, wherein when the device is running, the processor executes the computer-executable instructions stored in the memory to cause the device to perform the method of any one of claims 1-4.

Citation Information

Patent Citations

  • Communication method and device, electronic equipment and storage medium

    CN116996485A

  • Method and apparatus for determining ethernet mac address

    US20200259783A1