CN117354867A - Data transmission method, device and storage medium - Google Patents

Data transmission method, device and storage medium Download PDF

Info

Publication number
CN117354867A
CN117354867A CN202311481814.7A CN202311481814A CN117354867A CN 117354867 A CN117354867 A CN 117354867A CN 202311481814 A CN202311481814 A CN 202311481814A CN 117354867 A CN117354867 A CN 117354867A
Authority
CN
China
Prior art keywords
mac address
terminals
pdu session
network element
data transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311481814.7A
Other languages
Chinese (zh)
Inventor
郭春旭
蔡子华
陈丰
张悦
刘子建
余锦才
吴灿辉
黄铮
潘桂新
施玉晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202311481814.7A priority Critical patent/CN117354867A/en
Publication of CN117354867A publication Critical patent/CN117354867A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

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

Abstract

The application discloses a data transmission method, a device and a storage medium, which relate to the technical field of communication and are applied to a user plane function UPF network element, wherein the method comprises the following steps: acquiring UPF network element identification and protocol data unit PDU session information of a plurality of terminals, wherein the PDU session information of the plurality of terminals comprises a 5G group identification, a PDU session identification and a source media access control MAC address, and the source MAC addresses of the plurality of terminals are the same; based on a preset assignment rule, combining the UPF network element identification and PDU session information of a plurality of terminals to generate temporary MAC addresses corresponding to source MAC addresses of the plurality of terminals; and determining a mapping information table according to the session information of the plurality of terminal PDU and the temporary MAC address, wherein the mapping information table is used for data transmission. The method can solve the problem of the conflict of the MAC address in the group communication scene, thereby ensuring the normal transmission of the data.

Description

Data transmission method, device and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a data transmission method, apparatus, and storage medium.
Background
In 5G networks, the transmission of ethernet type packets is based on routing rules configured by the user plane function (user plane function, UPF) network element. The UPF may examine the source MAC address received in a protocol data unit (protocol data unit, PDU) session in the upstream traffic. However, in practical applications, the problem of collision of the media access control addresses (media access control Address, MAC) caused by the user cannot be avoided, which results in failure of data transmission. When the UPF senses that the MAC address is repeated, the old MAC address is de-registered and the new MAC address is registered. If the above process is repeated, a large amount of message channels are occupied, and even new users cannot be online in severe cases. Therefore, there is a need to solve the problem of MAC address collision in the group communication scenario, so as to ensure normal transmission of data in the group communication.
Disclosure of Invention
The application provides a data transmission method, a data transmission device and a storage medium, which are used for solving the problem of MAC address conflict in a group communication scene and ensuring normal transmission of data.
In order to achieve the above purpose, the present application adopts the following technical scheme:
in a first aspect, a data transmission method is provided, the method including: acquiring UPF network element identification and protocol data unit PDU session information of a plurality of terminals, wherein the PDU session information of the plurality of terminals comprises a 5G group identification, a PDU session identification and a source media access control MAC address, and the source MAC addresses of the plurality of terminals are the same; based on a preset assignment rule, combining the UPF network element identification and PDU session information of a plurality of terminals to generate temporary MAC addresses corresponding to source MAC addresses of the plurality of terminals; and determining a mapping information table according to the session information of the plurality of terminal PDU and the temporary MAC address, wherein the mapping information table is used for data transmission.
Based on the method, the UPF network element acquires the UPF network element identification and protocol data unit PDU session information of a plurality of terminals, wherein the PDU session information comprises a 5G group identification, a PDU session identification and a source media access control MAC address, and based on a preset assignment rule, the UPF network element combines the UPF network element identification and the PDU session information to generate temporary MAC addresses corresponding to the source MAC addresses of the plurality of terminals. When the source MAC addresses of the plurality of terminals are the same, data transmission is performed based on the generated temporary MAC address. The method can effectively improve the fault tolerance of UPF network elements and effectively solve the problem of MAC address conflict caused by client configuration. The temporary MAC address fully utilizes identifiers generated in the PDU session, does not need to additionally generate identifiers, reduces the occupation of system calculation and storage resources, and can effectively ensure the uniqueness of the MAC address in the group communication scene.
In a possible implementation manner, the "combining the UPF network element identifier and PDU session information of the plurality of terminals based on the preset assignment rule, and generating the temporary MAC address corresponding to the source MAC address of the terminal" includes: taking the UPF network element equipment manufacturer number as the high three bytes of the MAC address; taking the UP network element identification 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 temporary MAC addresses corresponding to the source MAC addresses of the terminals.
In a possible implementation manner, the "take UPF network element identifier and PDU session information as low three bytes of MAC address" includes: the lower three bytes total 24 bits, where: 1-3 bits are assigned by adopting UPF network element identification; the 4-12 bits are assigned by adopting a 5G group identifier; the 13-20 bits adopt PDU session identification to carry out assignment; and the 21-24 bits are assigned by adopting the sequence of the access of a plurality of terminals under the 5G group.
In a possible implementation manner, the method further comprises the step of carrying out data transmission according to the information in the mapping information table if the uplink and downlink traffic associated with the source MAC address is detected.
In a possible implementation manner, the method further comprises deleting information in the mapping information table if a PDU session information release notification associated with the source MAC address is received.
In a second aspect, a data transmission device is provided, applied to a chip or a system on a chip in the data transmission device, and may also be a functional module in the data transmission device for implementing the method of the first aspect or any of the possible designs of the first aspect. The device can realize the above aspects or the functions executed by the data transmission device in each possible design, and the functions can be realized by hardware executing corresponding software. The hardware or software comprises one or more modules corresponding to the functions. Such as: the device comprises an acquisition unit, a processing unit and a determination unit.
The acquisition unit is used for acquiring the UPF network element identification and the protocol data unit PDU session information of the plurality of terminals, wherein the PDU session information of the plurality of terminals comprises a 5G group identification, a PDU session identification and a source media access control MAC address, and the source MAC addresses of the plurality of terminals are the same;
the processing unit is used for combining the UPF network element identification and PDU session information of the plurality of terminals based on a preset assignment rule to generate temporary MAC addresses corresponding to source MAC addresses of the plurality of terminals;
and the determining unit is used for determining a mapping information table according to the session information of the plurality of terminal PDU and the temporary MAC address, wherein the mapping information table is used for data transmission.
In a possible implementation manner, the processing unit is specifically configured to: taking the UPF network element equipment manufacturer number as the high three bytes of the MAC address; taking the UP network element identification 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 temporary MAC addresses corresponding to the source MAC addresses of the terminals.
In a possible implementation manner, the processing unit is specifically configured to: 1-3 bits are assigned by adopting UPF network element identification; the 4-12 bits are assigned by adopting a 5G group identifier; the 13-20 bits adopt PDU session identification to carry out assignment; and the 21-24 bits are assigned by adopting the sequence of the access of a plurality of terminals under the 5G group.
In a possible implementation, the processing unit is further configured to: and if the uplink and downlink traffic associated with the source MAC address is detected, carrying out data transmission according to the information in the mapping information table.
In a possible implementation, the processing unit is further configured to: and if the uplink and downlink traffic associated with the source MAC address is detected, carrying out data transmission according to the information in the mapping information table.
In a third aspect, a data transmission device is provided, which may be a data transmission device or a chip or a system on a chip in a data transmission device. The device may implement the above aspects or functions performed by the data transmission device in each possible design, where the functions may be implemented by hardware, for example: in one possible design, the apparatus may include: a processor and a communication interface, the processor being operable to support the data transmission apparatus to carry out the functions referred to in the above-described first aspect or any of the possible designs of the first aspect.
In yet another possible design, the data transmission device may further include a memory for holding computer-executable instructions and data necessary for the data transmission device. When the device is running, the processor executes the computer-executable instructions stored in the memory to cause the device to perform the data transmission method of the first aspect or any of the possible designs of the first aspect.
In a fourth aspect, a computer readable storage medium is provided, which may be a readable non-volatile storage medium, storing computer instructions or a program which, when run on a computer, cause the computer to perform the data transmission method of the first aspect or any one of the possible designs of the above aspects.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the data transmission method of the first aspect or any of the possible designs of the aspects.
In a sixth aspect, a data transmission device is provided, which may be a data transmission device or a chip or a system on a chip in a data transmission device, the device comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, the one or more memories being configured to store computer program code comprising computer instructions that, when executed by the one or more processors, cause the data transmission apparatus to perform the data transmission method as described above in the first aspect or any of the possible designs of the first aspect.
In a seventh aspect, a chip system is provided, comprising a processor and a communication interface, which chip system may be used to implement the functions performed by the data transmission device in the first aspect or any of the possible designs of the first aspect. In one possible design, the chip system further includes a memory for holding program instructions and/or data. The chip system may be composed of a chip, or may include a chip and other discrete devices, without limitation.
Drawings
Fig. 1 is a schematic diagram of an application scenario of a data transmission method provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a data transmission device according to an embodiment of the present application;
fig. 3 is a flow chart of a data transmission method according to an embodiment of the present application;
fig. 4 is a schematic diagram of assignment rules provided in an embodiment of the present application;
fig. 5 is a flow chart of another data transmission method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another data transmission device according to an embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with aspects of embodiments of the present application as detailed in the accompanying claims.
It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, and/or components.
Before describing embodiments of the present application, communication terms related to the embodiments of the present application will be explained.
The fifth generation mobile communication system local area network (5G local access network,5G LAN) service is a communication service provided by the 5G system for providing an IP type or an ethernet type for a specific 5G virtual network Group (virtual network Group, VN Group). The communication service may occur between two or more members of the 5G VN Group or between a member of the 5G VN Group and an application in the data network.
The 5G VN Group is a UE added to a VN Group through a User Equipment (UE) set designated by subscription, which is equivalent to adding to a virtual IP or ethernet subnet, and can perform 5G LAN type services in the virtual subnet.
In 5G LANs, the transmission of ethernet type packets is based on routing rules configured by the UPF network element. The UPF supports self-learning of MAC addresses, i.e. the UPF can check the source MAC address received in a PDU Session (Session) in upstream traffic. The UPF may provide ethernet protocol based addressing and forwarding services based on self-learned MAC addresses and routing rules issued or locally configured by the session management function (session management function, SMF) network elements.
However, in practical application of the 5G LAN, the problem of MAC address collision due to the user cannot be avoided. Once the UPF senses that the MAC address is repeated, a MAC drift process is performed, that is, the old MAC address is de-registered, and the new MAC address is registered. As long as the MAC address collision problem is not solved, the UPF will repeat the above process continuously, and send user update messages continuously, thereby occupying a large number of message channels, and in severe cases, causing a new user to fail to go online. In addition, because the UPF has no alarm mechanism of the MAC address conflict, the user cannot quickly locate the problem of the MAC address conflict, so that the fault processing is relatively slow.
In view of this, the present application proposes a data transmission method, in which a UPF network element obtains UPF network element identifiers and protocol data unit PDU session information of a plurality of terminals, where the PDU session information includes a 5G group identifier, a PDU session identifier, and a source media access control MAC address, and based on a preset assignment rule, the UPF network element combines the UPF network element identifiers and the PDU session information to generate temporary MAC addresses corresponding to source MAC addresses of the plurality of terminals. When the source MAC addresses of the plurality of terminals are the same, data transmission is performed based on the generated temporary MAC address. Compared with the prior art, the method and the device can effectively improve the fault tolerance of UPF network elements and effectively solve the problem of MAC address conflict caused by client configuration. The temporary MAC address fully utilizes identifiers generated in the PDU session, does not need to additionally generate identifiers, reduces the occupation of system calculation and storage resources, and can effectively ensure the uniqueness of the MAC address in the group communication scene.
It will be appreciated that the above method may be performed by a UPF network element. The data transmission method provided in the embodiments of the present application is described in detail below with reference to the accompanying drawings.
Fig. 1 shows a schematic diagram of an application scenario of a data transmission method.
The application scenario includes a network device and a plurality of terminals (such as terminal 1 and terminal 2). The network device is deployed with a UPF network element. The UPF network element is used for acquiring PDU session information sent by a plurality of terminals and generating a temporary MAC address according to the session information. In particular, the network device may be any of a small base station, a wireless access point, a transceiver point (transmission receive point, TRP), a transmission point (transmission point, TP), and some other access node.
The terminal is used for sending data to the network equipment to realize the communication function and the internet surfing function. Specifically, the terminal may be a mobile phone (mobile phone), a smart phone watch, a tablet computer, or a computer with a wireless transceiving function, and may also be a Virtual Reality (VR) device, an augmented reality (augmented reality, AR) device, a wireless terminal in industrial control, a wireless terminal in unmanned driving, a wireless terminal in telemedicine, a wireless terminal in a smart grid, a wireless terminal in smart city (smart home), a vehicle-mounted terminal, and the like.
In the case of the Group communication being VN Group-A, the user identification cards (subscriber identity module, SIM) inserted by the terminal are SIM-1 and SIM-2 respectively, and the MAC addresses of the corresponding user equipment are both MAC-A. The hanging device establishes PDU-1 and PDU-2 with the session type of Ethernet session respectively through the user equipment. In this scenario, since the MAC addresses of the user equipments are all MAC-se:Sub>A, MAC address collision results.
The embodiment of the application does not limit the application scene of the data transmission system. The application scenario described in the embodiments of the present application is for more clearly describing the technical solution of the embodiments of the present application, and does not constitute a limitation to the technical solution provided in the embodiments of the present application, and as a person of ordinary skill in the art can know that, with evolution of a network architecture and occurrence of a new service scenario, the technical solution provided in the embodiments of the present application is applicable to similar technical problems.
In an example, the embodiment of the application further provides a data transmission device, which can be used for executing the method of the embodiment of the application.
For example, as shown in fig. 2, a schematic diagram of a data transmission device 200 according to an embodiment of the present application is provided. The data transmission device 200 may include a processor 201, a communication interface 202, and a communication line 203.
Further, the data transmission device 200 may further include a memory 204. The processor 201, the memory 204, and the communication interface 202 may be connected by a communication line 203.
The processor 201 is a CPU, general-purpose processor, network processor (network processor, NP), digital signal processor (digital signal processing, DSP), microprocessor, microcontroller, programmable logic device (programmable logic device, PLD), or any combination thereof. The processor 201 may also be other devices with processing functions, such as, without limitation, circuits, devices, or software modules.
Communication interface 202 is used to communicate with other devices or other communication networks. The communication interface 202 may be a module, a circuit, a communication interface, or any device capable of enabling communication.
Communication line 203 for transmitting information between the components included in data transmission device 200.
Memory 204 for storing instructions. Wherein the instructions may be computer programs.
The memory 204 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device capable of storing static information and/or instructions, a random access memory (random access memory, RAM) or other type of dynamic storage device capable of storing information and/or instructions, an EEPROM, a CD-ROM (compact disc read-only memory) or other optical disk storage, an optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, etc.
It should be noted that the memory 204 may exist separately from the processor 201 or may be integrated with the processor 201. Memory 204 may be used to store instructions or program code or some data, etc. The memory 204 may be located inside the data transmission device 200 or outside the data transmission device 200, without limitation. The processor 201 is configured to execute instructions stored in the memory 204 to implement a data transmission method provided in the following embodiments of the present application.
In one example, processor 201 may include one or more CPUs, such as CPU0 and CPU1 in fig. 2.
As an alternative implementation, the data transmission device 200 comprises a plurality of processors, e.g. in addition to the processor 201 in fig. 2, a processor 207 may be included.
As an alternative implementation, the data transmission apparatus 200 further comprises an output device 205 and an input device 206. Illustratively, the input device 206 is a keyboard, mouse, microphone, or joystick device, and the output device 205 is a display screen, speaker (spaker), or the like.
It should be noted that the data transmission apparatus 200 may be a desktop computer, a portable computer, a web server, a mobile phone, a tablet computer, a wireless terminal, an embedded device, a chip system, or a device having a similar structure as in fig. 2. Further, the constituent structure shown in fig. 2 is not limited, and may include more or less components than those shown in fig. 2, or may combine some components, or may be arranged differently, in addition to those shown in fig. 2.
In the embodiment of the application, the chip system may be formed by a chip, and may also include a chip and other discrete devices.
Further, actions, terms, etc. referred to between embodiments of the present application may be referred to each other without limitation. In the embodiment of the present application, the name of the message or the name of the parameter in the message, etc. interacted between the devices are only an example, and other names may also be adopted in the specific implementation, and are not limited.
In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
In this application, the terms "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
The data transmission method provided in the embodiment of the present application is described below with reference to the application scenario shown in fig. 1. In which, the terms and the like related to the embodiments of the present application may refer to each other without limitation. In the embodiment of the present application, the name of the message or the name of the parameter in the message, etc. interacted between the devices are only an example, and other names may also be adopted in the specific implementation, and are not limited. The actions involved in the embodiments of the present application are just an example, and other names may be used in specific implementations, for example: the "included" in the embodiments of the present application may also be replaced by "carried on" or the like.
As shown in fig. 3, a data transmission method provided in an embodiment of the present application includes:
s301, obtaining UPF network element identification and protocol data unit PDU session information of a plurality of terminals.
The PDU session information includes a 5G group identification, a PDU session identification and a source media access control MAC address. The UPF identification, UPF-id, is the unique identifier when the UPF networking is planned. The 5G Group identity, VN Group ID, is a unique identifier for identifying the Group session. The PDU session identification, up-fseid, is the unique identifier assigned by the UPF responsible for 5G LAN group communication. The source MAC addresses in the PDU session information of the plurality of terminals are the same.
In one possible implementation, in response to the UPF establishing a PDU session with the terminal, the UPF obtains PDU session information, and the UPF obtains a UPF network element identification at the time of networking planning.
S302, based on a preset assignment rule, combining the UPF network element identification and PDU session information of a plurality of terminals to generate temporary MAC addresses corresponding to source MAC addresses of the plurality of terminals.
The length of the generated temporary MAC address is 6 bytes, the first 3 bytes are high 3 bytes, and the last 3 bytes are low 3 bytes. As shown in fig. 4, the preset assignment rule is that the UPF network element equipment manufacturer number is adopted for the high 3 bytes, and the obtained UPF network element identification and PDU session information of a plurality of terminals are adopted for the low 3 bytes.
In one possible implementation, the UPF network element takes the equipment manufacturer number assigned by the institute of electrical and electronics engineers (institute of electrical and electronics engineers, IEEE), or the custom equipment manufacturer number, as the temporary MAC address 3 bytes higher, based on a preset assignment rule. The upper 3 bytes are a fixed assignment field, e.g., AA-BB-CC.
The UPF network element takes PDU session information as the low 3 bytes of the MAC address. Specifically, the lower 3 bytes are 24 bits in total, wherein 1-3 bits are assigned by adopting UPF identification (UPF-ID), 4-12 bits are assigned by adopting 5G Group identification (VN Group ID), 13-20 bits are assigned by adopting PDU session identification (up-fseid), and 21-24 bits are assigned by adopting the sequence of access of a plurality of terminals under the 5G Group.
In one example, under the same communication group, the corresponding temporary MAC address generated by the UPF network element according to the source MAC address of the terminal 1 is shown in table 1.
TABLE 1
Wherein, the higher 3 bytes corresponds to the equipment manufacturer number AA-BB-CC of the UDF network element. The low 3 bytes correspond to UPF network element identification 010,5G group identification 000000010, PDU session identification 00000010, terminal access sequence 0010, the low 3 bytes correspond to serial number 40-20-22, namely the corresponding temporary MAC address generated by the source MAC address of terminal 1 is AA-BB-CC-40-20-22.
In another example, under the same communication group, the corresponding temporary MAC address generated by the UPF network element according to the source MAC address of the terminal 2 is shown in table 2.
TABLE 2
Wherein, the higher 3 bytes corresponds to the equipment manufacturer number AA-BB-CC of the UDF network element. The low 3 bytes correspond to UPF network element identification 010,5G group identification 000000010, PDU session identification 00000011, terminal access sequence 0011, the low 3 bytes correspond to serial number 40-20-22, namely the corresponding temporary MAC address generated by the source MAC address of terminal 1 is AA-BB-CC-40-20-33.
It should be noted that the data in table 2 are exemplary, and the data in the table is not specifically limited in this application.
It can be understood that the capacity of the MAC address pool generated by the UPF network element can meet the access requirement of the maximum number of terminals allowed to be accessed by the maximum 5G group in the same UPF network element, the maximum number of 5G groups supported by the same UPF network element is 512, the number of terminal users supported by each 5G group is 256, and the maximum number of MAC addresses supported by each terminal in a single session is 16, so that the MAC address generated by the UPF may include 512×256×16=2097152.
S303, determining a mapping information table according to the session information of the plurality of terminal PDU and the temporary MAC address.
Wherein the mapping information table is used for data transmission.
In a possible implementation, the UPF network element combines the PDU session information of the plurality of terminals and the temporary MAC address generated by the plurality of terminals, so as to determine the mapping information table. Further, if the UPF network element detects the uplink and downlink traffic associated with the source MAC address, data transmission is performed according to the information in the mapping information table.
In one example, the mapping information table may be represented as table 3.
TABLE 3 Table 3
The source MAC addresses of the terminal 1 and the terminal 2 are the same, and when the UPD network element detects the uplink and downlink traffic of the terminal 1 and the terminal 2, temporary MAC addresses corresponding to the terminal 1 and the terminal 2 respectively are generated, and data transmission is performed according to the port information of the information in the mapping information table. The time stamp is the sequence of the terminal access in the above table 1 and table 2.
It should be noted that the data in table 3 are exemplary, and the data in the table is not specifically limited in this application.
Based on the technical scheme of fig. 3, the embodiment of the application provides a data transmission method, in which a UPF network element acquires UPF network element identifiers and protocol data unit PDU session information of a plurality of terminals, the PDU session information includes a 5G group identifier, a PDU session identifier and a source media access control MAC address, and based on a preset assignment rule, the UPF network element combines the UPF network element identifiers and the PDU session information to generate temporary MAC addresses corresponding to source MAC addresses of the plurality of terminals. When the source MAC addresses of the plurality of terminals are the same, data transmission is performed based on the generated temporary MAC address. Compared with the prior art, the method and the device can effectively improve the fault tolerance of UPF network elements and effectively solve the problem of MAC address conflict caused by client configuration. The temporary MAC address fully utilizes identifiers generated in the PDU session, does not need to additionally generate identifiers, reduces the occupation of system calculation and storage resources, and can effectively ensure the uniqueness of the MAC address in the group communication scene.
In some embodiments, as shown in fig. 5, the method further comprises S501.
S501, when a PDU session information release notification associated with the source MAC address is received, the information in the mapping information table is deleted.
In one possible implementation manner, after the UPD network element performs data transmission 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.
Based on the technical scheme of fig. 5, after the UPF finishes data transmission, deleting the information in the mapping information table, so that the storage space of the UPF network element can be released, and meanwhile, when new multiple 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.
The embodiment of the present application may divide the functional modules or functional units of the data transmission apparatus according to the above method example, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware, or in software functional modules or functional units. The division of the modules or units in the embodiments of the present application is merely a logic function division, and other division manners may be implemented in practice.
Fig. 6 shows a schematic configuration of a data transmission device 60 in the case where respective functional blocks are divided in correspondence with respective functions, and the data transmission device 60 can be used to perform the functions involved in the above-described embodiments. The data transmission apparatus 60 shown in fig. 6 may include: an acquisition unit 601, a processing unit 602, and a determination unit 603.
An obtaining unit 601, configured to obtain a UPF network element identifier and PDU session information of a plurality of terminals, where the PDU session information of the plurality of 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 plurality of terminals are the same;
a processing unit 602, configured to combine the UPF network element identifier and PDU session information of the plurality of terminals based on a preset assignment rule, and generate temporary MAC addresses corresponding to source MAC addresses of the plurality of terminals;
a determining unit 603, configured to determine a mapping information table according to the session information of the plurality of terminal PDUs and the temporary MAC address, where the mapping information table is used for data transmission.
In a possible implementation manner, the processing unit 602 is specifically configured to: taking the UPF network element equipment manufacturer number as the high three bytes of the MAC address; taking the UP network element identification 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 temporary MAC addresses corresponding to the source MAC addresses of the terminals.
In a possible implementation manner, the processing unit 602 is specifically configured to: 1-3 bits are assigned by adopting UPF network element identification; the 4-12 bits are assigned by adopting a 5G group identifier; the 13-20 bits adopt PDU session identification to carry out assignment; and the 21-24 bits are assigned by adopting the sequence of the access of a plurality of terminals under the 5G group.
In a possible implementation manner, the processing unit 602 is further configured to: and if the uplink and downlink traffic associated with the source MAC address is detected, carrying out data transmission according to the information in the mapping information table.
In a possible implementation manner, the processing unit 602 is further configured to: and if the uplink and downlink traffic associated with the source MAC address is detected, carrying out data transmission according to the information in the mapping information table.
As yet another possible implementation, the processing unit 602 in fig. 6 may be replaced by a processor, which may integrate the functions of the processing unit 602.
Further, when the processing unit 602 is replaced by a processor, the data transmission device 60 according to the embodiment of the present application may be the data transmission device 200 shown in fig. 2.
Embodiments of the present application also provide a computer-readable storage medium. All or part of the flow in the above method embodiments may be implemented by a computer program to instruct related hardware, where the program may be stored in the above computer readable storage medium, and when the program is executed, the program may include the flow in the above method embodiments. The computer readable storage medium may be an internal storage unit of the communication device (including the data transmitting end and/or the data receiving end) of any of the foregoing embodiments, for example, a hard disk or a memory of the communication device. The computer readable storage medium may be an external storage device of the terminal apparatus, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card (flash card), or the like, which are provided in the terminal apparatus. Further, the computer readable storage medium may further include both an internal storage unit and an external storage device of the communication apparatus. The computer-readable storage medium is used to store the computer program and other programs and data required by the communication device. The above-described computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
It should be noted that the terms "first" and "second" and the like in the description, claims and drawings of the present application are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. The data transmission method is characterized by being applied to a user plane function UPF network element; the method comprises the following steps:
acquiring the UPF network element identification and protocol data unit PDU session information of a plurality of terminals, wherein the PDU session information of the plurality of terminals comprises a 5G group identification, a PDU session identification and a source media access control MAC address, and the source MAC addresses of the plurality of terminals are the same;
based on a preset assignment rule, combining the UPF network element identification and PDU session information of a plurality of terminals to generate temporary MAC addresses corresponding to source MAC addresses of the plurality of terminals;
and determining a mapping information table according to the session information of the plurality of terminal PDU and the temporary MAC address, wherein the mapping information table is used for data transmission.
2. The method of claim 1, wherein the combining the UPF network element identifier and PDU session information of the plurality of terminals based on the preset assignment rule to generate the temporary MAC address corresponding to the source MAC address of the terminal includes:
taking the UPF network element equipment manufacturer number as the high three bytes of the MAC address;
taking the UP network element identification and the PDU session information as the low three bytes of the MAC address;
and combining the high three bytes and the third byte to generate temporary MAC addresses corresponding to the source MAC addresses of the terminals.
3. The method according to claim 1 or 2, wherein said regarding said UPF network element identification and said PDU session information as the low three bytes of said MAC address comprises:
the low three bytes total 24 bits, wherein:
bits 1-3 are assigned by adopting the UPF network element identification;
4-12 bits are assigned by adopting the 5G group identification;
bits 13-20 are assigned by adopting the PDU session identifier;
and carrying out assignment on the 21-24 bits by adopting the sequence of the access of the plurality of terminals under the 5G group.
4. The method according to claim 1, wherein the method further comprises:
and if the uplink and downlink traffic associated with the source MAC address is detected, carrying out data transmission according to the information in the mapping information table.
5. The method according to claim 1, wherein the method further comprises:
and deleting the information in the mapping information table if the PDU session information release notification associated with the source MAC address is received.
6. A data transmission apparatus, the apparatus comprising:
an obtaining unit, configured to obtain the UPF network element identifier and PDU session information of a plurality of terminals, where the PDU session information of the plurality of terminals includes a 5G group identifier, a PDU session identifier, and a source media access control MAC address, and source MAC addresses of the plurality of terminals are the same;
the processing unit is used for combining the UPF network element identification and PDU session information of a plurality of terminals based on a preset assignment rule to generate temporary MAC addresses corresponding to source MAC addresses of the plurality of terminals;
and the determining unit is used for determining a mapping information table according to the session information of the plurality of terminal PDU and the temporary MAC address, wherein the mapping information table is used for data transmission.
7. The apparatus according to claim 6, wherein the processing unit is specifically configured to:
taking the UPF network element equipment manufacturer number as the high three bytes of the MAC address;
taking the UP network element identification and the PDU session information as the low three bytes of the MAC address;
and combining the high three bytes and the third byte to generate temporary MAC addresses corresponding to the source MAC addresses of the terminals.
8. The device according to claim 6 or 7, characterized in that the processing unit is specifically configured to:
bits 1-3 are assigned by adopting the UPF network element identification;
4-12 bits are assigned by adopting the 5G group identification;
bits 13-20 are assigned by adopting the PDU session identifier;
and carrying out assignment on the 21-24 bits by adopting the sequence of the access of the plurality of terminals under the 5G group.
9. The apparatus of claim 6, wherein the processing unit is further configured to:
and if the uplink and downlink traffic associated with the source MAC address is detected, carrying out data transmission according to the information in the mapping information table.
10. A data transmission device, wherein the processing unit is further configured to:
and deleting the information in the mapping information table if the PDU session information release notification associated with the source MAC address is received.
11. A computer readable storage medium having instructions stored therein which, when executed, implement the method of any of claims 1-5.
12. A data transmission apparatus, comprising: a processor coupled to a memory for storing one or more programs, the one or more programs comprising computer-executable instructions, which when executed by the apparatus, cause the apparatus to perform the method of any of claims 1-5.
CN202311481814.7A 2023-11-08 2023-11-08 Data transmission method, device and storage medium Pending CN117354867A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311481814.7A CN117354867A (en) 2023-11-08 2023-11-08 Data transmission method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311481814.7A CN117354867A (en) 2023-11-08 2023-11-08 Data transmission method, device and storage medium

Publications (1)

Publication Number Publication Date
CN117354867A true CN117354867A (en) 2024-01-05

Family

ID=89366768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311481814.7A Pending CN117354867A (en) 2023-11-08 2023-11-08 Data transmission method, device and storage medium

Country Status (1)

Country Link
CN (1) CN117354867A (en)

Similar Documents

Publication Publication Date Title
US11558346B2 (en) Address management method and system, and device
EP3836577B1 (en) Session management method and device for user groups
CN109672708B (en) Communication method, device and system
CN106921578B (en) Method and device for generating forwarding table item
CN111901177B (en) Bare metal server network configuration method, system and related equipment
US20220060881A1 (en) Group management method, apparatus, and system
CN112235175B (en) Access method and access device of network bridge equipment and network bridge equipment
CN106453681B (en) IP address allocation method and device
CN113938872B (en) Communication method, device, system and computer storage medium
CN109474713B (en) Message forwarding method and device
CN105450585A (en) Information transmission method and device
CN107517129B (en) Method and device for configuring uplink interface of equipment based on OpenStack
CN114172753B (en) Address reservation method, network equipment and system
EP4145729A1 (en) Port state configuration method, apparatus, system, and storage medium
CN101808145B (en) IP address distributing method and system
EP3503484A1 (en) Message transmission method, device and network system
CN108574587B (en) Capacity updating method and device for distributed equipment
CN114826918A (en) Message forwarding method, message processing method and device
CN112583655A (en) Data transmission method and device, electronic equipment and readable storage medium
CN107592261A (en) Message processing method, device and router
CN108934058B (en) Communication method and device
CN117354867A (en) Data transmission method, device and storage medium
CN106330787B (en) Data packet transmission method, equipment and system
CN107666443B (en) Message forwarding method and device
CN106341861B (en) Method, server and system for identifying wireless access point

Legal Events

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