WO2024061091A1 - Network communication method and apparatus, and network-side device, terminal and medium - Google Patents

Network communication method and apparatus, and network-side device, terminal and medium Download PDF

Info

Publication number
WO2024061091A1
WO2024061091A1 PCT/CN2023/118723 CN2023118723W WO2024061091A1 WO 2024061091 A1 WO2024061091 A1 WO 2024061091A1 CN 2023118723 W CN2023118723 W CN 2023118723W WO 2024061091 A1 WO2024061091 A1 WO 2024061091A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
configuration information
gateway terminal
network
terminal
Prior art date
Application number
PCT/CN2023/118723
Other languages
French (fr)
Chinese (zh)
Inventor
王文
谢振华
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2024061091A1 publication Critical patent/WO2024061091A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • 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/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/12Setup of transport tunnels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Definitions

  • This application belongs to the field of communication technology, and specifically relates to a network communication method, device, network side equipment, terminal and medium.
  • IoT Internet of Things
  • PIN Personal IoT Network
  • Embodiments of the present application provide a network communication method, device, network side equipment, terminal and medium, which can solve the problems of cumbersome communication process and low efficiency in PIN.
  • the first aspect provides a network communication method, which includes:
  • the first network function receives the first information sent by the first gateway terminal; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a target address;
  • the first network function configures a data exchange rule to the first user plane function based on the first configuration information; wherein the data exchange rule is used to indicate whether or not data received from the terminal and matching the first configuration information is allowed or prohibited from being sent to the second gateway terminal or the second user plane function, or sent through a protocol data unit (PDU) session.
  • PDU protocol data unit
  • a network communication method which method includes:
  • the first gateway terminal sends the first information to the first network function; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a destination address, used to instruct the first network function according to the first configuration.
  • Information execution configuration data exchange rules wherein the data exchange rules are used to indicate whether to allow or prohibit data received from the terminal that matches the first configuration information from being sent to the second gateway terminal or the second user plane function, or through Protocol Data Unit (PDU) sessions are sent.
  • PDU Protocol Data Unit
  • a network communication method which method includes:
  • the second gateway terminal receives the second information sent by the first network function; wherein the second information includes the second configuration information. interest;
  • the second gateway terminal performs at least one of the following based on the second configuration information:
  • the fourth aspect provides a network communication method, which method includes:
  • the management terminal sends third configuration information to the first gateway terminal; wherein the third configuration information includes at least one of the following:
  • the node indicated by the target information of the third configuration information is not directly connected to the first gateway terminal;
  • the node indicated by the source information of the third configuration information is not directly connected to the first gateway terminal;
  • the node indicated by the source information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the target information is not directly connected to the first gateway terminal;
  • the node indicated by the target information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the source information is not directly connected to the first gateway terminal.
  • a network communication device which device includes:
  • a data exchange rule configuration module configured to configure data exchange rules to the first user plane function according to the first configuration information address; wherein the data exchange rules are used to indicate whether to allow or prohibit data received from the terminal that matches the first configuration information. Sent to the second gateway terminal or the second user plane function or via a protocol data unit (PDU) session.
  • PDU protocol data unit
  • a network communication device which device includes:
  • a module for sending the first information to the network function configured to send the first information to the first network function; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a destination address, used to indicate the third
  • a network function executes configuration data exchange rules based on the first configuration information source address or target address; wherein the data exchange rules are used to indicate whether to allow or prohibit data received from the terminal that matches the first configuration information from being sent to the third Second gateway terminal or second user plane function, or sent through protocol data unit (PDU) session.
  • PDU protocol data unit
  • a network communication device which device includes:
  • a module for receiving second information from the network function configured to receive the second information sent by the first network function; wherein the second information includes configuration information;
  • the second gateway terminal execution module is configured to execute at least one of the following based on the second configuration information:
  • a network communication device comprising:
  • the node indicated by the target information of the third configuration information is not directly connected to the first gateway terminal;
  • the node indicated by the source information of the third configuration information is not directly connected to the first gateway terminal;
  • the node indicated by the source information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the target information is not directly connected to the first gateway terminal;
  • the node indicated by the target information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the source information is not directly connected to the first gateway terminal.
  • a network side device in a ninth aspect, includes a processor and a memory.
  • the memory stores programs or instructions that can be run on the processor.
  • the program or instructions When the program or instructions are executed by the processor, the implementation is as described in the first aspect. steps of the method described.
  • a terminal in a tenth aspect, includes a processor and a memory.
  • the memory stores programs or instructions that can be run on the processor.
  • the program or instructions are executed by the processor, the implementation of the second aspect or the third aspect or The steps of the method described in the fourth aspect.
  • a readable storage medium on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the network communication method as described in the first aspect, the second aspect, the third aspect, or the fourth aspect are implemented.
  • a communication system in a twelfth aspect, includes a first network function, a first gateway terminal, and a second gateway terminal.
  • the first network function is used to perform network communication as described in the first aspect.
  • the method, the first gateway terminal is used to perform the network communication method as described in the second aspect, and the second gateway terminal is used to perform the network communication method as described in the third aspect.
  • a communication system in a thirteenth aspect, includes a first network function, a first gateway terminal, a second gateway terminal and a management terminal.
  • the first network function is used to perform as described in the first aspect.
  • the method of network communication the first gateway terminal is used to perform the method of network communication as described in the second aspect, the second gateway terminal is used to perform the method of network communication as described in the third aspect, the The management terminal is used to perform the method of network communication as described in the fourth aspect.
  • the first network function receives the first information sent by the first gateway terminal.
  • the first information may include first configuration information.
  • the first configuration information may include at least one of the source address and the destination address, and then the first network function may Configure data exchange rules to the first user plane function according to the first configuration information.
  • the first user plane function can then allow or prohibit data received from the terminal that matches the first configuration information from being sent to the second gateway according to the data exchange rules.
  • the terminal or second user plane function, or sent through the protocol data unit (PDU) session realizes the configuration of localized data exchange rules, and thus enables the PIN to be connected to devices under different gateways without relying on the server. Data interaction simplifies data transmission paths and improves communication efficiency.
  • PDU protocol data unit
  • Figure 1 is a block diagram of a wireless communication system applicable to the embodiment of the present application.
  • Figure 2 is a schematic diagram of a network architecture in an embodiment of the present application.
  • Figure 3 is a flow chart of a network communication method in an embodiment of the present application.
  • Figure 4 is a flow chart of establishing or modifying a PDU session in an embodiment of the present application
  • Figure 5 is a flow chart of another network communication method in an embodiment of the present application.
  • Figure 6 is a flow chart of another PDU session establishment or modification in the embodiment of the present application.
  • Figure 7 is a flow chart of another network communication method in an embodiment of the present application.
  • Figure 8 is a flow chart of a first information interaction in an embodiment of the present application.
  • FIG9 is a flow chart of another network communication method in an embodiment of the present application.
  • Figure 10 is a flow chart of another network communication method in an embodiment of the present application.
  • Figure 11 is a structural block diagram of a network communication device in an embodiment of the present application.
  • Figure 12 is a structural block diagram of another network communication device in an embodiment of the present application.
  • Figure 13 is a structural block diagram of another network communication device in an embodiment of the present application.
  • Figure 14 is a structural block diagram of another network communication device in an embodiment of the present application.
  • Figure 15 is a structural block diagram of a communication device in an embodiment of the present application.
  • Figure 16 is a structural block diagram of a terminal device in an embodiment of the present application.
  • Figure 17 is a structural block diagram of a network side device in an embodiment of the present application.
  • first, second, etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and that "first" and “second” are distinguished objects It is usually one type, and the number of objects is not limited.
  • the first object can be one or multiple.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the related objects are in an "or” relationship.
  • LTE Long Term Evolution
  • LTE-A Long Term Evolution
  • CDMA Code Division Multiple Access
  • TDMA Time Division Multiple Access
  • FDMA Frequency Division Multiple Access
  • OFDMA Orthogonal Frequency Division Multiple Access
  • SC-FDMA Single-carrier Frequency Division Multiple Access
  • NR New Radio
  • 6G 6th Generation
  • FIG. 1 shows a block diagram of a wireless communication system to which embodiments of the present application are applicable.
  • the wireless communication system includes a terminal 11 and a network side device 12.
  • the terminal 11 can be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), or a notebook computer, a personal digital assistant (Personal Digital Assistant, PDA), a handheld computer, a netbook, or a super mobile personal computer.
  • Tablet Personal Computer Tablet Personal Computer
  • laptop computer laptop computer
  • PDA Personal Digital Assistant
  • PDA Personal Digital Assistant
  • UMPC ultra-mobile personal computer
  • UMPC mobile Internet device
  • Mobile Internet Device MID
  • augmented reality augmented reality, AR
  • VR virtual reality
  • robots wearable devices
  • VUE vehicle-mounted equipment
  • PUE pedestrian terminal
  • smart home home equipment with wireless communication functions, such as refrigerators, TVs, washing machines or furniture, etc.
  • game consoles personal computers (personal computers, PC), teller machines or self-service Terminal devices
  • wearable devices include: smart watches, smart bracelets, smart headphones, smart glasses, smart jewelry (smart bracelets, smart bracelets, smart rings, smart necklaces, smart anklets, smart anklets, etc.), Smart wristbands, smart clothing, etc.
  • the network side equipment 12 may include access network equipment or core network equipment, where the access network equipment 12 may also be called wireless access network equipment, radio access network (Radio Access Network, RAN), radio access network function or Wireless access network unit.
  • the access network device 12 may include a base station, a WLAN access point or a WiFi node, etc.
  • the base station may be called a Node B, an evolved Node B (eNB), an access point, a Base Transceiver Station (BTS), a radio Base station, radio transceiver, Basic Service Set (BSS), Extended Service Set (ESS), Home B-Node, Home Evolved B-Node, Transmitting Receiving Point (TRP) or all
  • eNB evolved Node B
  • BTS Base Transceiver Station
  • BSS Basic Service Set
  • ESS Extended Service Set
  • Home B-Node Home Evolved B-Node
  • TRP Transmitting Receiving Point
  • the core network equipment may include but is not limited to at least one of the following: core network node, core network function, mobility management entity (Mobility Management Entity, MME), access mobility management function (Access and Mobility Management Function, AMF), session management function (Session Management Function, SMF), User Plane Function (UPF), Policy Control Function (PCF), Policy and Charging Rules Function (PCRF), Edge Application Service Discovery function (Edge Application Server Discovery Function, EASDF), Unified Data Management (UDM), Unified Data Repository (UDR), Home Subscriber Server (HSS), centralized network configuration ( Centralized network configuration (CNC), Network Repository Function (NRF), network openness Function (Network Exposure Function, NEF), local NEF (Local NEF, or L-NEF), binding support function (Binding Support Function, BSF), application function (Application Function, AF), etc.
  • MME mobility management entity
  • AMF Access and Mobility Management Function
  • SMF Session Management Function
  • UPF User Plane Function
  • PCF Policy
  • PIN can be a personal home network composed of multiple devices, which can specifically include the following devices:
  • PIN device which can be a terminal (UE) or a non-3GPP device (Non-3GPP Device), can interact with other PIN devices in the PIN, the gateway terminal in the PIN, the management terminal in the PIN, and can also interact with the gateway in the PIN and the 5G core
  • the network interacts with devices other than PIN.
  • the PIN device reaches PEGC through non-3GPP communication technology, such as Bluetooth and WIFI.
  • the gateway in PIN reaches the 5G core network through 3GPP communication technology.
  • the gateway terminal (PEGC, PIN Element with Gataway Capability) in the PIN can be called a PIN element with gateway capabilities. It can be a terminal or device with the ability to connect to the 5G core network for other devices in the PIN, or it can be a terminal or device with the ability to connect to the 5G core network. A terminal or device that provides relay communication services between other devices in the PIN.
  • the management terminal (PEMC, PIN Element with Management Capability) in PIN can be called a PIN element with management capabilities. It can be a terminal or device with the ability to manage other devices.
  • Localized data exchange rules can be configured for communication between devices in the PIN, and then the localized data can be localized within the PIN network, that is, the PIN Device data does not need to go out of the PIN via the server to another PIN device.
  • the first device is connected to the first gateway terminal (gateway terminal in PIN), and the second device (PIN device) is connected to the second gateway terminal (gateway terminal in PIN).
  • the first gateway terminal is connected to the first user plane function in the 5G core network
  • the second gateway terminal is connected to the second user plane function in the 5G core network. Both the first user plane function and the second user plane function are connected outside the 5G core network. server connection.
  • the first device wants to send data to the second device
  • the data only needs to be interacted locally with the PIN.
  • the first device can be a smart speaker
  • the second device can be an air conditioner, a lamp, etc.
  • the smart speaker controls air conditioners, lights and other equipment.
  • the first device needs to send data to the server via the first gateway terminal and the first user plane function, and then the server sends the data to the second device via the second user plane function and the second gateway terminal.
  • the first gateway terminal can send configuration information to the first network function (such as the session management function) in the 5G core network, and the session management function can then configure localized data exchange for the first user plane function. rule.
  • the first network function such as the session management function
  • the session management function can then configure localized data exchange for the first user plane function. rule.
  • the first device After configuring the data exchange rules, the first device sends the data to the first user plane function via the first gateway terminal.
  • the first user plane function no longer sends the data to the server, but sends the data to the second user according to the data exchange rules.
  • the second user plane function then sends data to the second device through the second gateway terminal.
  • FIG. 3 a step flow chart of a network communication method provided by an embodiment of the present application is shown.
  • the method can be applied to the first network function side, and the first network function can be the session management function in the core network.
  • Step 301 A first network function receives first information sent by a first gateway terminal; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a target address.
  • the first gateway terminal may be a gateway in the PIN, which has the ability to connect to the first device.
  • the first device may be a PIN device, such as a smart speaker, and the first device may be connected to the 5G core network through the first gateway terminal.
  • the first gateway terminal can send the first information to the first network function in the 5G core network.
  • the first information can be used to instruct the first network function to configure data exchange rules, which can be packet filtering (Packet Filters) information.
  • the first network function can receive the first information sent by the first gateway terminal.
  • the first information is carried in a PDU session establishment request message or a PDU session modification request message, that is, the first gateway terminal sends a PDU session establishment request message or a PDU session modification request to the first network function.
  • the first information is carried in the PDU session establishment request message or the PDU session modification request message.
  • Step 302 The first network function configures data exchange rules to the first user plane function according to the first configuration information; wherein the data exchange rules are used to indicate whether to allow or prohibit data received from the terminal that matches the first configuration information from being sent to the first user plane function.
  • PDU protocol data unit
  • the second gateway terminal may be a gateway in the PIN, which has the ability to connect to a second device.
  • the second device may be a PIN device, such as an air conditioner or a lamp.
  • the second device may be connected to the 5G core network through the second gateway terminal.
  • the first network function may configure a data exchange rule for the first user plane function connected thereto according to the source address or the destination address in the first configuration information. After configuring the data exchange rule, the first user plane function may first check whether the data is matched with the first configuration information after receiving the data.
  • the data matching the first configuration information may be data carrying the source address or the destination address in the first configuration information.
  • the source address in the first configuration information is the address of the first device
  • the first user plane function receives the data sent by the first device via the first gateway terminal
  • since the source address of the data is the source address in the first configuration information, it can directly allow or prohibit it from being sent to the second gateway terminal or the second user plane function, without sending the data to the server.
  • the first user plane function receives data sent by the first device via the first gateway terminal (the destination address of the data is the address of the second device).
  • the destination address is the destination address in the first configuration information, you can directly allow or prohibit sending it to the second configuration information. Gateway terminal or second user plane function without sending data to the server.
  • the second gateway terminal can further send the data to the second device connected to it. If the data is sent to the second user plane function, the second user plane function can further send it. to the second gateway terminal, which in turn can send it to the second device.
  • sending data received from the terminal that matches the first configuration information to the second user plane function may include:
  • the tunnel identifier is related to the second gateway terminal or to the PDU session.
  • the first user plane function can determine the relevant tunnel identifier based on the second gateway terminal or PDU session, and then can allow or prohibit sending data and tunnel identifiers to the second user plane function.
  • the second user plane function can via the second The gateway terminal sends it to the second device.
  • the tunnel identifier of the tunnel is related to the second gateway terminal or to the PDU session.
  • the first user plane function can determine the relevant tunnel identifier based on the second gateway terminal or PDU session, determine the tunnel corresponding to the tunnel identifier, and then allow or prohibit data from being sent to the second user plane function through the tunnel.
  • the second user The face function can be sent to the second device via the second gateway terminal.
  • the method may further include:
  • the first network function learns at least one of the following based on the source or destination address:
  • PDU session information PDU session information, second gateway terminal information, second user plane function information, and tunnel identification.
  • the first network function can learn the PDU session information based on the source address or the destination address, and can obtain the tunnel identifier related to the PDU session, and can also obtain Information related to the second gateway terminal and the second user plane function, such as address, etc.
  • the first information may also include quality of service (QoS) information, such as QoS parameters, flow maximum bit rate, flow guaranteed bit rate, etc., which may be used to indicate the number of data matching the first configuration information.
  • QoS quality of service
  • the first network function may respond to the first information and send a reply message to the first gateway terminal.
  • the reply message may be a PDU session establishment accept command or a PDU session modification command.
  • the first gateway terminal can send a PDU session establishment request message or a PDU session modification request message carrying the first information to the first network function, and the first network function and the first user plane function perform N4 session establishment or modification, and Data exchange rules may be configured to the first user plane function according to the first information.
  • the first user plane function may return a PDU session establishment acceptance command or a PDU session modification command to the first gateway terminal.
  • the first network function receives the first information sent by the first gateway terminal.
  • the first information may include first configuration information.
  • the first configuration information may include at least one of the source address and the destination address, and then the first network function may According to the first configuration information, data exchange rules are configured to the first user plane function, and the first user plane function can then According to the data exchange rules, data matching the first configuration information is allowed or prohibited to be sent to the second gateway terminal or the second user plane function or sent through a protocol data unit (PDU) session, thereby realizing the configuration of localized data exchange rules,
  • PDU protocol data unit
  • FIG. 5 a step flow chart of a network communication method provided by an embodiment of the present application is shown.
  • the method can be applied to the first network function side, and the first network function can be the session management function in the core network.
  • Step 501 The first network function receives first information sent by the first gateway terminal; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a target address.
  • Step 502 The first network function configures data exchange rules to the first user plane function according to the first configuration information; wherein the data exchange rules are used to indicate whether to allow or prohibit data received from the terminal that matches the first configuration information from being sent to the first user plane function.
  • PDU protocol data unit
  • Step 503 The first network function sends second configuration information to the second gateway terminal according to the first configuration information; wherein the second configuration information is used to indicate at least one of the following:
  • the second gateway terminal in addition to configuring data exchange rules in the 5G core network, can also be configured accordingly on the PIN side (since the first information is sent by the first gateway terminal, its own The corresponding configuration has been performed), the first network function can generate the second configuration information according to the received first configuration information.
  • the second configuration information can carry the same configuration as the first configuration information, and then the second configuration can be The information is sent to the second gateway terminal.
  • the second gateway terminal may be configured to allow or prohibit data received from the network side device that matches the second configuration information from being sent to the second device, that is, the first device passes through the first gateway terminal and the second device.
  • the first user plane function sends the data to the second user plane function
  • the second user plane function sends the data to the second gateway terminal
  • the second gateway terminal sends the data to the second device.
  • data interaction is bidirectional.
  • the second gateway terminal is configured to allow or prohibit data received from the network-side device from being sent to the second device
  • the second gateway terminal can also be configured to allow or prohibit data from the second device.
  • the data received by the device is sent to the network side device, that is, the data sent by the second device is sent to the first user plane function through the second gateway terminal and the second user plane function, and the first user plane function sends the data to the first gateway terminal,
  • the first gateway terminal sends the data to the first device.
  • the first network function can also configure data exchange rules for the second user plane function.
  • the data exchange rules can be used to indicate whether data matching the second configuration information is allowed or prohibited from being sent to the first gateway terminal or the first user plane function, thereby enabling the data sent by the second device to be sent to the first device without passing through the server.
  • the second information may also include QoS information.
  • the QoS information in the second information may carry the same configuration as the QoS information in the first information, such as QoS parameters, flow maximum bit rate, flow guaranteed bit rate, etc.
  • the method also includes:
  • the first network function sends QoS information to the second gateway terminal; wherein the QoS information is used to instruct the second gateway terminal to configure QoS of data matching the second configuration information.
  • the first network function can also send the QoS information to the second gateway terminal. After receiving the QoS information, the second gateway terminal can further configure the QoS of the data matching the second configuration information.
  • the second gateway terminal may respond to the received second configuration information or QoS information (i.e., second information) by sending a reply message to the first network function.
  • the first network function may determine that the configuration is completed, Then a reply message can be sent to the first gateway terminal.
  • the reply message may be a PDU session establishment accept command or a PDU session modification command.
  • the first gateway terminal can send a PDU session establishment request message or a PDU session modification request message carrying the first information to the first network function.
  • the first network function can send the PDU session establishment command or PDU session carrying the first information.
  • the modification command is sent to the second gateway terminal.
  • the second gateway terminal may send a PDU session establishment completion message or a PDU session modification completion message to the first network function, and the first network function may further send a PDU session establishment message to the first gateway terminal. Accepts commands or PDU session modification commands.
  • the method can be applied to the first gateway terminal side.
  • the first gateway terminal can be a gateway in the PIN, which has a connection
  • the capability of the first device the first device can be a PIN device, such as a smart speaker, and the first device can be connected to the 5G core network through the first gateway terminal.
  • Step 701 The first gateway terminal sends first information to the first network function; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a destination address, used to instruct the first network function according to
  • the first configuration information executes configuration data exchange rules; wherein the data exchange rules are used to indicate whether to allow or prohibit data received from the terminal that matches the first configuration information from being sent to the second gateway terminal or the second user plane function, or through a protocol Data unit (PDU) session sent.
  • PDU protocol Data unit
  • the first gateway terminal can send first information to the first network function in the 5G core network.
  • the first information can be used to instruct the first network function to configure data exchange rules, which can be packet filters (Packet Filters) information.
  • the first network function can receive the first information sent by the first gateway terminal.
  • the first information is carried in a PDU session establishment request message or a PDU session modification request message, that is, the first gateway terminal sends a PDU session establishment request message or a PDU session modification request to the first network function.
  • the first information is carried in the PDU session establishment request message or the PDU session modification request message.
  • the first network function may configure data exchange rules for the first user plane function connected thereto according to the source address or the destination address in the first configuration information. After configuring the data exchange rules, after receiving the data, the first user plane function can first check whether it is data matching the configuration information.
  • the data matching the first configuration information may be data carrying the source address or the destination address in the first configuration information.
  • the source address in the first configuration information is the address of the first device
  • the first user plane function receives the data sent by the first device via the first gateway terminal
  • the source address of the data is the address in the first configuration information, source address
  • the first user plane function receives data sent by the first device via the first gateway terminal (the destination address of the data is the address of the second device).
  • the destination address is the same as the destination address in the first configuration information, the function of allowing or prohibiting sending it to the second gateway terminal or the second user plane can be directly executed without sending it to the server.
  • the second gateway terminal can further send the data to the second device connected to it. If the data is allowed to be sent to the second user plane function, the second user plane function can further send the data to the second user plane function. It is sent to the second gateway terminal, which in turn can send it to the second device.
  • the second gateway terminal in addition to configuring data exchange rules in the 5G core network, can also be configured accordingly on the PIN side (since the first information is sent by the first gateway terminal, its own The corresponding configuration has been performed), the first network function can generate the second configuration information according to the received first configuration information.
  • the second configuration information can carry the same configuration as the first configuration information, and then the second configuration can be The information is sent to the second gateway terminal.
  • the second gateway terminal may be configured to allow or prohibit data received from the network side device that matches the second configuration information from being sent to the second device, that is, the first device passes through the first gateway terminal and the second device.
  • the first user plane function sends the data to the second user plane function
  • the second user plane function sends the data to the second gateway terminal
  • the second gateway terminal sends the data to the second device.
  • data interaction is bidirectional.
  • the second gateway terminal can also be configured to allow or prohibit sending data received from the second device to the network side device, that is, the data sent by the second device is sent to the first user plane function via the second gateway terminal and the second user plane function, the first user plane function sends the data to the first gateway terminal, and the first gateway terminal sends the data to the first device.
  • the first network function can also configure data exchange rules to the second user plane function.
  • the data exchange rules can It is used to indicate whether to allow or prohibit sending data matching the second configuration information to the first gateway terminal or the first user plane function, thereby enabling the data sent by the second device to be sent to the first device without going through the server.
  • the first gateway terminal before the first gateway terminal sends the first information to the first network function, it may also include:
  • the first gateway terminal receives the third configuration information sent by the management terminal.
  • the management terminal in the PIN has the ability to manage other PIN devices, the management terminal can generate the third configuration information, and then send the third configuration information to the first gateway terminal.
  • the first gateway terminal may generate first information according to the third configuration information.
  • the first information may include the first configuration information, and the first configuration information may carry the same configuration as the third configuration information. , and then send the first information carrying the first configuration information to the first network function.
  • the QoS information in the first information can also be sent by the management terminal to the first gateway terminal, and then the first gateway terminal sends the QoS information to the first network function.
  • the management terminal and the first gateway terminal communicate with each other. Information is exchanged, that is, configuration information and QoS information are exchanged.
  • the third configuration information may include at least one of the following:
  • the node indicated by the target information of the configuration information is not directly connected to the first gateway terminal;
  • the node indicated by the source information of the configuration information is not directly connected to the first gateway terminal;
  • the node indicated by the source information of the configuration information is directly connected to the first gateway terminal, and the node indicated by the target information is not directly connected to the first gateway terminal;
  • the node indicated by the target information of the configuration information is directly connected to the first gateway terminal, and the node indicated by the source information is not directly connected to the first gateway terminal.
  • the source information may be the source address of the data or the first indication information used to indicate the source address.
  • the source information may be the IP address of the first device
  • the target information may be the target address of the data or used to indicate the destination of the data.
  • the second indication information for example, the destination information may be the IP address of the second device
  • the protocol information is used to indicate the type of communication protocol adopted by the data, such as TCP/IP protocol.
  • the method can be applied to the second gateway terminal side.
  • the second gateway terminal can be a gateway in the PIN, which has a connection The capability of the second device.
  • the second device can be a PIN device, such as an air conditioner and a lamp.
  • the second device can be connected to the 5G core network through the second gateway terminal.
  • Step 901 The second gateway terminal receives second information sent by the first network function; wherein the second information includes second configuration information.
  • the first gateway terminal can send the first information to the first network function in the 5G core network, and the first The information may be used to instruct the first network function to configure data exchange rules, which may be packet filtering (Packet Filters) information, and the first network function may receive the first information sent by the first gateway terminal.
  • data exchange rules which may be packet filtering (Packet Filters) information
  • Packet Filters Packet Filters
  • the second gateway terminal in addition to configuring data exchange rules in the 5G core network, can also be configured accordingly on the PIN side, and the first network function can be configured based on the received first configuration information. , generate second configuration information, the second configuration information may carry the same configuration as the first configuration information, and then the second configuration information may be sent to the second gateway terminal.
  • Step 902 The second gateway terminal performs at least one of the following based on the second configuration information:
  • the second gateway terminal is connected to the second device.
  • data interaction is bidirectional.
  • the second gateway terminal can also be configured to allow or prohibit sending data received from the second device to the network side device, that is, the data sent by the second device is sent to the first user plane function via the second gateway terminal and the second user plane function.
  • the first user plane function can send the data to the first gateway terminal, and the first gateway terminal sends the data to the first device.
  • the first network function can also configure data exchange rules to the second user plane function.
  • the data exchange rules can be used to indicate whether to allow or prohibit data matching the second configuration information from being sent to the first gateway terminal or the first user plane function. , thereby enabling the data sent by the second device to be sent to the first device without going through the server.
  • the second information also includes QoS information.
  • the QoS information in the second information can carry the same configuration as the QoS information in the first information, such as QoS parameters, flow maximum bit rate, flow guaranteed bit rate, etc.
  • the method can also include:
  • the second gateway terminal configures QoS of the data matching the second configuration information based on the QoS information.
  • the first network function may also send the QoS information to the second gateway terminal.
  • the second gateway terminal may further configure the QoS of the data matching the second configuration information.
  • FIG. 10 a step flow chart of a network communication method provided by an embodiment of the present application is shown.
  • the method can be applied to the management terminal side, which can be a terminal or device that manages other devices.
  • Step 1001 The management terminal sends third configuration information to the first gateway terminal; wherein the third configuration information includes at least one of the following:
  • Protocol information the node indicated by the target information of the third configuration information is not directly connected to the first gateway terminal;
  • the node indicated by the source information of the third configuration information is not directly connected to the first gateway terminal;
  • the node indicated by the source information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the target information is not directly connected to the first gateway terminal;
  • the node indicated by the target information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the source information is not directly connected to the first gateway terminal.
  • the source information can be the source address of the data, such as the IP address of the first device
  • the target information can be the target address in the data, such as the IP address of the second device
  • the protocol information can be the type of communication protocol used by the data, such as TCP. /IP protocol.
  • the management terminal can generate the third configuration information, and then can send the third configuration information to the first gateway terminal.
  • the first gateway terminal may generate first information according to the third configuration information.
  • the first information may include the first configuration information, and the first configuration information may carry the same configuration as the third configuration information. , and then send the first information carrying the first configuration information to the first network function.
  • the QoS information in the first information can also be sent by the management terminal to the first gateway terminal, and then the first gateway terminal sends the QoS information to the first network function.
  • the management terminal and the first gateway terminal communicate with each other. Information is exchanged, that is, configuration information and QoS information are exchanged.
  • the first network function may configure data exchange rules for the first user plane function connected thereto according to the source address or the destination address in the first configuration information. After configuring the data exchange rules, after receiving the data, the first user plane function can first check whether it is data matching the configuration information.
  • the data matching the first configuration information may be data carrying the source address or the destination address in the first configuration information.
  • the source address in the first configuration information is the address of the first device
  • the first user plane function source address you can directly perform the function of allowing or prohibiting sending it to the second gateway terminal or the second user plane without sending it to the server.
  • the first user plane function receives data sent by the first device via the first gateway terminal (the destination address of the data is the address of the second device).
  • the destination address is the same as the destination address in the first configuration information, the function of allowing or prohibiting sending it to the second gateway terminal or the second user plane can be directly executed without sending it to the server.
  • the second gateway terminal can further send the data to the second device connected to it. If the data is allowed to be sent to the second user plane function, the second user plane function can further send the data to the second user plane function. It is sent to the second gateway terminal, which in turn can send it to the second device.
  • the second gateway terminal in addition to configuring data exchange rules in the 5G core network, can also be configured accordingly on the PIN side, and the first network function can be configured based on the received first configuration information.
  • Second configuration information is generated, the second configuration information may carry the same configuration as the first configuration information, and then the second configuration information may be sent to the second gateway terminal.
  • the second gateway terminal may be configured to allow or prohibit data received from the network side device that matches the second configuration information from being sent to the second device, that is, the first device passes through the first gateway terminal and the second device.
  • the first user plane function sends the data to the second user plane function
  • the second user plane function can send the data to the second gateway terminal, and the second gateway terminal sends the data to the second device.
  • data interaction is bidirectional.
  • the second gateway terminal can also be configured to allow or prohibit data from the second device.
  • the data received by the device is sent to the network side device, that is, the data sent by the second device is sent to the first user plane function through the second gateway terminal and the second user plane function.
  • the first user plane function can send the data to the first gateway terminal.
  • the first gateway terminal sends the data to the first device.
  • the first network function can also configure data exchange rules to the second user plane function.
  • the data exchange rules can be used to indicate whether to allow or prohibit data matching the second configuration information from being sent to the first gateway terminal or the first user plane function. , thereby enabling the data sent by the second device to be sent to the first device without going through the server.
  • the execution subject may be a network communication device.
  • the method of performing network communication by a network communication device is taken as an example to illustrate the network communication device provided by the embodiment of the present application.
  • FIG. 11 there is shown a structural block diagram of a network communication device 1100 provided by an embodiment of the present application.
  • the device can be applied to the first network function side, and specifically can include the following modules:
  • the receiving first information module 1101 from the first gateway terminal is used to receive the first information sent by the first gateway terminal; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a target address;
  • the data exchange rule configuration module 1102 is configured to configure data exchange rules to the first user plane function according to the first configuration information; wherein the data exchange rules are used to indicate whether to allow or prohibit data to be received from the terminal that matches the first configuration information. Sent to the second gateway terminal or the second user plane function or via a protocol data unit (PDU) session.
  • PDU protocol data unit
  • data received from the terminal that matches the first configuration information is sent to the second user plane function, including:
  • the data is sent to the second user plane function through the tunnel, and the tunnel identifier of the tunnel is related to the second gateway terminal or to the PDU session.
  • the first gateway terminal has the ability to connect to the first device
  • the second gateway terminal has the ability to connect to the second device
  • the device further includes:
  • the PDU session information or tunnel identification obtaining module is used to obtain at least one of the following based on the source address or destination address:
  • PDU session information PDU session information, second gateway terminal information, second user plane function information, and tunnel identification.
  • the first information also includes quality of service (QoS) information.
  • QoS quality of service
  • the device further includes:
  • the module for sending the second configuration information to the second gateway terminal is used to send the second configuration information to the second gateway terminal according to the first configuration information; wherein the second configuration information is used to indicate at least one of the following:
  • the second information also includes Qos information
  • the device further includes:
  • a module for sending QoS information to the second gateway terminal configured to send QoS information to the second gateway terminal; wherein the QoS information is used to instruct the second gateway terminal to configure QoS of data matching the second configuration information.
  • the first network function receives the first information sent by the first gateway terminal.
  • the first information may include first configuration information.
  • the first configuration information may include at least one of the source address and the destination address, and then the first network function may Configure data exchange rules to the first user plane function according to the first configuration information.
  • the first user plane function can then allow or prohibit data received from the terminal that matches the first configuration information from being sent to the second gateway according to the data exchange rules.
  • the terminal or second user plane function or sending through the protocol data unit (PDU) session realizes the configuration of localized data exchange rules, thereby enabling data interaction between devices under different gateways in the PIN without relying on the server, simplifying
  • the data transmission path is shortened and communication efficiency is improved.
  • FIG. 12 there is shown a structural block diagram of a network communication device 1200 provided by an embodiment of the present application.
  • the device can be applied to the first gateway terminal side, and specifically can include the following modules:
  • the module 1201 for sending first information to the network function is used to send the first information to the first network function; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a destination address, used to indicate
  • the first network function executes configuration data exchange rules according to the first configuration information; wherein the data exchange rules are used to indicate whether to allow or prohibit data received from the terminal that matches the first configuration information from being sent to the second gateway terminal or the second user plane. function, or sent through a protocol data unit (PDU) session.
  • PDU protocol data unit
  • the device further includes:
  • the module for receiving the third configuration information from the management terminal is used to receive the third configuration information sent by the management terminal; wherein the third configuration information includes at least one of the following:
  • the node indicated by the target information of the third configuration information is not directly connected to the first gateway terminal;
  • the node indicated by the source information of the third configuration information is not directly connected to the first gateway terminal;
  • the node indicated by the source information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the target information is not directly connected to the first gateway terminal;
  • the node indicated by the target information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the source information is not directly connected to the first gateway terminal.
  • FIG. 13 there is shown a structural block diagram of a network communication device 1300 provided by an embodiment of the present application.
  • the device can be applied to the second gateway terminal side, and specifically can include the following modules:
  • the module 1301 for receiving second information from the network function is configured to receive the second information sent by the first network function; wherein the second information includes second configuration information;
  • the second gateway terminal execution module 1302 is configured to execute at least one of the following based on the second configuration information:
  • the second information also includes QoS information
  • the device further includes:
  • Configuring a QoS module configured to configure QoS of data matching the second configuration information based on the QoS information.
  • FIG. 14 there is shown a structural block diagram of a network communication device 1400 provided by an embodiment of the present application.
  • the device can be applied to the management terminal side, and specifically can include the following modules:
  • the module 1401 for sending third configuration information to the first gateway terminal is used to send third configuration information to the first gateway terminal; wherein the third configuration information includes at least one of the following:
  • the node indicated by the target information of the third configuration information is not directly connected to the first gateway terminal;
  • the node indicated by the source information of the third configuration information is not directly connected to the first gateway terminal;
  • the node indicated by the source information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the target information is not directly connected to the first gateway terminal;
  • the node indicated by the target information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the source information is not directly connected to the first gateway terminal.
  • the network communication device in the embodiment of the present application may be an electronic device, such as an electronic device with an operating system, or may be a component in the electronic device, such as an integrated circuit or chip.
  • the electronic device may be a terminal or other devices other than the terminal.
  • terminals may include but are not limited to the types of terminals 11 listed above, and other devices may be servers, network attached storage (Network Attached Storage, NAS), etc., which are not specifically limited in the embodiment of this application.
  • NAS Network Attached Storage
  • the network communication device provided by the embodiment of the present application can implement each process implemented by the method embodiments of Figures 2 to 10, and achieve the same technical effect. To avoid duplication, the details will not be described here.
  • this embodiment of the present application also provides a communication device 1500, including a processor 1501 and a memory 1502.
  • the memory 1502 stores programs or instructions that can be run on the processor 1501, for example, the When the communication device 1500 is a terminal, when the program or instruction is executed by the processor 1501, each step of the above network communication method embodiment is implemented, and the same technical effect can be achieved.
  • the communication device 1500 is a network-side device, when the program or instruction is executed by the processor 1501, each step of the above-mentioned network communication method embodiment can be implemented, and the same technical effect can be achieved. To avoid duplication, the details will not be described here.
  • This embodiment of the present application also provides a terminal, as shown in Figure 16, which is a schematic diagram of the hardware structure of a terminal that implements the embodiment of the present application.
  • the terminal 1600 includes but is not limited to: a radio frequency unit 1601, a network module 1602, an audio output unit 1603, an input unit 1604, a sensor 1605, a display unit 1606, a user input unit 1607, an interface unit 1608, a memory 1609, a processor 1610, etc. At least some parts.
  • the terminal 1600 may also include a power supply (such as a battery) that supplies power to various components.
  • the power supply may be logically connected to the processor 1610 through a power management system, thereby managing charging, discharging, and power consumption through the power management system. Management and other functions.
  • the terminal structure shown in FIG. 16 does not constitute a limitation on the terminal.
  • the terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here.
  • the input unit 1604 may include a graphics processing unit (Graphics Processing Unit, GPU) 16041 and a microphone 16042.
  • the graphics processor 16041 is responsible for the image capture device (GPU) in the video capture mode or the image capture mode. Process the image data of still pictures or videos obtained by cameras (such as cameras).
  • the display unit 1606 may include a display panel 16061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1607 includes a touch panel 16071 and at least one of other input devices 16072. Touch panel 16071, also known as touch screen.
  • the touch panel 16071 may include two parts: a touch detection device and a touch controller.
  • Other input devices 16072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.
  • the radio frequency unit 1601 after receiving downlink data from the network side device, the radio frequency unit 1601 can transmit it to the processor 1610 for processing; in addition, the radio frequency unit 1601 can send uplink data to the network side device.
  • the radio frequency unit 1601 includes, but is not limited to, an antenna, amplifier, transceiver, coupler, low noise amplifier, duplexer, etc.
  • Memory 1609 may be used to store software programs or instructions as well as various data.
  • the memory 1609 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc.
  • memory 1609 may include volatile memory or nonvolatile memory, or memory 1609 may include both volatile and nonvolatile memory.
  • the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory.
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM Double Data Rate SDRAM
  • DDRSDRAM double data rate synchronous dynamic random access memory
  • Enhanced SDRAM, ESDRAM enhanced synchronous dynamic random access memory
  • Synch link DRAM synchronous link dynamic random access memory
  • SLDRAM direct memory bus
  • the processor 1610 may include one or more processing units; optionally, the processor 1610 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above modem processor may not be integrated into the processor 1610.
  • the network side device 1700 includes: a processor 1701, a network interface 1702, and a memory 1703.
  • the network interface 1702 is, for example, a common public radio interface (CPRI).
  • CPRI common public radio interface
  • the network side device 1700 in this embodiment of the present application also includes: instructions or programs stored in the memory 1703 and executable on the processor 1701.
  • the processor 1701 calls the instructions or programs in the memory 1703 to perform the network communication as described above. method and achieve the same technical effect. To avoid duplication, we will not repeat it here.
  • An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored.
  • a program or instruction is stored.
  • the program or instruction is executed by a processor, each process of the above-mentioned network communication method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the processor is the processor in the terminal in the above embodiment.
  • the readable storage medium may be non-volatile or non-transient.
  • the readable storage medium may include a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
  • the embodiment of the present application also provides a chip.
  • the chip includes a processor and a communication interface.
  • the communication interface is coupled to the processor.
  • the processor is used to run programs or instructions to implement each process of the above network communication method embodiment, and can achieve the same The technical effects will not be repeated here to avoid repetition.
  • chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-chip or system-on-chip, etc.
  • Embodiments of the present application further provide a computer program/program product.
  • the computer program/program product is stored in a storage medium.
  • the computer program/program product is executed by at least one processor to implement each process of the above network communication method embodiment. , and can achieve the same technical effect, so to avoid repetition, they will not be described again here.
  • Embodiments of the present application also provide a communication system.
  • the communication system includes a first network function, a first gateway terminal, and a second gateway terminal.
  • the first network function is used to perform the network communication method as described above (refer to Figure 3, The related description of Figure 5)
  • the first gateway terminal is used to perform the method of network communication as described above (refer to the related description of Figure 7)
  • the second gateway terminal is used to perform the method of network communication as described above (refer to Figure 9 related description).
  • Embodiments of the present application also provide a communication system.
  • the communication system includes a first network function, a first gateway terminal, a second gateway terminal, and a management terminal.
  • the first network function is used to perform the method of network communication as described above (refer to 3 and 5)
  • the first gateway terminal is used to perform the network communication method as described above (refer to the related description of FIG. 7)
  • the second gateway terminal is used to perform the network communication method as described above ( Referring to the related description of Figure 9)
  • the management terminal is used to perform the method of network communication as described above (refer to the related description of Figure 10).
  • the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation.
  • the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to related technologies.
  • the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions to cause a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of this application.

Abstract

The present application belongs to the technical field of communications. Disclosed are a network communication method and apparatus, and a network-side device, a terminal and a medium. The network communication method in the embodiments of the present application comprises: a first network function receiving first information, which is sent by a first gateway terminal, wherein the first information comprises first configuration information; and the first network function configuring a first user plane function with a data exchange rule according to the first configuration information, wherein the data exchange rule is used for indicating that data, which is received from a terminal and matches the first configuration information, is allowed or forbidden to be sent to a second gateway terminal or a second user plane function or sent by means of a protocol data unit (PDU) session. By means of the embodiments of the present invention, a localized data exchange rule is configured, such that data exchange between devices under different gateways in a PIN can be performed without depending on a server, thereby improving the communication efficiency.

Description

一种网络通信的方法、装置、网络侧设备、终端及介质A network communication method, device, network side equipment, terminal and medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求在2022年09月20日提交中国专利局、申请号为202211145671.8、名称为“一种网络通信的方法、装置、网络侧设备、终端及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of a Chinese patent application submitted to the China Patent Office on September 20, 2022, with application number 202211145671.8 and titled "A network communication method, device, network side equipment, terminal and medium", all of which The contents are incorporated into this application by reference.
技术领域Technical field
本申请属于通信技术领域,具体涉及一种网络通信的方法、装置、网络侧设备、终端及介质。This application belongs to the field of communication technology, and specifically relates to a network communication method, device, network side equipment, terminal and medium.
背景技术Background technique
随着IoT(Internet of Things,物联网)技术的发展,在智能家居等场景下使用的IoT设备数量越来越多,用户使用的设备可以组成PIN(Personal IoT Network,个人物联网)。With the development of IoT (Internet of Things) technology, an increasing number of IoT devices are used in scenarios such as smart homes. The devices used by users can form a PIN (Personal IoT Network).
在PIN中,不同网关下的设备之间要进行通信,通常需要依赖于服务器,即某一个设备发送的数据需要从PIN经由核心网到服务器,再从服务器到另一个设备,流程繁琐且通信效率较低。In PIN, communication between devices under different gateways usually requires a server. That is, the data sent by a certain device needs to go from the PIN to the server through the core network, and then from the server to another device. The process is cumbersome and the communication efficiency is high. lower.
发明内容Summary of the invention
本申请实施例提供一种网络通信的方法、装置、网络侧设备、终端及介质,能够解决PIN中通信流程繁琐、效率较低的问题。Embodiments of the present application provide a network communication method, device, network side equipment, terminal and medium, which can solve the problems of cumbersome communication process and low efficiency in PIN.
第一方面,提供了一种网络通信的方法,该方法包括:The first aspect provides a network communication method, which includes:
第一网络功能接收第一网关终端发送的第一信息;其中,第一信息包括第一配置信息,第一配置信息包括源地址和目标地址至少一项;The first network function receives the first information sent by the first gateway terminal; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a target address;
第一网络功能根据第一配置信息,向第一用户面功能配置数据交换规则;其中,数据交换规则用于指示允许或禁止将从终端接收的与第一配置信息匹配的数据发送给第二网关终端或第二用户面功能,或通过协议数据单元(PDU)会话发送。The first network function configures a data exchange rule to the first user plane function based on the first configuration information; wherein the data exchange rule is used to indicate whether or not data received from the terminal and matching the first configuration information is allowed or prohibited from being sent to the second gateway terminal or the second user plane function, or sent through a protocol data unit (PDU) session.
第二方面,提供了一种网络通信的方法,该方法包括:In the second aspect, a network communication method is provided, which method includes:
第一网关终端发送第一信息给第一网络功能;其中,第一信息包括第一配置信息,第一配置信息包括源地址和目标地址至少一项,用于指示第一网络功能根据第一配置信息执行配置数据交换规则;其中,所述数据交换规则用于指示允许或禁止将从终端接收的与所述第一配置信息匹配的数据发送给第二网关终端或第二用户面功能,或通过协议数据单元(PDU)会话发送。The first gateway terminal sends the first information to the first network function; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a destination address, used to instruct the first network function according to the first configuration. Information execution configuration data exchange rules; wherein the data exchange rules are used to indicate whether to allow or prohibit data received from the terminal that matches the first configuration information from being sent to the second gateway terminal or the second user plane function, or through Protocol Data Unit (PDU) sessions are sent.
第三方面,提供了一种网络通信的方法,该方法包括:In the third aspect, a network communication method is provided, which method includes:
第二网关终端接收第一网络功能发送的第二信息;其中,第二信息包含第二配置信 息;The second gateway terminal receives the second information sent by the first network function; wherein the second information includes the second configuration information. interest;
第二网关终端基于第二配置信息执行以下至少一项:The second gateway terminal performs at least one of the following based on the second configuration information:
允许或禁止将从网络侧设备接收的与第二配置信息匹配的数据发送给第二设备;Allow or prohibit data received from the network side device that matches the second configuration information from being sent to the second device;
允许或禁止将从第二设备接收的与第二配置信息匹配的数据发送给网络侧设备。Allow or prohibit data received from the second device that matches the second configuration information from being sent to the network side device.
第四方面,提供了一种网络通信的方法,该方法包括:The fourth aspect provides a network communication method, which method includes:
管理终端发送第三配置信息给第一网关终端;其中,第三配置信息包括以下至少一项:The management terminal sends third configuration information to the first gateway terminal; wherein the third configuration information includes at least one of the following:
源信息;source information;
目标信息;target information;
协议信息;Agreement information;
第三配置信息的目标信息指示的节点与第一网关终端没有直连;The node indicated by the target information of the third configuration information is not directly connected to the first gateway terminal;
第三配置信息的源信息指示的节点与第一网关终端没有直连;The node indicated by the source information of the third configuration information is not directly connected to the first gateway terminal;
第三配置信息的源信息指示的节点与第一网关终端有直连,且目标信息指示的节点与第一网关终端没有直连;The node indicated by the source information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the target information is not directly connected to the first gateway terminal;
第三配置信息的目标信息指示的节点与第一网关终端有直连,且源信息指示的节点与第一网关终端没有直连。The node indicated by the target information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the source information is not directly connected to the first gateway terminal.
第五方面,提供了一种网络通信的装置,该装置包括:In a fifth aspect, a network communication device is provided, which device includes:
从第一网关终端接收第一信息模块,用于接收第一网关终端发送的第一信息;其中,第一信息包括第一配置信息,第一配置信息包括源地址和目标地址至少一项;Receive a first information module from the first gateway terminal, configured to receive the first information sent by the first gateway terminal; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a target address;
数据交换规则配置模块,用于根据第一配置信息址,向第一用户面功能配置数据交换规则;其中,数据交换规则用于指示允许或禁止将从终端接收的与第一配置信息匹配的数据发送给第二网关终端或第二用户面功能或通过协议数据单元(PDU)会话发送。A data exchange rule configuration module, configured to configure data exchange rules to the first user plane function according to the first configuration information address; wherein the data exchange rules are used to indicate whether to allow or prohibit data received from the terminal that matches the first configuration information. Sent to the second gateway terminal or the second user plane function or via a protocol data unit (PDU) session.
第六方面,提供了一种网络通信的装置,该装置包括:In a sixth aspect, a network communication device is provided, which device includes:
向网络功能发送第一信息模块,用于发送第一信息给第一网络功能;其中,第一信息包括第一配置信息,第一配置信息包括源地址和目标地址至少一项,用于指示第一网络功能根据第一配置信息源地址或目标地址执行配置数据交换规则;其中,所述数据交换规则用于指示允许或禁止将从终端接收的与所述第一配置信息匹配的数据发送给第二网关终端或第二用户面功能,或通过协议数据单元(PDU)会话发送。A module for sending the first information to the network function, configured to send the first information to the first network function; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a destination address, used to indicate the third A network function executes configuration data exchange rules based on the first configuration information source address or target address; wherein the data exchange rules are used to indicate whether to allow or prohibit data received from the terminal that matches the first configuration information from being sent to the third Second gateway terminal or second user plane function, or sent through protocol data unit (PDU) session.
第七方面,提供了一种网络通信的装置,该装置包括:In a seventh aspect, a network communication device is provided, which device includes:
从网络功能接收第二信息模块,用于接收第一网络功能发送的第二信息;其中,第二信息包含配置信息;A module for receiving second information from the network function, configured to receive the second information sent by the first network function; wherein the second information includes configuration information;
第二网关终端执行模块,用于基于第二配置信息执行以下至少一项:The second gateway terminal execution module is configured to execute at least one of the following based on the second configuration information:
允许或禁止将从自网络侧设备接收的与第二配置信息匹配的数据发送给第二设备;Allow or prohibit sending data matching the second configuration information received from the network side device to the second device;
允许或禁止将从第二设备接收的与第二配置信息匹配的数据发送给网络侧设备。Allow or prohibit data received from the second device that matches the second configuration information from being sent to the network side device.
第八方面,提供了一种网络通信的装置,该装置包括: In an eighth aspect, a network communication device is provided, the device comprising:
向第一网关终端发送第三配置信息模块,用于发送第三配置信息给第一网关终端;其中,第三配置信息包括以下至少一项:Send the third configuration information module to the first gateway terminal, used to send the third configuration information to the first gateway terminal; wherein the third configuration information includes at least one of the following:
源信息;source information;
目标信息;target information;
协议信息;Agreement information;
第三配置信息的目标信息指示的节点与第一网关终端没有直连;The node indicated by the target information of the third configuration information is not directly connected to the first gateway terminal;
第三配置信息的源信息指示的节点与第一网关终端没有直连;The node indicated by the source information of the third configuration information is not directly connected to the first gateway terminal;
第三配置信息的源信息指示的节点与第一网关终端有直连,且目标信息指示的节点与第一网关终端没有直连;The node indicated by the source information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the target information is not directly connected to the first gateway terminal;
第三配置信息的目标信息指示的节点与第一网关终端有直连,且源信息指示的节点与第一网关终端没有直连。The node indicated by the target information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the source information is not directly connected to the first gateway terminal.
第九方面,提供了一种网络侧设备,该网络侧设备包括处理器和存储器,存储器存储有可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a ninth aspect, a network side device is provided. The network side device includes a processor and a memory. The memory stores programs or instructions that can be run on the processor. When the program or instructions are executed by the processor, the implementation is as described in the first aspect. steps of the method described.
第十方面,提供了一种终端,该终端包括处理器和存储器,存储器存储有可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第二方面或第三方面或第四方面所述的方法的步骤。In a tenth aspect, a terminal is provided. The terminal includes a processor and a memory. The memory stores programs or instructions that can be run on the processor. When the program or instructions are executed by the processor, the implementation of the second aspect or the third aspect or The steps of the method described in the fourth aspect.
第十一方面,提供了一种可读存储介质,可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如第一方面或第二方面或第三方面或第四方面所述的网络通信的方法的步骤。In the eleventh aspect, a readable storage medium is provided, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the network communication method as described in the first aspect, the second aspect, the third aspect, or the fourth aspect are implemented.
第十二方面,提供了一种通信系统,所述通信系统包括第一网络功能、第一网关终端、第二网关终端,所述第一网络功能用于执行如第一方面所述的网络通信的方法,所述第一网关终端用于执行如第二方面所述的网络通信的方法,所述第二网关终端用于执行如第三方面所述的网络通信的方法。In a twelfth aspect, a communication system is provided. The communication system includes a first network function, a first gateway terminal, and a second gateway terminal. The first network function is used to perform network communication as described in the first aspect. The method, the first gateway terminal is used to perform the network communication method as described in the second aspect, and the second gateway terminal is used to perform the network communication method as described in the third aspect.
第十三方面,提供了一种通信系统,所述通信系统包括第一网络功能、第一网关终端、第二网关终端以及管理终端,所述第一网络功能用于执行如第一方面所述的网络通信的方法,所述第一网关终端用于执行如第二方面所述的网络通信的方法,所述第二网关终端用于执行如第三方面所述的网络通信的方法,所述管理终端用于执行如第四方面所述的网络通信的方法。In a thirteenth aspect, a communication system is provided. The communication system includes a first network function, a first gateway terminal, a second gateway terminal and a management terminal. The first network function is used to perform as described in the first aspect. The method of network communication, the first gateway terminal is used to perform the method of network communication as described in the second aspect, the second gateway terminal is used to perform the method of network communication as described in the third aspect, the The management terminal is used to perform the method of network communication as described in the fourth aspect.
在本申请实施例中,第一网络功能通过接收第一网关终端发送的第一信息,第一信息可以包括第一配置信息,第一配置信息可以包括源地址和目标地址至少一项,然后可以根据第一配置信息,向第一用户面功能配置数据交换规则,第一用户面功能进而可以根据数据交换规则,允许或禁止将从终端接收的与第一配置信息匹配的数据发送给第二网关终端或第二用户面功能,或通过协议数据单元(PDU)会话发送,实现了配置本地化的数据交换规则,进而能够在不依赖于服务器的情况下进行PIN中不同网关下设备的 数据交互,简化了数据传输路径,提升了通信效率。In this embodiment of the present application, the first network function receives the first information sent by the first gateway terminal. The first information may include first configuration information. The first configuration information may include at least one of the source address and the destination address, and then the first network function may Configure data exchange rules to the first user plane function according to the first configuration information. The first user plane function can then allow or prohibit data received from the terminal that matches the first configuration information from being sent to the second gateway according to the data exchange rules. The terminal or second user plane function, or sent through the protocol data unit (PDU) session, realizes the configuration of localized data exchange rules, and thus enables the PIN to be connected to devices under different gateways without relying on the server. Data interaction simplifies data transmission paths and improves communication efficiency.
附图说明Description of the drawings
图1是本申请实施例可应用的一种无线通信系统的框图;Figure 1 is a block diagram of a wireless communication system applicable to the embodiment of the present application;
图2是本申请实施例中的一种网络架构的示意图;Figure 2 is a schematic diagram of a network architecture in an embodiment of the present application;
图3是本申请实施例中的一种网络通信的方法的流程图;Figure 3 is a flow chart of a network communication method in an embodiment of the present application;
图4是本申请实施例中的一种PDU会话建立或修改的流程图;Figure 4 is a flow chart of establishing or modifying a PDU session in an embodiment of the present application;
图5是本申请实施例中的另一种网络通信的方法的流程图;Figure 5 is a flow chart of another network communication method in an embodiment of the present application;
图6是本申请实施例中的另一种PDU会话建立或修改的流程图;Figure 6 is a flow chart of another PDU session establishment or modification in the embodiment of the present application;
图7是本申请实施例中的另一种网络通信的方法的流程图;Figure 7 is a flow chart of another network communication method in an embodiment of the present application;
图8是本申请实施例中的一种第一信息交互的流程图;Figure 8 is a flow chart of a first information interaction in an embodiment of the present application;
图9是本申请实施例中的另一种网络通信的方法的流程图;FIG9 is a flow chart of another network communication method in an embodiment of the present application;
图10是本申请实施例中的另一种网络通信的方法的流程图;Figure 10 is a flow chart of another network communication method in an embodiment of the present application;
图11是本申请实施例中的一种网络通信的装置的结构框图;Figure 11 is a structural block diagram of a network communication device in an embodiment of the present application;
图12是本申请实施例中的另一种网络通信的装置的结构框图;Figure 12 is a structural block diagram of another network communication device in an embodiment of the present application;
图13是本申请实施例中的另一种网络通信的装置的结构框图;Figure 13 is a structural block diagram of another network communication device in an embodiment of the present application;
图14是本申请实施例中的另一种网络通信的装置的结构框图;Figure 14 is a structural block diagram of another network communication device in an embodiment of the present application;
图15是本申请实施例中的一种通信设备的结构框图;Figure 15 is a structural block diagram of a communication device in an embodiment of the present application;
图16是本申请实施例中的一种终端设备的结构框图;Figure 16 is a structural block diagram of a terminal device in an embodiment of the present application;
图17是本申请实施例中的一种网络侧设备的结构框图。Figure 17 is a structural block diagram of a network side device in an embodiment of the present application.
具体实施例Specific embodiments
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”所区别的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and that "first" and "second" are distinguished objects It is usually one type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.
值得指出的是,本申请实施例所描述的技术不限于长期演进型(Long Term Evolution,LTE)/LTE的演进(LTE-Advanced,LTE-A)系统,还可用于其他无线通信系统,诸如码分多址(Code Division Multiple Access,CDMA)、时分多址(Time Division Multiple Access,TDMA)、频分多址(Frequency Division Multiple Access,FDMA)、正交频分 多址(Orthogonal Frequency Division Multiple Access,OFDMA)、单载波频分多址(Single-carrier Frequency Division Multiple Access,SC-FDMA)和其他系统。本申请实施例中的术语“系统”和“网络”常被可互换地使用,所描述的技术既可用于以上提及的系统和无线电技术,也可用于其他系统和无线电技术。以下描述出于示例目的描述了新空口(New Radio,NR)系统,并且在以下大部分描述中使用NR术语,但是这些技术也可应用于NR系统应用以外的应用,如第6代(6th Generation,6G)通信系统。It is worth noting that the technology described in the embodiments of the present application is not limited to the Long Term Evolution (LTE)/LTE-Advanced (LTE-A) system, but can also be used in other wireless communication systems, such as Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Frequency Division Multiple Access (FDMA), Orthogonal Frequency Division Multiple Access (OFDMA), and other wireless communication systems. Orthogonal Frequency Division Multiple Access (OFDMA), Single-carrier Frequency Division Multiple Access (SC-FDMA) and other systems. The terms "system" and "network" in the embodiments of the present application are often used interchangeably, and the described techniques can be used for the systems and radio technologies mentioned above as well as for other systems and radio technologies. The following description describes a New Radio (NR) system for example purposes, and NR terminology is used in most of the following descriptions, but these techniques can also be applied to applications other than NR system applications, such as 6th Generation ( 6G ) communication systems.
图1示出本申请实施例可应用的一种无线通信系统的框图。无线通信系统包括终端11和网络侧设备12。其中,终端11可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)或称为笔记本电脑、个人数字助理(Personal Digital Assistant,PDA)、掌上电脑、上网本、超级移动个人计算机(ultra-mobile personal computer,UMPC)、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴式设备(Wearable Device)、车载设备(VUE)、行人终端(PUE)、智能家居(具有无线通信功能的家居设备,如冰箱、电视、洗衣机或者家具等)、游戏机、个人计算机(personal computer,PC)、柜员机或者自助机等终端侧设备,可穿戴式设备包括:智能手表、智能手环、智能耳机、智能眼镜、智能首饰(智能手镯、智能手链、智能戒指、智能项链、智能脚镯、智能脚链等)、智能腕带、智能服装等。需要说明的是,在本申请实施例并不限定终端11的具体类型。网络侧设备12可以包括接入网设备或核心网设备,其中,接入网设备12也可以称为无线接入网设备、无线接入网(Radio Access Network,RAN)、无线接入网功能或无线接入网单元。接入网设备12可以包括基站、WLAN接入点或WiFi节点等,基站可被称为节点B、演进节点B(eNB)、接入点、基收发机站(Base Transceiver Station,BTS)、无线电基站、无线电收发机、基本服务集(Basic Service Set,BSS)、扩展服务集(Extended Service Set,ESS)、家用B节点、家用演进型B节点、发送接收点(Transmitting Receiving Point,TRP)或所述领域中其他某个合适的术语,只要达到相同的技术效果,所述基站不限于特定技术词汇,需要说明的是,在本申请实施例中仅以NR系统中的基站为例进行介绍,并不限定基站的具体类型。Figure 1 shows a block diagram of a wireless communication system to which embodiments of the present application are applicable. The wireless communication system includes a terminal 11 and a network side device 12. Among them, the terminal 11 can be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), or a notebook computer, a personal digital assistant (Personal Digital Assistant, PDA), a handheld computer, a netbook, or a super mobile personal computer. (ultra-mobile personal computer, UMPC), mobile Internet device (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/virtual reality (VR) equipment, robots, wearable devices (Wearable Device) , vehicle-mounted equipment (VUE), pedestrian terminal (PUE), smart home (home equipment with wireless communication functions, such as refrigerators, TVs, washing machines or furniture, etc.), game consoles, personal computers (personal computers, PC), teller machines or self-service Terminal devices such as mobile phones, wearable devices include: smart watches, smart bracelets, smart headphones, smart glasses, smart jewelry (smart bracelets, smart bracelets, smart rings, smart necklaces, smart anklets, smart anklets, etc.), Smart wristbands, smart clothing, etc. It should be noted that the embodiment of the present application does not limit the specific type of the terminal 11. The network side equipment 12 may include access network equipment or core network equipment, where the access network equipment 12 may also be called wireless access network equipment, radio access network (Radio Access Network, RAN), radio access network function or Wireless access network unit. The access network device 12 may include a base station, a WLAN access point or a WiFi node, etc. The base station may be called a Node B, an evolved Node B (eNB), an access point, a Base Transceiver Station (BTS), a radio Base station, radio transceiver, Basic Service Set (BSS), Extended Service Set (ESS), Home B-Node, Home Evolved B-Node, Transmitting Receiving Point (TRP) or all Some other appropriate terminology in the above field, as long as the same technical effect is achieved, the base station is not limited to specific technical terms. It should be noted that in the embodiment of this application, only the base station in the NR system is used as an example for introduction, and The specific type of base station is not limited.
核心网设备可以包含但不限于如下至少一项:核心网节点、核心网功能、移动管理实体(Mobility Management Entity,MME)、接入移动管理功能(Access and Mobility Management Function,AMF)、会话管理功能(Session Management Function,SMF)、用户平面功能(User Plane Function,UPF)、策略控制功能(Policy Control Function,PCF)、策略与计费规则功能单元(Policy and Charging Rules Function,PCRF)、边缘应用服务发现功能(Edge Application Server Discovery Function,EASDF)、统一数据管理(Unified Data Management,UDM),统一数据仓储(Unified Data Repository,UDR)、归属用户服务器(Home Subscriber Server,HSS)、集中式网络配置(Centralized network configuration,CNC)、网络存储功能(Network Repository Function,NRF),网络开放 功能(Network Exposure Function,NEF)、本地NEF(Local NEF,或L-NEF)、绑定支持功能(Binding Support Function,BSF)、应用功能(Application Function,AF)等。需要说明的是,在本申请实施例中仅以NR系统中的核心网设备为例进行介绍,并不限定核心网设备的具体类型。The core network equipment may include but is not limited to at least one of the following: core network node, core network function, mobility management entity (Mobility Management Entity, MME), access mobility management function (Access and Mobility Management Function, AMF), session management function (Session Management Function, SMF), User Plane Function (UPF), Policy Control Function (PCF), Policy and Charging Rules Function (PCRF), Edge Application Service Discovery function (Edge Application Server Discovery Function, EASDF), Unified Data Management (UDM), Unified Data Repository (UDR), Home Subscriber Server (HSS), centralized network configuration ( Centralized network configuration (CNC), Network Repository Function (NRF), network openness Function (Network Exposure Function, NEF), local NEF (Local NEF, or L-NEF), binding support function (Binding Support Function, BSF), application function (Application Function, AF), etc. It should be noted that in the embodiment of this application, only the core network equipment in the NR system is used as an example for introduction, and the specific type of the core network equipment is not limited.
下面结合附图,通过一些实施例及其应用场景对本申请实施例提供的一种网络通信的方法进行详细地说明。A network communication method provided by embodiments of the present application will be described in detail below with reference to the accompanying drawings through some embodiments and application scenarios.
对于PIN,其可以为由多个设备组成个人家庭网络,具体可以包括以下设备:For PIN, it can be a personal home network composed of multiple devices, which can specifically include the following devices:
PIN设备,其可以是终端(UE)或者非3GPP设备(Non-3GPP Device),可以与PIN中其他PIN设备、PIN中网关终端、PIN中管理终端进行交互,也可以通过PIN中网关和5G核心网与PIN之外的设备进行交互,PIN设备到PEGC是通过非3GPP通信技术,如蓝牙、WIFI,PIN中网关到5G核心网是通过3GPP通信技术。PIN device, which can be a terminal (UE) or a non-3GPP device (Non-3GPP Device), can interact with other PIN devices in the PIN, the gateway terminal in the PIN, the management terminal in the PIN, and can also interact with the gateway in the PIN and the 5G core The network interacts with devices other than PIN. The PIN device reaches PEGC through non-3GPP communication technology, such as Bluetooth and WIFI. The gateway in PIN reaches the 5G core network through 3GPP communication technology.
PIN中的网关终端(PEGC,PIN Element with Gataway Capability),可以称为具有网关能力的PIN元素,其可以是具有为PIN中其他设备提供连接到5G核心网能力的终端或设备,也可以是具有在PIN中其他设备之间提供中继通信服务的终端或者设备。The gateway terminal (PEGC, PIN Element with Gataway Capability) in the PIN can be called a PIN element with gateway capabilities. It can be a terminal or device with the ability to connect to the 5G core network for other devices in the PIN, or it can be a terminal or device with the ability to connect to the 5G core network. A terminal or device that provides relay communication services between other devices in the PIN.
PIN中的管理终端(PEMC,PIN Element with Management Capability),可以称为具有管理能力的PIN元素,其可以是具有管理其他设备的能力的的终端或者设备。The management terminal (PEMC, PIN Element with Management Capability) in PIN can be called a PIN element with management capabilities. It can be a terminal or device with the ability to manage other devices.
在PIN场景中,部分本地数据只需要在PIN本地进行交互,则可以针对PIN中设备之间通信配置本地化的数据交换规则,进而可以在PIN网络内对本地化数据进行本地化处理,即PIN设备的数据无需出PIN经由服务器到另一个PIN设备。In the PIN scenario, some local data only needs to be interacted locally in the PIN. Localized data exchange rules can be configured for communication between devices in the PIN, and then the localized data can be localized within the PIN network, that is, the PIN Device data does not need to go out of the PIN via the server to another PIN device.
在PIN中,如图2,第一设备(PIN设备)与第一网关终端(PIN中的网关终端)连接,第二设备(PIN设备)与第二网关终端(PIN中的网关终端)连接,第一网关终端与5G核心网中第一用户面功能连接,第二网关终端与5G核心网中第二用户面功能连接,第一用户面功能和第二用户面功能均与5G核心网之外的服务器连接。In PIN, as shown in Figure 2, the first device (PIN device) is connected to the first gateway terminal (gateway terminal in PIN), and the second device (PIN device) is connected to the second gateway terminal (gateway terminal in PIN). The first gateway terminal is connected to the first user plane function in the 5G core network, and the second gateway terminal is connected to the second user plane function in the 5G core network. Both the first user plane function and the second user plane function are connected outside the 5G core network. server connection.
当第一设备要向第二设备发送数据时,其该数据是只需在PIN本地进行交互,如在智能家居中,第一设备可以为智能音箱,第二设备可以空调、灯等设备,第一设备向第二设备发送数据即可以为智能音箱要对空调、灯等设备进行控制。When the first device wants to send data to the second device, the data only needs to be interacted locally with the PIN. For example, in a smart home, the first device can be a smart speaker, the second device can be an air conditioner, a lamp, etc. When one device sends data to a second device, it means that the smart speaker controls air conditioners, lights and other equipment.
在相关技术的方案中,第一设备需要将数据经由第一网关终端、第一用户面功能发送至服务器,然后由服务器将数据经由第二用户面功能、第二网关终端发送至第二设备。In the solution of the related art, the first device needs to send data to the server via the first gateway terminal and the first user plane function, and then the server sends the data to the second device via the second user plane function and the second gateway terminal.
而在本申请实施例中,第一网关终端可以通过向5G核心网中第一网络功能(如会话管理功能)发送配置信息,会话管理功能进而可以对第一用户面功能配置本地化的数据交换规则。In this embodiment of the present application, the first gateway terminal can send configuration information to the first network function (such as the session management function) in the 5G core network, and the session management function can then configure localized data exchange for the first user plane function. rule.
在配置数据交换规则后,第一设备将数据经由第一网关终端发送至第一用户面功能,第一用户面功能不再将数据发送至服务器,而根据数据交换规则将数据发送至第二用户面功能,第二用户面功能进而通过第二网关终端将数据发送至第二设备。After configuring the data exchange rules, the first device sends the data to the first user plane function via the first gateway terminal. The first user plane function no longer sends the data to the server, but sends the data to the second user according to the data exchange rules. The second user plane function then sends data to the second device through the second gateway terminal.
以下进行进一步说明: Further explanation below:
参考图3,示出了本申请一实施例提供的一种网络通信的方法的步骤流程图,该方法可以应用于第一网络功能侧,第一网络功能可以为核心网中会话管理功能。Referring to FIG. 3 , a step flow chart of a network communication method provided by an embodiment of the present application is shown. The method can be applied to the first network function side, and the first network function can be the session management function in the core network.
具体的,可以包括如下步骤:Specifically, it may include the following steps:
步骤301,第一网络功能接收第一网关终端发送的第一信息;其中,第一信息包括第一配置信息,第一配置信息包括源地址和目标地址至少一项。Step 301: A first network function receives first information sent by a first gateway terminal; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a target address.
其中,第一网关终端可以为PIN中的网关,其具有连接第一设备的能力,第一设备可以为PIN设备,如智能音箱,第一设备可以通过第一网关终端与5G核心网连接。The first gateway terminal may be a gateway in the PIN, which has the ability to connect to the first device. The first device may be a PIN device, such as a smart speaker, and the first device may be connected to the 5G core network through the first gateway terminal.
在实际应用中,第一网关终端可以向5G核心网中第一网络功能发送第一信息,第一信息可以用于指示第一网络功能配置数据交换规则,其可以为包过滤(Packet Filters)信息,第一网络功能可以接收第一网关终端发送的第一信息。In practical applications, the first gateway terminal can send the first information to the first network function in the 5G core network. The first information can be used to instruct the first network function to configure data exchange rules, which can be packet filtering (Packet Filters) information. , the first network function can receive the first information sent by the first gateway terminal.
在本申请一实施例中,第一信息携带于PDU会话建立请求消息或PDU会话修改请求消息中,也即是,第一网关终端向第一网络功能发送PDU会话建立请求消息或PDU会话修改请求消息时,在PDU会话建立请求消息或PDU会话修改请求消息中携带第一信息。In an embodiment of the present application, the first information is carried in a PDU session establishment request message or a PDU session modification request message, that is, the first gateway terminal sends a PDU session establishment request message or a PDU session modification request to the first network function. message, the first information is carried in the PDU session establishment request message or the PDU session modification request message.
步骤302,第一网络功能根据第一配置信息,向第一用户面功能配置数据交换规则;其中,数据交换规则用于指示允许或禁止将从终端接收的与第一配置信息匹配的数据发送给第二网关终端或第二用户面功能,或通过协议数据单元(PDU)会话发送。Step 302: The first network function configures data exchange rules to the first user plane function according to the first configuration information; wherein the data exchange rules are used to indicate whether to allow or prohibit data received from the terminal that matches the first configuration information from being sent to the first user plane function. Second gateway terminal or second user plane function, or sent through a protocol data unit (PDU) session.
其中,第二网关终端可以为PIN中的网关,其具有连接第二设备的能力,第二设备可以为PIN设备,如空调、灯,第二设备可以通过第二网关终端与5G核心网连接。The second gateway terminal may be a gateway in the PIN, which has the ability to connect to a second device. The second device may be a PIN device, such as an air conditioner or a lamp. The second device may be connected to the 5G core network through the second gateway terminal.
在接收到第一信息后,第一网络功能可以根据第一配置信息中的源地址或目标地址,对与其连接的第一用户面功能配置数据交换规则。在配置数据交换规则后,第一用户面功能在接收到数据后,可以先检验其是否为与第一配置信息匹配的数据。After receiving the first information, the first network function may configure a data exchange rule for the first user plane function connected thereto according to the source address or the destination address in the first configuration information. After configuring the data exchange rule, the first user plane function may first check whether the data is matched with the first configuration information after receiving the data.
对于与第一配置信息匹配的数据,可以直接执行允许或禁止将其发送至第二网关终端或第二用户面功能(数据中目的地址相应的第二网关终端或第二用户面功能),而不再发送至服务器,而对于与第一配置信息不匹配的数据,则可以将其发送至服务器,再由服务器作后续处理。For data that matches the first configuration information, you can directly allow or prohibit sending it to the second gateway terminal or the second user plane function (the second gateway terminal or the second user plane function corresponding to the destination address in the data), and Instead of sending it to the server, data that does not match the first configuration information can be sent to the server, and then the server performs subsequent processing.
其中,与第一配置信息匹配的数据可以为携带第一配置信息中源地址或目标地址的数据。The data matching the first configuration information may be data carrying the source address or the destination address in the first configuration information.
如在第一配置信息中源地址为第一设备的地址的情况下,第一用户面功能在接收第一设备经由第一网关终端发送的数据后,由于数据的源地址为第一配置信息中的源地址,则可以直接执行允许或禁止将其发送至第二网关终端或第二用户面功能,而不再将数据发送至服务器。If the source address in the first configuration information is the address of the first device, after the first user plane function receives the data sent by the first device via the first gateway terminal, since the source address of the data is the source address in the first configuration information, it can directly allow or prohibit it from being sent to the second gateway terminal or the second user plane function, without sending the data to the server.
又如在第一配置信息中目的地址为第二设备的地址的情况下,第一用户面功能在接收第一设备经由第一网关终端发送的数据(数据的目的地址为第二设备的地址)后,由于目的地址为第一配置信息中的目的地址,则可以直接执行允许或禁止将其发送至第二 网关终端或第二用户面功能,而不再将数据发送至服务器。For another example, when the destination address in the first configuration information is the address of the second device, the first user plane function receives data sent by the first device via the first gateway terminal (the destination address of the data is the address of the second device). Finally, since the destination address is the destination address in the first configuration information, you can directly allow or prohibit sending it to the second configuration information. Gateway terminal or second user plane function without sending data to the server.
若将数据发送至第二网关终端,则第二网关终端可以进一步将数据发送至与其连接的第二设备,若将数据发送至第二用户面功能,则第二用户面功能可以进一步将其发送至第二网关终端,第二网关终端进而可以将其发送至第二设备。If the data is sent to the second gateway terminal, the second gateway terminal can further send the data to the second device connected to it. If the data is sent to the second user plane function, the second user plane function can further send it. to the second gateway terminal, which in turn can send it to the second device.
在本申请一实施例中,将从终端接收的与第一配置信息匹配的数据发送给第二用户面功能,可以包括:In an embodiment of the present application, sending data received from the terminal that matches the first configuration information to the second user plane function may include:
1、将数据以及隧道标识发送给第二用户面功能,隧道标识与第二网关终端相关或与PDU会话相关。具体的,第一用户面功能可以根据第二网关终端或PDU会话确定相关的隧道标识,进而可以允许或禁止将数据和隧道标识发送给第二用户面功能,第二用户面功能可以经由第二网关终端将其发送至第二设备。1. Send the data and tunnel identifier to the second user plane function. The tunnel identifier is related to the second gateway terminal or to the PDU session. Specifically, the first user plane function can determine the relevant tunnel identifier based on the second gateway terminal or PDU session, and then can allow or prohibit sending data and tunnel identifiers to the second user plane function. The second user plane function can via the second The gateway terminal sends it to the second device.
2、将数据通过隧道发送给第二用户面功能,隧道的隧道标识与第二网关终端相关或与PDU会话相关。具体的,第一用户面功能可以根据第二网关终端或PDU会话确定相关的隧道标识,确定隧道标识相应的隧道,进而可以允许或禁止将数据通过隧道发送给第二用户面功能,第二用户面功能可以经由第二网关终端将其发送至第二设备。2. Send the data to the second user plane function through the tunnel. The tunnel identifier of the tunnel is related to the second gateway terminal or to the PDU session. Specifically, the first user plane function can determine the relevant tunnel identifier based on the second gateway terminal or PDU session, determine the tunnel corresponding to the tunnel identifier, and then allow or prohibit data from being sent to the second user plane function through the tunnel. The second user The face function can be sent to the second device via the second gateway terminal.
在本申请一实施例中,该方法还可以包括:In an embodiment of the present application, the method may further include:
第一网络功能根据源地址或目标地址获知以下至少一项:The first network function learns at least one of the following based on the source or destination address:
PDU会话信息,第二网关终端信息,第二用户面功能信息,隧道标识。PDU session information, second gateway terminal information, second user plane function information, and tunnel identification.
在具体实现中,由于PDU会话是基于源地址或目标地址来建立的,则第一网络功能可以根据源地址或目标地址获知PDU会话信息,并可以获取与PDU会话相关的隧道标识,还可以获取第二网关终端、第二用户面功能的相关信息,如地址等。In a specific implementation, since the PDU session is established based on the source address or the destination address, the first network function can learn the PDU session information based on the source address or the destination address, and can obtain the tunnel identifier related to the PDU session, and can also obtain Information related to the second gateway terminal and the second user plane function, such as address, etc.
在本申请一实施例中,第一信息还可以包括服务质量(QoS)信息,如QoS参数、流最大比特率、流保证比特率等,其可以用于指示与第一配置信息匹配的数据的QoS质量。In an embodiment of the present application, the first information may also include quality of service (QoS) information, such as QoS parameters, flow maximum bit rate, flow guaranteed bit rate, etc., which may be used to indicate the number of data matching the first configuration information. QoS quality.
在本申请一实施例中,在第一网络功能向第一用户面功能配置完成后,第一网络功能可以响应于第一信息,向第一网关终端发送回复消息。In an embodiment of the present application, after the first network function is configured to the first user plane function, the first network function may respond to the first information and send a reply message to the first gateway terminal.
在第一信息携带于PDU会话建立请求消息或PDU会话修改请求消息中的情况下,回复消息可以为PDU会话建立接受命令或PDU会话修改命令。In the case where the first information is carried in the PDU session establishment request message or the PDU session modification request message, the reply message may be a PDU session establishment accept command or a PDU session modification command.
如图4,第一网关终端可以向第一网络功能发送携带第一信息的PDU会话建立请求消息或PDU会话修改请求消息,第一网络功能与第一用户面功能进行N4会话建立或修改,并可以根据第一信息向第一用户面功能配置数据交换规则。在N4会话建立或修改完成后,第一用户面功能可以向第一网关终端返回PDU会话建立接受命令或PDU会话修改命令。As shown in Figure 4, the first gateway terminal can send a PDU session establishment request message or a PDU session modification request message carrying the first information to the first network function, and the first network function and the first user plane function perform N4 session establishment or modification, and Data exchange rules may be configured to the first user plane function according to the first information. After the N4 session is established or modified, the first user plane function may return a PDU session establishment acceptance command or a PDU session modification command to the first gateway terminal.
在本申请实施例中,第一网络功能通过接收第一网关终端发送的第一信息,第一信息可以包括第一配置信息,第一配置信息可以包括源地址和目标地址至少一项,然后可以根据第一配置信息,向第一用户面功能配置数据交换规则,第一用户面功能进而可以 根据数据交换规则,允许或禁止将与第一配置信息匹配的数据发送给第二网关终端或第二用户面功能或通过协议数据单元(PDU)会话发送,实现了配置本地化的数据交换规则,进而能够在不依赖于服务器的情况下进行PIN中不同网关下设备的数据交互,简化了数据传输路径,提升了通信效率。In this embodiment of the present application, the first network function receives the first information sent by the first gateway terminal. The first information may include first configuration information. The first configuration information may include at least one of the source address and the destination address, and then the first network function may According to the first configuration information, data exchange rules are configured to the first user plane function, and the first user plane function can then According to the data exchange rules, data matching the first configuration information is allowed or prohibited to be sent to the second gateway terminal or the second user plane function or sent through a protocol data unit (PDU) session, thereby realizing the configuration of localized data exchange rules, This enables data interaction between devices under different gateways in the PIN without relying on servers, simplifying the data transmission path and improving communication efficiency.
参考图5,示出了本申请一实施例提供的一种网络通信的方法的步骤流程图,该方法可以应用于第一网络功能侧,第一网络功能可以为核心网中会话管理功能。Referring to FIG. 5 , a step flow chart of a network communication method provided by an embodiment of the present application is shown. The method can be applied to the first network function side, and the first network function can be the session management function in the core network.
具体的,可以包括如下步骤:Specifically, it may include the following steps:
步骤501,第一网络功能接收第一网关终端发送的第一信息;其中,第一信息包括第一配置信息,第一配置信息包括源地址和目标地址至少一项。Step 501: The first network function receives first information sent by the first gateway terminal; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a target address.
步骤502,第一网络功能根据第一配置信息,向第一用户面功能配置数据交换规则;其中,数据交换规则用于指示允许或禁止将从终端接收的与第一配置信息匹配的数据发送给第二网关终端或第二用户面功能,或通过协议数据单元(PDU)会话发送。Step 502: The first network function configures data exchange rules to the first user plane function according to the first configuration information; wherein the data exchange rules are used to indicate whether to allow or prohibit data received from the terminal that matches the first configuration information from being sent to the first user plane function. Second gateway terminal or second user plane function, or sent through a protocol data unit (PDU) session.
步骤503,第一网络功能根据第一配置信息,向第二网关终端发送第二配置信息;其中,第二配置信息用于指示以下至少一项:Step 503: The first network function sends second configuration information to the second gateway terminal according to the first configuration information; wherein the second configuration information is used to indicate at least one of the following:
允许或禁止将从网络侧设备接收的与第二配置信息匹配的数据发送给第二设备;Allow or prohibit data received from the network side device that matches the second configuration information from being sent to the second device;
允许或禁止将从第二设备接收的与第二配置信息匹配的数据发送给网络侧设备。Allow or prohibit data received from the second device that matches the second configuration information from being sent to the network side device.
在具体实现中,除了在5G核心网中进行数据交换规则的配置之外,还可以在PIN侧对第二网关终端进行相应的配置(由于第一信息是有第一网关终端发送的,其自身已经进行了相应的配置),则第一网络功能可以根据接收到的第一配置信息,生成第二配置信息,第二配置信息可以携带与第一配置信息相同的配置,然后可以将第二配置信息发送至第二网关终端。In a specific implementation, in addition to configuring data exchange rules in the 5G core network, the second gateway terminal can also be configured accordingly on the PIN side (since the first information is sent by the first gateway terminal, its own The corresponding configuration has been performed), the first network function can generate the second configuration information according to the received first configuration information. The second configuration information can carry the same configuration as the first configuration information, and then the second configuration can be The information is sent to the second gateway terminal.
在接收到第二配置信息后,第二网关终端可以配置允许或禁止将从网络侧设备接收的与第二配置信息匹配的数据发送给第二设备,即第一设备经由第一网关终端、第一用户面功能发送至第二用户面功能后,第二用户面功能将数据发送至第二网关终端,第二网关终端将数据发送给第二设备。After receiving the second configuration information, the second gateway terminal may be configured to allow or prohibit data received from the network side device that matches the second configuration information from being sent to the second device, that is, the first device passes through the first gateway terminal and the second device. After the first user plane function sends the data to the second user plane function, the second user plane function sends the data to the second gateway terminal, and the second gateway terminal sends the data to the second device.
在实际应用中,数据交互是双向的,在配置了第二网关终端允许或禁止将从网络侧设备接收的数据发送至第二设备时,也可以配置第二网关终端允许或禁止将从第二设备接收的数据发送给网络侧设备,即将第二设备发送的数据经由第二网关终端、第二用户面功能发送至第一用户面功能,第一用户面功能将数据发送至第一网关终端,第一网关终端将数据发送给第一设备。In practical applications, data interaction is bidirectional. When the second gateway terminal is configured to allow or prohibit data received from the network-side device from being sent to the second device, the second gateway terminal can also be configured to allow or prohibit data from the second device. The data received by the device is sent to the network side device, that is, the data sent by the second device is sent to the first user plane function through the second gateway terminal and the second user plane function, and the first user plane function sends the data to the first gateway terminal, The first gateway terminal sends the data to the first device.
当然,第一网络功能还可以向第二用户面功能配置数据交换规则,数据交换规则可以用于指示允许或禁止将与第二配置信息匹配的数据发送给第一网关终端或第一用户面功能,进而可以使得第二设备发送的数据能够不经过服务器发送至第一设备。Of course, the first network function can also configure data exchange rules for the second user plane function. The data exchange rules can be used to indicate whether data matching the second configuration information is allowed or prohibited from being sent to the first gateway terminal or the first user plane function, thereby enabling the data sent by the second device to be sent to the first device without passing through the server.
在本申请一实施例中,第二信息还可以包括QoS信息,第二信息中QoS信息可以携带与第一信息中QoS信息相同的配置,如QoS参数、流最大比特率、流保证比特率等, 该方法还包括:In an embodiment of the present application, the second information may also include QoS information. The QoS information in the second information may carry the same configuration as the QoS information in the first information, such as QoS parameters, flow maximum bit rate, flow guaranteed bit rate, etc. , The method also includes:
第一网络功能向第二网关终端发送QoS信息;其中,QoS信息用于指示第二网关终端配置与第二配置信息匹配的数据的QoS。The first network function sends QoS information to the second gateway terminal; wherein the QoS information is used to instruct the second gateway terminal to configure QoS of data matching the second configuration information.
在具体实现中,第一网络功能还可以将QoS信息发送至第二网关终端,第二网关终端在接收到QoS信息后,进而可以配置与第二配置信息匹配的数据的QoS。In a specific implementation, the first network function can also send the QoS information to the second gateway terminal. After receiving the QoS information, the second gateway terminal can further configure the QoS of the data matching the second configuration information.
在本申请一实施例中,在第一网络功能向第二网关终端发送第二配置信息或QoS信息(第二配置信息和QoS信息可以包含在第二信息中同时发送至第二网关终端)后,第二网关终端可以响应于接收到的第二配置信息或QoS信息(即第二信息),向第一网络功能发送回复消息,第一网络功能在接收到回复消息后,可以判定配置完成,进而可以向第一网关终端发送回复消息。In an embodiment of the present application, after the first network function sends the second configuration information or QoS information to the second gateway terminal (the second configuration information and QoS information can be included in the second information and sent to the second gateway terminal at the same time) , the second gateway terminal may respond to the received second configuration information or QoS information (i.e., second information) by sending a reply message to the first network function. After receiving the reply message, the first network function may determine that the configuration is completed, Then a reply message can be sent to the first gateway terminal.
在第一信息携带于PDU会话建立请求消息或PDU会话修改请求消息中的情况下,回复消息可以为PDU会话建立接受命令或PDU会话修改命令。In the case where the first information is carried in the PDU session establishment request message or the PDU session modification request message, the reply message may be a PDU session establishment accept command or a PDU session modification command.
如图6,第一网关终端可以向第一网络功能发送携带第一信息的PDU会话建立请求消息或PDU会话修改请求消息,第一网络功能可以将携带第一信息的PDU会话建立命令或PDU会话修改命令发送至第二网关终端。在PDU会话建立完成或PDU会话修改完成后,第二网关终端可以向第一网络功能发送PDU会话建立完成消息或PDU会修改完成消息,第一网络功能进而可以向第一网关终端发送PDU会话建立接受命令或PDU会话修改命令。As shown in Figure 6, the first gateway terminal can send a PDU session establishment request message or a PDU session modification request message carrying the first information to the first network function. The first network function can send the PDU session establishment command or PDU session carrying the first information. The modification command is sent to the second gateway terminal. After the PDU session establishment or PDU session modification is completed, the second gateway terminal may send a PDU session establishment completion message or a PDU session modification completion message to the first network function, and the first network function may further send a PDU session establishment message to the first gateway terminal. Accepts commands or PDU session modification commands.
参考图7,示出了本申请一实施例提供的一种网络通信的方法的步骤流程图,该方法可以应用于第一网关终端侧,第一网关终端可以为PIN中的网关,其具有连接第一设备的能力,第一设备可以为PIN设备,如智能音箱,第一设备可以通过第一网关终端与5G核心网连接。Referring to Figure 7, a step flow chart of a network communication method provided by an embodiment of the present application is shown. The method can be applied to the first gateway terminal side. The first gateway terminal can be a gateway in the PIN, which has a connection The capability of the first device, the first device can be a PIN device, such as a smart speaker, and the first device can be connected to the 5G core network through the first gateway terminal.
具体的,可以包括如下步骤:Specifically, it may include the following steps:
步骤701,第一网关终端发送第一信息给第一网络功能;其中,第一信息包括第一配置信息,第一配置信息包括源地址和目标地址至少一项,用于指示第一网络功能根据第一配置信息执行配置数据交换规则;其中,数据交换规则用于指示允许或禁止将从终端接收的与第一配置信息匹配的数据发送给第二网关终端或第二用户面功能,或通过协议数据单元(PDU)会话发送。Step 701: The first gateway terminal sends first information to the first network function; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a destination address, used to instruct the first network function according to The first configuration information executes configuration data exchange rules; wherein the data exchange rules are used to indicate whether to allow or prohibit data received from the terminal that matches the first configuration information from being sent to the second gateway terminal or the second user plane function, or through a protocol Data unit (PDU) session sent.
在实际应用中,第一网关终端可以向5G核心网中第一网络功能发送第一信息,第一信息可以用于指示第一网络功能配置数据交换规则,其可以为包过滤(Packet Filters)信息,第一网络功能可以接收第一网关终端发送的第一信息。In actual applications, the first gateway terminal can send first information to the first network function in the 5G core network. The first information can be used to instruct the first network function to configure data exchange rules, which can be packet filters (Packet Filters) information. The first network function can receive the first information sent by the first gateway terminal.
在本申请一实施例中,第一信息携带于PDU会话建立请求消息或PDU会话修改请求消息中,也即是,第一网关终端向第一网络功能发送PDU会话建立请求消息或PDU会话修改请求消息时,在PDU会话建立请求消息或PDU会话修改请求消息中携带第一信息。 In an embodiment of the present application, the first information is carried in a PDU session establishment request message or a PDU session modification request message, that is, the first gateway terminal sends a PDU session establishment request message or a PDU session modification request to the first network function. message, the first information is carried in the PDU session establishment request message or the PDU session modification request message.
在接收到第一信息后,第一网络功能可以根据第一配置信息中的源地址或目标地址,对与其连接的第一用户面功能配置数据交换规则。在配置数据交换规则后,第一用户面功能在接收到数据后,可以先检验其是否为与配置信息匹配的数据。After receiving the first information, the first network function may configure data exchange rules for the first user plane function connected thereto according to the source address or the destination address in the first configuration information. After configuring the data exchange rules, after receiving the data, the first user plane function can first check whether it is data matching the configuration information.
对于与第一配置信息匹配的数据,可以直接执行允许或禁止将其发送至第二网关终端或第二用户面功能(数据中目的地址相应的第二网关终端或第二用户面功能),而不再发送至服务器,而对于与第一配置信息不匹配的数据,则可以将其发送至服务器,再由服务器作后续处理。For data that matches the first configuration information, you can directly allow or prohibit sending it to the second gateway terminal or the second user plane function (the second gateway terminal or the second user plane function corresponding to the destination address in the data), and Instead of sending it to the server, data that does not match the first configuration information can be sent to the server, and then the server performs subsequent processing.
其中,与第一配置信息匹配的数据可以为携带第一配置信息中源地址或目标地址的数据。The data matching the first configuration information may be data carrying the source address or the destination address in the first configuration information.
如在第一配置信息中源地址为第一设备的地址的情况下,第一用户面功能在接收第一设备经由第一网关终端发送的数据后,由于数据的源地址为第一配置信息中的源地址,则可以直接执行允许或禁止将其发送至第二网关终端或第二用户面功能,而不再发送至服务器。For example, in the case where the source address in the first configuration information is the address of the first device, after the first user plane function receives the data sent by the first device via the first gateway terminal, since the source address of the data is the address in the first configuration information, source address, you can directly perform the function of allowing or prohibiting sending it to the second gateway terminal or the second user plane without sending it to the server.
又如在第一配置信息中目的地址为第二设备的地址的情况下,第一用户面功能在接收第一设备经由第一网关终端发送的数据(数据的目的地址为第二设备的地址)后,由于目的地址为与第一配置信息中的目的地址,则可以直接执行允许或禁止将其发送至第二网关终端或第二用户面功能,而不再发送至服务器。For another example, when the destination address in the first configuration information is the address of the second device, the first user plane function receives data sent by the first device via the first gateway terminal (the destination address of the data is the address of the second device). Finally, since the destination address is the same as the destination address in the first configuration information, the function of allowing or prohibiting sending it to the second gateway terminal or the second user plane can be directly executed without sending it to the server.
若允许将数据发送至第二网关终端,则第二网关终端可以进一步将数据发送至与其连接的第二设备,若允许将数据发送至第二用户面功能,则第二用户面功能可以进一步将其发送至第二网关终端,第二网关终端进而可以将其发送至第二设备。If the data is allowed to be sent to the second gateway terminal, the second gateway terminal can further send the data to the second device connected to it. If the data is allowed to be sent to the second user plane function, the second user plane function can further send the data to the second user plane function. It is sent to the second gateway terminal, which in turn can send it to the second device.
在具体实现中,除了在5G核心网中进行数据交换规则的配置之外,还可以在PIN侧对第二网关终端进行相应的配置(由于第一信息是有第一网关终端发送的,其自身已经进行了相应的配置),则第一网络功能可以根据接收到的第一配置信息,生成第二配置信息,第二配置信息可以携带与第一配置信息相同的配置,然后可以将第二配置信息发送至第二网关终端。In a specific implementation, in addition to configuring data exchange rules in the 5G core network, the second gateway terminal can also be configured accordingly on the PIN side (since the first information is sent by the first gateway terminal, its own The corresponding configuration has been performed), the first network function can generate the second configuration information according to the received first configuration information. The second configuration information can carry the same configuration as the first configuration information, and then the second configuration can be The information is sent to the second gateway terminal.
在接收到第二配置信息后,第二网关终端可以配置允许或禁止将从网络侧设备接收的与第二配置信息匹配的数据发送给第二设备,即第一设备经由第一网关终端、第一用户面功能发送至第二用户面功能后,第二用户面功能将数据发送至第二网关终端,第二网关终端将数据发送给第二设备。After receiving the second configuration information, the second gateway terminal may be configured to allow or prohibit data received from the network side device that matches the second configuration information from being sent to the second device, that is, the first device passes through the first gateway terminal and the second device. After the first user plane function sends the data to the second user plane function, the second user plane function sends the data to the second gateway terminal, and the second gateway terminal sends the data to the second device.
在实际应用中,数据交互是双向的,在配置了第二网关终端允许或禁止将从网络侧设备接收的数据发送至第二设备时,也可以配置第二网关终端允许或禁止将从第二设备接收的数据发送给网络侧设备,即将第二设备发送的数据经由第二网关终端、第二用户面功能发送至第一用户面功能,第一用户面功能将数据发送至第一网关终端,第一网关终端将数据发送给第一设备。In actual applications, data interaction is bidirectional. When the second gateway terminal is configured to allow or prohibit sending data received from the network side device to the second device, the second gateway terminal can also be configured to allow or prohibit sending data received from the second device to the network side device, that is, the data sent by the second device is sent to the first user plane function via the second gateway terminal and the second user plane function, the first user plane function sends the data to the first gateway terminal, and the first gateway terminal sends the data to the first device.
当然,第一网络功能还可以向第二用户面功能配置数据交换规则,数据交换规则可 以用于指示允许或禁止将与第二配置信息匹配的数据发送给第一网关终端或第一用户面功能,进而可以使得第二设备发送的数据能够不经过服务器发送至第一设备。Of course, the first network function can also configure data exchange rules to the second user plane function. The data exchange rules can It is used to indicate whether to allow or prohibit sending data matching the second configuration information to the first gateway terminal or the first user plane function, thereby enabling the data sent by the second device to be sent to the first device without going through the server.
在本申请一实施例中,在第一网关终端发送第一信息给第一网络功能之前,还可以包括:In an embodiment of the present application, before the first gateway terminal sends the first information to the first network function, it may also include:
第一网关终端接收管理终端发送的第三配置信息。The first gateway terminal receives the third configuration information sent by the management terminal.
在具体实现中,PIN中的管理终端具有管理其他PIN设备的能力,则管理终端可以生成第三配置信息,进而可以将第三配置信息发送至第一网关终端。In a specific implementation, if the management terminal in the PIN has the ability to manage other PIN devices, the management terminal can generate the third configuration information, and then send the third configuration information to the first gateway terminal.
在接收到第三配置信息后,第一网关终端进而可以根据第三配置信息生成第一信息,第一信息中可以包括第一配置信息,第一配置信息可以与第三配置信息携带相同的配置,进而将携带第一配置信息的第一信息发送给第一网络功能。After receiving the third configuration information, the first gateway terminal may generate first information according to the third configuration information. The first information may include the first configuration information, and the first configuration information may carry the same configuration as the third configuration information. , and then send the first information carrying the first configuration information to the first network function.
当然,第一信息中的QoS信息也可以为管理终端发送至第一网关终端,然后再由第一网关终端将QoS信息发送至第一网络功能,如图8,管理终端与第一网关终端对信息进行交互,即对配置信息、QoS信息进行交互。Of course, the QoS information in the first information can also be sent by the management terminal to the first gateway terminal, and then the first gateway terminal sends the QoS information to the first network function. As shown in Figure 8, the management terminal and the first gateway terminal communicate with each other. Information is exchanged, that is, configuration information and QoS information are exchanged.
在本申请一实施例中,第三配置信息可以包括以下至少一项:In an embodiment of the present application, the third configuration information may include at least one of the following:
源信息;source information;
目标信息;Target information;
协议信息;Agreement information;
配置信息的目标信息指示的节点与第一网关终端没有直连;The node indicated by the target information of the configuration information is not directly connected to the first gateway terminal;
配置信息的源信息指示的节点与第一网关终端没有直连;The node indicated by the source information of the configuration information is not directly connected to the first gateway terminal;
配置信息的源信息指示的节点与第一网关终端有直连,且目标信息指示的节点与第一网关终端没有直连;The node indicated by the source information of the configuration information is directly connected to the first gateway terminal, and the node indicated by the target information is not directly connected to the first gateway terminal;
配置信息的目标信息指示的节点与第一网关终端有直连,且源信息指示的节点与第一网关终端没有直连。The node indicated by the target information of the configuration information is directly connected to the first gateway terminal, and the node indicated by the source information is not directly connected to the first gateway terminal.
其中,源信息可以为数据的源地址或用于指示源地址的第一指示信息,例如,源信息可以是第一设备的IP地址,目标信息可以为数据的目标地址或用于指示数据目的地的第二指示信息,例如,目的信息可以是第二设备的IP地址,协议信息用于指示数据所采用的通信协议类型,如TCP/IP协议。The source information may be the source address of the data or the first indication information used to indicate the source address. For example, the source information may be the IP address of the first device, and the target information may be the target address of the data or used to indicate the destination of the data. The second indication information, for example, the destination information may be the IP address of the second device, and the protocol information is used to indicate the type of communication protocol adopted by the data, such as TCP/IP protocol.
参考图9,示出了本申请一实施例提供的一种网络通信的方法的步骤流程图,该方法可以应用于第二网关终端侧,第二网关终端可以为PIN中的网关,其具有连接第二设备的能力,第二设备可以为PIN设备,如空调、灯,第二设备可以通过第二网关终端与5G核心网连接。Referring to Figure 9, a step flow chart of a network communication method provided by an embodiment of the present application is shown. The method can be applied to the second gateway terminal side. The second gateway terminal can be a gateway in the PIN, which has a connection The capability of the second device. The second device can be a PIN device, such as an air conditioner and a lamp. The second device can be connected to the 5G core network through the second gateway terminal.
具体的,可以包括如下步骤:Specifically, the following steps may be included:
步骤901,第二网关终端接收第一网络功能发送的第二信息;其中,第二信息包含第二配置信息。Step 901: The second gateway terminal receives second information sent by the first network function; wherein the second information includes second configuration information.
在实际应用中,第一网关终端可以向5G核心网中第一网络功能发送第一信息,第一 信息可以用于指示第一网络功能配置数据交换规则,其可以为包过滤(Packet Filters)信息,第一网络功能可以接收第一网关终端发送的第一信息。In practical applications, the first gateway terminal can send the first information to the first network function in the 5G core network, and the first The information may be used to instruct the first network function to configure data exchange rules, which may be packet filtering (Packet Filters) information, and the first network function may receive the first information sent by the first gateway terminal.
在具体实现中,除了在5G核心网中进行数据交换规则的配置之外,还可以在PIN侧,对第二网关终端进行相应的配置,则第一网络功能可以根据接收到的第一配置信息,生成第二配置信息,第二配置信息可以携带与第一配置信息相同的配置,然后可以将第二配置信息发送至第二网关终端。In a specific implementation, in addition to configuring data exchange rules in the 5G core network, the second gateway terminal can also be configured accordingly on the PIN side, and the first network function can be configured based on the received first configuration information. , generate second configuration information, the second configuration information may carry the same configuration as the first configuration information, and then the second configuration information may be sent to the second gateway terminal.
步骤902,第二网关终端基于第二配置信息执行以下至少一项:Step 902: The second gateway terminal performs at least one of the following based on the second configuration information:
允许或禁止将从网络侧设备接收的与第二配置信息匹配的数据发送给第二设备;Allow or prohibit data received from the network side device that matches the second configuration information from being sent to the second device;
允许或禁止将从第二设备接收的与第二配置信息匹配的数据发送给网络侧设备;Allow or prohibit data received from the second device that matches the second configuration information from being sent to the network side device;
其中,第二网关终端与第二设备连接。Wherein, the second gateway terminal is connected to the second device.
在实际应用中,数据交互是双向的,在配置了第二网关终端允许或禁止将从网络侧设备接收的数据发送至第二设备时,也可以配置第二网关终端允许或禁止将从第二设备接收的数据发送给网络侧设备,即将第二设备发送的数据经由第二网关终端、第二用户面功能发送至第一用户面功能,第一用户面功能可以将数据发送至第一网关终端,第一网关终端将数据发送给第一设备。In actual applications, data interaction is bidirectional. When the second gateway terminal is configured to allow or prohibit sending data received from the network side device to the second device, the second gateway terminal can also be configured to allow or prohibit sending data received from the second device to the network side device, that is, the data sent by the second device is sent to the first user plane function via the second gateway terminal and the second user plane function. The first user plane function can send the data to the first gateway terminal, and the first gateway terminal sends the data to the first device.
当然,第一网络功能还可以向第二用户面功能配置数据交换规则,数据交换规则可以用于指示允许或禁止将与第二配置信息匹配的数据发送给第一网关终端或第一用户面功能,进而可以使得第二设备发送的数据能够不经过服务器发送至第一设备。Of course, the first network function can also configure data exchange rules to the second user plane function. The data exchange rules can be used to indicate whether to allow or prohibit data matching the second configuration information from being sent to the first gateway terminal or the first user plane function. , thereby enabling the data sent by the second device to be sent to the first device without going through the server.
在本申请一实施例中,第二信息还包括QoS信息,第二信息中QoS信息可以携带与第一信息中QoS信息相同的配置,如QoS参数、流最大比特率、流保证比特率等,该方法还可以包括:In an embodiment of the present application, the second information also includes QoS information. The QoS information in the second information can carry the same configuration as the QoS information in the first information, such as QoS parameters, flow maximum bit rate, flow guaranteed bit rate, etc., The method can also include:
第二网关终端基于QoS信息配置与第二配置信息匹配的数据的QoS。The second gateway terminal configures QoS of the data matching the second configuration information based on the QoS information.
在具体实现中,第一网络功能还可以将QoS信息发送至第二网关终端,第二网关终端在接收到QoS信息后,进而可以配置与第二配置信息匹配的数据的QoS。In a specific implementation, the first network function may also send the QoS information to the second gateway terminal. After receiving the QoS information, the second gateway terminal may further configure the QoS of the data matching the second configuration information.
参考图10,示出了本申请一实施例提供的一种网络通信的方法的步骤流程图,该方法可以应用于管理终端侧,其可以是具有管理其他设备的终端或者设备。Referring to FIG. 10 , a step flow chart of a network communication method provided by an embodiment of the present application is shown. The method can be applied to the management terminal side, which can be a terminal or device that manages other devices.
具体的,可以包括如下步骤:Specifically, it may include the following steps:
步骤1001,管理终端发送第三配置信息给第一网关终端;其中,第三配置信息包括以下至少一项:Step 1001: The management terminal sends third configuration information to the first gateway terminal; wherein the third configuration information includes at least one of the following:
源信息;source information;
目标信息;target information;
协议信息;第三配置信息的目标信息指示的节点与第一网关终端没有直连;Protocol information; the node indicated by the target information of the third configuration information is not directly connected to the first gateway terminal;
第三配置信息的源信息指示的节点与第一网关终端没有直连;The node indicated by the source information of the third configuration information is not directly connected to the first gateway terminal;
第三配置信息的源信息指示的节点与第一网关终端有直连,且目标信息指示的节点与第一网关终端没有直连; The node indicated by the source information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the target information is not directly connected to the first gateway terminal;
第三配置信息的目标信息指示的节点与第一网关终端有直连,且源信息指示的节点与第一网关终端没有直连。The node indicated by the target information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the source information is not directly connected to the first gateway terminal.
其中,源信息可以为数据的源地址,如第一设备的IP地址,目标信息可以为数据中目标地址,如第二设备的IP地址,协议信息可以为数据所采用的通信协议类型,如TCP/IP协议。The source information can be the source address of the data, such as the IP address of the first device, the target information can be the target address in the data, such as the IP address of the second device, and the protocol information can be the type of communication protocol used by the data, such as TCP. /IP protocol.
在具体实现中,PIN中管理终端具有管理其他PIN设备的能力,则管理终端可以生成第三配置信息,进而可以将第三配置信息发送至第一网关终端。In a specific implementation, if the management terminal in the PIN has the ability to manage other PIN devices, the management terminal can generate the third configuration information, and then can send the third configuration information to the first gateway terminal.
在接收到第三配置信息后,第一网关终端进而可以根据第三配置信息生成第一信息,第一信息中可以包括第一配置信息,第一配置信息可以与第三配置信息携带相同的配置,进而将携带第一配置信息的第一信息发送给第一网络功能。After receiving the third configuration information, the first gateway terminal may generate first information according to the third configuration information. The first information may include the first configuration information, and the first configuration information may carry the same configuration as the third configuration information. , and then send the first information carrying the first configuration information to the first network function.
当然,第一信息中的QoS信息也可以为管理终端发送至第一网关终端,然后再由第一网关终端将QoS信息发送至第一网络功能,如图8,管理终端与第一网关终端对信息进行交互,即对配置信息、QoS信息进行交互。Of course, the QoS information in the first information can also be sent by the management terminal to the first gateway terminal, and then the first gateway terminal sends the QoS information to the first network function. As shown in Figure 8, the management terminal and the first gateway terminal communicate with each other. Information is exchanged, that is, configuration information and QoS information are exchanged.
在接收到第一信息后,第一网络功能可以根据第一配置信息中的源地址或目标地址,对与其连接的第一用户面功能配置数据交换规则。在配置数据交换规则后,第一用户面功能在接收到数据后,可以先检验其是否为与配置信息匹配的数据。After receiving the first information, the first network function may configure data exchange rules for the first user plane function connected thereto according to the source address or the destination address in the first configuration information. After configuring the data exchange rules, after receiving the data, the first user plane function can first check whether it is data matching the configuration information.
对于与第一配置信息匹配的数据,可以直接执行允许或禁止将其发送至第二网关终端或第二用户面功能(数据中目的地址相应的第二网关终端或第二用户面功能),而不再发送至服务器,而对于与第一配置信息不匹配的数据,则可以将其发送至服务器,再由服务器作后续处理。For data that matches the first configuration information, you can directly allow or prohibit sending it to the second gateway terminal or the second user plane function (the second gateway terminal or the second user plane function corresponding to the destination address in the data), and Instead of sending it to the server, data that does not match the first configuration information can be sent to the server, and then the server performs subsequent processing.
其中,与第一配置信息匹配的数据可以为携带第一配置信息中源地址或目标地址的数据。The data matching the first configuration information may be data carrying the source address or the destination address in the first configuration information.
如在第一配置信息中源地址为第一设备的地址的情况下,第一用户面功能在接收第一设备经由第一网关终端发送的数据后,由于数据的源地址为第一配置信息中的源地址,则可以直接执行允许或禁止将其发送至第二网关终端或第二用户面功能,而不再发送至服务器。For example, in the case where the source address in the first configuration information is the address of the first device, after receiving the data sent by the first device via the first gateway terminal, the first user plane function source address, you can directly perform the function of allowing or prohibiting sending it to the second gateway terminal or the second user plane without sending it to the server.
又如在第一配置信息中目的地址为第二设备的地址的情况下,第一用户面功能在接收第一设备经由第一网关终端发送的数据(数据的目的地址为第二设备的地址)后,由于目的地址为与第一配置信息中的目的地址,则可以直接执行允许或禁止将其发送至第二网关终端或第二用户面功能,而不再发送至服务器。For another example, when the destination address in the first configuration information is the address of the second device, the first user plane function receives data sent by the first device via the first gateway terminal (the destination address of the data is the address of the second device). Finally, since the destination address is the same as the destination address in the first configuration information, the function of allowing or prohibiting sending it to the second gateway terminal or the second user plane can be directly executed without sending it to the server.
若允许将数据发送至第二网关终端,则第二网关终端可以进一步将数据发送至与其连接的第二设备,若允许将数据发送至第二用户面功能,则第二用户面功能可以进一步将其发送至第二网关终端,第二网关终端进而可以将其发送至第二设备。If the data is allowed to be sent to the second gateway terminal, the second gateway terminal can further send the data to the second device connected to it. If the data is allowed to be sent to the second user plane function, the second user plane function can further send the data to the second user plane function. It is sent to the second gateway terminal, which in turn can send it to the second device.
在具体实现中,除了在5G核心网中进行数据交换规则的配置之外,还可以在PIN侧,对第二网关终端进行相应的配置,则第一网络功能可以根据接收到的第一配置信息, 生成第二配置信息,第二配置信息可以携带与第一配置信息相同的配置,然后可以将第二配置信息发送至第二网关终端。In a specific implementation, in addition to configuring data exchange rules in the 5G core network, the second gateway terminal can also be configured accordingly on the PIN side, and the first network function can be configured based on the received first configuration information. , Second configuration information is generated, the second configuration information may carry the same configuration as the first configuration information, and then the second configuration information may be sent to the second gateway terminal.
在接收到第二配置信息后,第二网关终端可以配置允许或禁止将从网络侧设备接收的与第二配置信息匹配的数据发送给第二设备,即第一设备经由第一网关终端、第一用户面功能发送至第二用户面功能后,第二用户面功能可以将数据发送至第二网关终端,第二网关终端将数据发送给第二设备。After receiving the second configuration information, the second gateway terminal may be configured to allow or prohibit data received from the network side device that matches the second configuration information from being sent to the second device, that is, the first device passes through the first gateway terminal and the second device. After the first user plane function sends the data to the second user plane function, the second user plane function can send the data to the second gateway terminal, and the second gateway terminal sends the data to the second device.
在实际应用中,数据交互是双向的,在配置了第二网关终端允许或禁止将从网络侧设备接收的数据发送至第二设备时,也可以配置第二网关终端允许或禁止将从第二设备接收的数据发送给网络侧设备,即将第二设备发送的数据经由第二网关终端、第二用户面功能发送至第一用户面功能,第一用户面功能可以将数据发送至第一网关终端,第一网关终端将数据发送给第一设备。In practical applications, data interaction is bidirectional. When the second gateway terminal is configured to allow or prohibit data received from the network-side device from being sent to the second device, the second gateway terminal can also be configured to allow or prohibit data from the second device. The data received by the device is sent to the network side device, that is, the data sent by the second device is sent to the first user plane function through the second gateway terminal and the second user plane function. The first user plane function can send the data to the first gateway terminal. , the first gateway terminal sends the data to the first device.
当然,第一网络功能还可以向第二用户面功能配置数据交换规则,数据交换规则可以用于指示允许或禁止将与第二配置信息匹配的数据发送给第一网关终端或第一用户面功能,进而可以使得第二设备发送的数据能够不经过服务器发送至第一设备。Of course, the first network function can also configure data exchange rules to the second user plane function. The data exchange rules can be used to indicate whether to allow or prohibit data matching the second configuration information from being sent to the first gateway terminal or the first user plane function. , thereby enabling the data sent by the second device to be sent to the first device without going through the server.
本申请实施例提供的网络通信的方法,执行主体可以为网络通信的装置。本申请实施例中以网络通信的装置执行网络通信的方法为例,说明本申请实施例提供的网络通信的装置。For the network communication method provided by the embodiments of the present application, the execution subject may be a network communication device. In the embodiment of the present application, the method of performing network communication by a network communication device is taken as an example to illustrate the network communication device provided by the embodiment of the present application.
参照图11,示出了本申请一实施例提供的一种网络通信的装置1100的结构框图,该装置可以应用于第一网络功能侧,具体可以包括如下模块:Referring to Figure 11, there is shown a structural block diagram of a network communication device 1100 provided by an embodiment of the present application. The device can be applied to the first network function side, and specifically can include the following modules:
从第一网关终端接收第一信息模块1101,用于接收第一网关终端发送的第一信息;其中,第一信息包括第一配置信息,第一配置信息包括源地址和目标地址至少一项;The receiving first information module 1101 from the first gateway terminal is used to receive the first information sent by the first gateway terminal; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a target address;
数据交换规则配置模块1102,用于根据第一配置信息,向第一用户面功能配置数据交换规则;其中,数据交换规则用于指示允许或禁止将从终端接收的与第一配置信息匹配的数据发送给第二网关终端或第二用户面功能或通过协议数据单元(PDU)会话发送。The data exchange rule configuration module 1102 is configured to configure data exchange rules to the first user plane function according to the first configuration information; wherein the data exchange rules are used to indicate whether to allow or prohibit data to be received from the terminal that matches the first configuration information. Sent to the second gateway terminal or the second user plane function or via a protocol data unit (PDU) session.
在本申请一实施例中,将从终端接收的与第一配置信息匹配的数据发送给第二用户面功能,包括:In an embodiment of the present application, data received from the terminal that matches the first configuration information is sent to the second user plane function, including:
将数据以及隧道标识发送给第二用户面功能,隧道标识与第二网关终端相关或与PDU会话相关;Send the data and tunnel identification to the second user plane function, where the tunnel identification is related to the second gateway terminal or to the PDU session;
将数据通过隧道发送给第二用户面功能,隧道的隧道标识与第二网关终端相关或与PDU会话相关。The data is sent to the second user plane function through the tunnel, and the tunnel identifier of the tunnel is related to the second gateway terminal or to the PDU session.
在本申请一实施例中,第一网关终端具有连接第一设备的能力,第二网关终端具有连接第二设备的能力。In an embodiment of the present application, the first gateway terminal has the ability to connect to the first device, and the second gateway terminal has the ability to connect to the second device.
在本申请一实施例中,该装置还包括:In an embodiment of the present application, the device further includes:
PDU会话信息或隧道标识获知模块,用于根据源地址或目标地址获知以下至少一项:The PDU session information or tunnel identification obtaining module is used to obtain at least one of the following based on the source address or destination address:
PDU会话信息,第二网关终端信息,第二用户面功能信息,隧道标识。 PDU session information, second gateway terminal information, second user plane function information, and tunnel identification.
在本申请一实施例中,第一信息还包括服务质量(QoS)信息。In an embodiment of the present application, the first information also includes quality of service (QoS) information.
在本申请一实施例中,该装置还包括:In an embodiment of the present application, the device further includes:
向第二网关终端发送第二配置信息模块,用于根据第一配置信,向第二网关终端发送第二配置信息;其中,第二配置信息用于指示以下至少一项:The module for sending the second configuration information to the second gateway terminal is used to send the second configuration information to the second gateway terminal according to the first configuration information; wherein the second configuration information is used to indicate at least one of the following:
允许或禁止将从网络侧设备接收的与第二配置信息匹配的数据发送给第二设备;Allow or prohibit data received from the network side device that matches the second configuration information from being sent to the second device;
允许或禁止将从第二设备接收的与第二配置信息匹配的数据发送给网络侧设备。Allow or prohibit data received from the second device that matches the second configuration information from being sent to the network side device.
在本申请一实施例中,第二信息还包括Qos信息,该装置还包括:In an embodiment of the present application, the second information also includes Qos information, and the device further includes:
向第二网关终端发送QoS信息模块,用于向第二网关终端发送QoS信息;其中,QoS信息用于指示第二网关终端配置与第二配置信息匹配的数据的QoS。A module for sending QoS information to the second gateway terminal, configured to send QoS information to the second gateway terminal; wherein the QoS information is used to instruct the second gateway terminal to configure QoS of data matching the second configuration information.
在本申请实施例中,第一网络功能通过接收第一网关终端发送的第一信息,第一信息可以包括第一配置信息,第一配置信息可以包括源地址和目标地址至少一项,然后可以根据第一配置信息,向第一用户面功能配置数据交换规则,第一用户面功能进而可以根据数据交换规则,允许或禁止将从终端接收的与第一配置信息匹配的数据发送给第二网关终端或第二用户面功能或通过协议数据单元(PDU)会话发送,实现了配置本地化的数据交换规则,进而能够在不依赖于服务器的情况下进行PIN中不同网关下设备的数据交互,简化了数据传输路径,提升了通信效率。In this embodiment of the present application, the first network function receives the first information sent by the first gateway terminal. The first information may include first configuration information. The first configuration information may include at least one of the source address and the destination address, and then the first network function may Configure data exchange rules to the first user plane function according to the first configuration information. The first user plane function can then allow or prohibit data received from the terminal that matches the first configuration information from being sent to the second gateway according to the data exchange rules. The terminal or second user plane function or sending through the protocol data unit (PDU) session realizes the configuration of localized data exchange rules, thereby enabling data interaction between devices under different gateways in the PIN without relying on the server, simplifying The data transmission path is shortened and communication efficiency is improved.
参照图12,示出了本申请一实施例提供的一种网络通信的装置1200的结构框图,该装置可以应用于第一网关终端侧,具体可以包括如下模块:Referring to Figure 12, there is shown a structural block diagram of a network communication device 1200 provided by an embodiment of the present application. The device can be applied to the first gateway terminal side, and specifically can include the following modules:
向网络功能发送第一信息模块1201,用于发送第一信息给第一网络功能;其中,第一信息包括第一配置信息,第一配置信息包括源地址和目标地址至少一项,用于指示第一网络功能根据第一配置信息执行配置数据交换规则;其中,数据交换规则用于指示允许或禁止将从终端接收的与第一配置信息匹配的数据发送给第二网关终端或第二用户面功能,或通过协议数据单元(PDU)会话发送。The module 1201 for sending first information to the network function is used to send the first information to the first network function; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a destination address, used to indicate The first network function executes configuration data exchange rules according to the first configuration information; wherein the data exchange rules are used to indicate whether to allow or prohibit data received from the terminal that matches the first configuration information from being sent to the second gateway terminal or the second user plane. function, or sent through a protocol data unit (PDU) session.
在本申请一实施例中,该装置还包括:In an embodiment of the present application, the device further includes:
从管理终端接收第三配置信息模块,用于接收管理终端发送的第三配置信息;其中,第三配置信息包括以下至少一项:The module for receiving the third configuration information from the management terminal is used to receive the third configuration information sent by the management terminal; wherein the third configuration information includes at least one of the following:
源信息;source information;
目标信息;target information;
协议信息;Agreement information;
第三配置信息的目标信息指示的节点与第一网关终端没有直连;The node indicated by the target information of the third configuration information is not directly connected to the first gateway terminal;
第三配置信息的源信息指示的节点与第一网关终端没有直连;The node indicated by the source information of the third configuration information is not directly connected to the first gateway terminal;
第三配置信息的源信息指示的节点与第一网关终端有直连,且目标信息指示的节点与第一网关终端没有直连;The node indicated by the source information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the target information is not directly connected to the first gateway terminal;
第三配置信息的目标信息指示的节点与第一网关终端有直连,且源信息指示的节点与第一网关终端没有直连。 The node indicated by the target information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the source information is not directly connected to the first gateway terminal.
参照图13,示出了本申请一实施例提供的一种网络通信的装置1300的结构框图,该装置可以应用于第二网关终端侧,具体可以包括如下模块:Referring to Figure 13, there is shown a structural block diagram of a network communication device 1300 provided by an embodiment of the present application. The device can be applied to the second gateway terminal side, and specifically can include the following modules:
从网络功能接收第二信息模块1301,用于接收第一网络功能发送的第二信息;其中,第二信息包含第二配置信息;The module 1301 for receiving second information from the network function is configured to receive the second information sent by the first network function; wherein the second information includes second configuration information;
第二网关终端执行模块1302,用于基于第二配置信息执行以下至少一项:The second gateway terminal execution module 1302 is configured to execute at least one of the following based on the second configuration information:
允许或禁止将从网络侧设备接收的与第二配置信息匹配的数据发送给第二设备;Allow or prohibit data received from the network side device that matches the second configuration information from being sent to the second device;
允许或禁止将从第二设备接收的与第二配置信息匹配的数据发送给网络侧设备。Allow or prohibit data received from the second device that matches the second configuration information from being sent to the network side device.
在本申请一实施例中,第二信息还包括QoS信息,该装置还包括:In an embodiment of the present application, the second information also includes QoS information, and the device further includes:
配置QoS模块,用于基于QoS信息配置与第二配置信息匹配的数据的QoS。Configuring a QoS module, configured to configure QoS of data matching the second configuration information based on the QoS information.
参照图14,示出了本申请一实施例提供的一种网络通信的装置1400的结构框图,该装置可以应用于管理终端侧,具体可以包括如下模块:Referring to Figure 14, there is shown a structural block diagram of a network communication device 1400 provided by an embodiment of the present application. The device can be applied to the management terminal side, and specifically can include the following modules:
向第一网关终端发送第三配置信息模块1401,用于发送第三配置信息给第一网关终端;其中,第三配置信息包括以下至少一项:The module 1401 for sending third configuration information to the first gateway terminal is used to send third configuration information to the first gateway terminal; wherein the third configuration information includes at least one of the following:
源信息;source information;
目标信息;target information;
协议信息;Agreement information;
第三配置信息的目标信息指示的节点与第一网关终端没有直连;The node indicated by the target information of the third configuration information is not directly connected to the first gateway terminal;
第三配置信息的源信息指示的节点与第一网关终端没有直连;The node indicated by the source information of the third configuration information is not directly connected to the first gateway terminal;
第三配置信息的源信息指示的节点与第一网关终端有直连,且目标信息指示的节点与第一网关终端没有直连;The node indicated by the source information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the target information is not directly connected to the first gateway terminal;
第三配置信息的目标信息指示的节点与第一网关终端有直连,且源信息指示的节点与第一网关终端没有直连。The node indicated by the target information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the source information is not directly connected to the first gateway terminal.
本申请实施例中的网络通信的装置可以是电子设备,例如具有操作系统的电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,终端可以包括但不限于上述所列举的终端11的类型,其他设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)等,本申请实施例不作具体限定。The network communication device in the embodiment of the present application may be an electronic device, such as an electronic device with an operating system, or may be a component in the electronic device, such as an integrated circuit or chip. The electronic device may be a terminal or other devices other than the terminal. For example, terminals may include but are not limited to the types of terminals 11 listed above, and other devices may be servers, network attached storage (Network Attached Storage, NAS), etc., which are not specifically limited in the embodiment of this application.
本申请实施例提供的网络通信的装置能够实现图2至图10的方法实施例实现的各个过程,并达到相同的技术效果,为避免重复,这里不再赘述。The network communication device provided by the embodiment of the present application can implement each process implemented by the method embodiments of Figures 2 to 10, and achieve the same technical effect. To avoid duplication, the details will not be described here.
可选的,如图15所示,本申请实施例还提供一种通信设备1500,包括处理器1501和存储器1502,存储器1502上存储有可在处理器1501上运行的程序或指令,例如,该通信设备1500为终端时,该程序或指令被处理器1501执行时实现上述网络通信的方法实施例的各个步骤,且能达到相同的技术效果。该通信设备1500为网络侧设备时,该程序或指令被处理器1501执行时实现上述网络通信的方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。 Optionally, as shown in Figure 15, this embodiment of the present application also provides a communication device 1500, including a processor 1501 and a memory 1502. The memory 1502 stores programs or instructions that can be run on the processor 1501, for example, the When the communication device 1500 is a terminal, when the program or instruction is executed by the processor 1501, each step of the above network communication method embodiment is implemented, and the same technical effect can be achieved. When the communication device 1500 is a network-side device, when the program or instruction is executed by the processor 1501, each step of the above-mentioned network communication method embodiment can be implemented, and the same technical effect can be achieved. To avoid duplication, the details will not be described here.
本申请实施例还提供一种终端,如图16所示,为实现本申请实施例的一种终端的硬件结构示意图。This embodiment of the present application also provides a terminal, as shown in Figure 16, which is a schematic diagram of the hardware structure of a terminal that implements the embodiment of the present application.
该终端1600包括但不限于:射频单元1601、网络模块1602、音频输出单元1603、输入单元1604、传感器1605、显示单元1606、用户输入单元1607、接口单元1608、存储器1609以及处理器1610等中的至少部分部件。The terminal 1600 includes but is not limited to: a radio frequency unit 1601, a network module 1602, an audio output unit 1603, an input unit 1604, a sensor 1605, a display unit 1606, a user input unit 1607, an interface unit 1608, a memory 1609, a processor 1610, etc. At least some parts.
本领域技术人员可以理解,终端1600还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图16中示出的终端结构并不构成对终端的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the terminal 1600 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 1610 through a power management system, thereby managing charging, discharging, and power consumption through the power management system. Management and other functions. The terminal structure shown in FIG. 16 does not constitute a limitation on the terminal. The terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here.
应理解的是,本申请实施例中,输入单元1604可以包括图形处理单元(Graphics Processing Unit,GPU)16041和麦克风16042,图形处理器16041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1606可包括显示面板16061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板16061。用户输入单元1607包括触控面板16071以及其他输入设备16072中的至少一种。触控面板16071,也称为触摸屏。触控面板16071可包括触摸检测装置和触摸控制器两个部分。其他输入设备16072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in the embodiment of the present application, the input unit 1604 may include a graphics processing unit (Graphics Processing Unit, GPU) 16041 and a microphone 16042. The graphics processor 16041 is responsible for the image capture device (GPU) in the video capture mode or the image capture mode. Process the image data of still pictures or videos obtained by cameras (such as cameras). The display unit 1606 may include a display panel 16061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1607 includes a touch panel 16071 and at least one of other input devices 16072. Touch panel 16071, also known as touch screen. The touch panel 16071 may include two parts: a touch detection device and a touch controller. Other input devices 16072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.
本申请实施例中,射频单元1601接收来自网络侧设备的下行数据后,可以传输给处理器1610进行处理;另外,射频单元1601可以向网络侧设备发送上行数据。通常,射频单元1601包括但不限于天线、放大器、收发信机、耦合器、低噪声放大器、双工器等。In this embodiment of the present application, after receiving downlink data from the network side device, the radio frequency unit 1601 can transmit it to the processor 1610 for processing; in addition, the radio frequency unit 1601 can send uplink data to the network side device. Generally, the radio frequency unit 1601 includes, but is not limited to, an antenna, amplifier, transceiver, coupler, low noise amplifier, duplexer, etc.
存储器1609可用于存储软件程序或指令以及各种数据。存储器1609可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1609可以包括易失性存储器或非易失性存储器,或者,存储器1609可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1609包括但不限于这些和任意其它适合类型的存储器。 Memory 1609 may be used to store software programs or instructions as well as various data. The memory 1609 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc. Additionally, memory 1609 may include volatile memory or nonvolatile memory, or memory 1609 may include both volatile and nonvolatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). Memory 1609 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
处理器1610可包括一个或多个处理单元;可选的,处理器1610集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1610中。The processor 1610 may include one or more processing units; optionally, the processor 1610 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above modem processor may not be integrated into the processor 1610.
本申请实施例还提供了一种网络侧设备。如图17所示,该网络侧设备1700包括:处理器1701、网络接口1702和存储器1703。其中,网络接口1702例如为通用公共无线接口(common public radio interface,CPRI)。An embodiment of the present application also provides a network side device. As shown in Figure 17, the network side device 1700 includes: a processor 1701, a network interface 1702, and a memory 1703. Among them, the network interface 1702 is, for example, a common public radio interface (CPRI).
具体地,本申请实施例的网络侧设备1700还包括:存储在存储器1703上并可在处理器1701上运行的指令或程序,处理器1701调用存储器1703中的指令或程序执行如上所述网络通信的方法,并达到相同的技术效果,为避免重复,故不在此赘述。Specifically, the network side device 1700 in this embodiment of the present application also includes: instructions or programs stored in the memory 1703 and executable on the processor 1701. The processor 1701 calls the instructions or programs in the memory 1703 to perform the network communication as described above. method and achieve the same technical effect. To avoid duplication, we will not repeat it here.
本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述网络通信的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned network communication method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
其中,处理器为上述实施例中的终端中的处理器。可读存储介质,可以是非易失性的,也可以是非瞬态的。可读存储介质,可以包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。The processor is the processor in the terminal in the above embodiment. The readable storage medium may be non-volatile or non-transient. The readable storage medium may include a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
本申请实施例另提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述网络通信的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above network communication method embodiment, and can achieve the same The technical effects will not be repeated here to avoid repetition.
应理解,本申请实施例提到的芯片还可以称为系统级芯片,系统芯片,芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-chip or system-on-chip, etc.
本申请实施例另提供了一种计算机程序/程序产品,计算机程序/程序产品被存储在存储介质中,计算机程序/程序产品被至少一个处理器执行以实现上述网络通信的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a computer program/program product. The computer program/program product is stored in a storage medium. The computer program/program product is executed by at least one processor to implement each process of the above network communication method embodiment. , and can achieve the same technical effect, so to avoid repetition, they will not be described again here.
本申请实施例还提供了一种通信系统,通信系统包括第一网络功能、第一网关终端、第二网关终端,第一网络功能用于执行如上所述的网络通信的方法(参考图3、图5的相关描述),第一网关终端用于执行如上所述的网络通信的方法(参考图7的相关描述),第二网关终端用于执行如上所述的网络通信的方法(参考图9的相关描述)。Embodiments of the present application also provide a communication system. The communication system includes a first network function, a first gateway terminal, and a second gateway terminal. The first network function is used to perform the network communication method as described above (refer to Figure 3, The related description of Figure 5), the first gateway terminal is used to perform the method of network communication as described above (refer to the related description of Figure 7), and the second gateway terminal is used to perform the method of network communication as described above (refer to Figure 9 related description).
本申请实施例还提供了一种通信系统,通信系统包括第一网络功能、第一网关终端、第二网关终端以及管理终端,第一网络功能用于执行如上所述的网络通信的方法(参考图3、图5的相关描述),第一网关终端用于执行如上所述的网络通信的方法(参考图7的相关描述),第二网关终端用于执行如上所述的网络通信的方法(参考图9的相关描述),管理终端用于执行如上所述的网络通信的方法(参考图10的相关描述)。Embodiments of the present application also provide a communication system. The communication system includes a first network function, a first gateway terminal, a second gateway terminal, and a management terminal. The first network function is used to perform the method of network communication as described above (refer to 3 and 5), the first gateway terminal is used to perform the network communication method as described above (refer to the related description of FIG. 7), and the second gateway terminal is used to perform the network communication method as described above ( Referring to the related description of Figure 9), the management terminal is used to perform the method of network communication as described above (refer to the related description of Figure 10).
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素, 而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to related technologies. The computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions to cause a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。 The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.

Claims (22)

  1. 一种网络通信的方法,其中,所述方法包括:A method of network communication, wherein the method includes:
    第一网络功能接收第一网关终端发送的第一信息;其中,所述第一信息包括第一配置信息,所述第一配置信息包括源地址和目标地址至少一项;The first network function receives the first information sent by the first gateway terminal; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a target address;
    所述第一网络功能根据所述第一配置信息,向第一用户面功能配置数据交换规则;其中,所述数据交换规则用于指示允许或禁止将从终端接收的与所述第一配置信息匹配的数据发送给第二网关终端或第二用户面功能,或通过协议数据单元(PDU)会话发送。The first network function configures data exchange rules to the first user plane function according to the first configuration information; wherein the data exchange rules are used to indicate whether to allow or prohibit data received from the terminal that is related to the first configuration information. Matched data is sent to the second gateway terminal or second user plane function, or sent through a protocol data unit (PDU) session.
  2. 根据权利要求1所述的方法,其中,所述将从终端接收的与所述第一配置信息匹配的数据发送给第二用户面功能,包括:The method according to claim 1, wherein the sending the data received from the terminal that matches the first configuration information to the second user plane function includes:
    将所述数据以及隧道标识发送给所述第二用户面功能,所述隧道标识与所述第二网关终端相关或与所述PDU会话相关;Send the data and a tunnel identifier to the second user plane function, where the tunnel identifier is related to the second gateway terminal or to the PDU session;
    将所述数据通过隧道发送给所述第二用户面功能,所述隧道的隧道标识与所述第二网关终端相关或与所述PDU会话相关。The data is sent to the second user plane function through a tunnel, and the tunnel identifier of the tunnel is related to the second gateway terminal or to the PDU session.
  3. 根据权利要求1所述的方法,其中,所述第一网关终端具有连接第一设备的能力,所述第二网关终端具有连接第二设备的能力。The method of claim 1, wherein the first gateway terminal has the ability to connect to a first device, and the second gateway terminal has the ability to connect to a second device.
  4. 根据权利要求1所述的方法,其中,所述第一信息还包括服务质量(QoS)信息。The method of claim 1, wherein the first information further includes quality of service (QoS) information.
  5. 根据权利要求1至4任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further includes:
    所述第一网络功能根据所述第一配置信息,向所述第二网关终端发送第二配置信息;其中,所述第二配置信息用于指示以下至少一项:The first network function sends second configuration information to the second gateway terminal according to the first configuration information; wherein the second configuration information is used to indicate at least one of the following:
    允许或禁止将从网络侧设备接收的与所述第二配置信息匹配的数据发送给第二设备;Allow or prohibit data received from the network side device that matches the second configuration information from being sent to the second device;
    允许或禁止将从第二设备接收的与所述第二配置信息匹配的数据发送给网络侧设备。Allow or prohibit data received from the second device that matches the second configuration information from being sent to the network side device.
  6. 根据权利要求5所述的方法,其中,所述第二信息还包括Qos信息,所述方法还包括:The method according to claim 5, wherein the second information further includes Qos information, and the method further includes:
    所述第一网络功能向所述第二网关终端发送所述QoS信息;其中,所述QoS信息用于指示所述第二网关终端配置与所述第二配置信息匹配的数据的QoS。The first network function sends the QoS information to the second gateway terminal; wherein the QoS information is used to instruct the second gateway terminal to configure QoS of data matching the second configuration information.
  7. 根据权利要求1或2所述的方法,其中,所述方法还包括:The method according to claim 1 or 2, wherein the method further includes:
    所述第一网络功能根据所述源地址或目标地址获知以下至少一项:The first network function learns at least one of the following based on the source address or the destination address:
    所述PDU会话信息,所述第二网关终端信息,所述第二用户面功能信息,隧道标识。The PDU session information, the second gateway terminal information, the second user plane function information, and tunnel identification.
  8. 一种网络通信的方法,其中,所述方法包括:A method of network communication, wherein the method includes:
    第一网关终端发送第一信息给第一网络功能;其中,所述第一信息包括第一配置信息,所述第一配置信息包括源地址和目标地址至少一项,用于指示所述第一网络功能根据所述第一配置信息执行配置数据交换规则;其中,所述数据交换规则用于指示允许或 禁止将从终端接收的与所述第一配置信息匹配的数据发送给第二网关终端或第二用户面功能,或通过协议数据单元(PDU)会话发送。The first gateway terminal sends first information to the first network function; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a destination address, used to indicate the first The network function executes configuration data exchange rules according to the first configuration information; wherein the data exchange rules are used to indicate whether to allow or It is prohibited to send data received from the terminal that matches the first configuration information to the second gateway terminal or the second user plane function, or through a protocol data unit (PDU) session.
  9. 根据权利要求8所述的方法,其中,在所述第一网关终端发送第一信息给第一网络功能之前,所述方法还包括:The method according to claim 8, wherein before the first gateway terminal sends the first information to the first network function, the method further includes:
    所述第一网关接收管理终端发送的第三配置信息;其中,所述第三配置信息包括以下至少一项:The first gateway receives third configuration information sent by the management terminal; wherein the third configuration information includes at least one of the following:
    源信息;Source information;
    目标信息;Target information;
    协议信息;Agreement information;
    所述第三配置信息的目标信息指示的节点与所述第一网关终端没有直连;The node indicated by the target information of the third configuration information is not directly connected to the first gateway terminal;
    所述第三配置信息的源信息指示的节点与所述第一网关终端没有直连;The node indicated by the source information of the third configuration information is not directly connected to the first gateway terminal;
    所述第三配置信息的源信息指示的节点与所述第一网关终端有直连,且目标信息指示的节点与所述第一网关终端没有直连;The node indicated by the source information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the target information is not directly connected to the first gateway terminal;
    所述第三配置信息的目标信息指示的节点与所述第一网关终端有直连,且源信息指示的节点与所述第一网关终端没有直连。The node indicated by the target information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the source information is not directly connected to the first gateway terminal.
  10. 一种网络通信的方法,其中,所述方法包括:A method of network communication, wherein the method includes:
    第二网关终端接收第一网络功能发送的第二信息;其中,所述第二信息包含第二配置信息;The second gateway terminal receives the second information sent by the first network function; wherein the second information includes second configuration information;
    所述第二网关终端基于所述第二配置信息执行以下至少一项:The second gateway terminal performs at least one of the following based on the second configuration information:
    允许或禁止将从网络侧设备接收的与所述第二配置信息匹配的数据发送给第二设备;Allow or prohibit sending data matching the second configuration information received from the network side device to the second device;
    允许或禁止将从第二设备接收的与所述第二配置信息匹配的数据发送给网络侧设备。Allow or prohibit data received from the second device that matches the second configuration information from being sent to the network side device.
  11. 根据权利要求10所述的方法,其中,所述第二信息还包括QoS信息,所述方法还包括:The method according to claim 10, wherein the second information further includes QoS information, and the method further includes:
    所述第二网关终端基于所述QoS信息配置与所述第二配置信息匹配的数据的QoS。The second gateway terminal configures QoS of data matching the second configuration information based on the QoS information.
  12. 一种网络通信的方法,其中,所述方法包括:A method of network communication, wherein the method includes:
    管理终端发送第三配置信息给第一网关终端;其中,所述第三配置信息包括以下至少一项:The management terminal sends third configuration information to the first gateway terminal; wherein the third configuration information includes at least one of the following:
    源信息;source information;
    目标信息;Target information;
    协议信息;Agreement information;
    所述第三配置信息的目标信息指示的节点与所述第一网关终端没有直连;The node indicated by the target information of the third configuration information is not directly connected to the first gateway terminal;
    所述第三配置信息的源信息指示的节点与所述第一网关终端没有直连;The node indicated by the source information of the third configuration information is not directly connected to the first gateway terminal;
    所述第三配置信息的源信息指示的节点与所述第一网关终端有直连,且目标信息指 示的节点与所述第一网关终端没有直连;The node indicated by the source information of the third configuration information is directly connected to the first gateway terminal, and the target information indicates The node shown is not directly connected to the first gateway terminal;
    所述第三配置信息的目标信息指示的节点与所述第一网关终端有直连,且源信息指示的节点与所述第一网关终端没有直连。The node indicated by the target information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the source information is not directly connected to the first gateway terminal.
  13. 一种网络通信的装置,其中,所述装置包括:A network communication device, wherein the device includes:
    从第一网关终端接收第一信息模块,用于接收第一网关终端发送的第一信息;其中,所述第一信息包括第一配置信息,所述第一配置信息包括源地址和目标地址至少一项;Receive a first information module from the first gateway terminal, configured to receive the first information sent by the first gateway terminal; wherein the first information includes first configuration information, and the first configuration information includes a source address and a destination address at least one item;
    数据交换规则配置模块,用于根据所述第一配置信息,向第一用户面功能配置数据交换规则;其中,所述数据交换规则用于指示允许或禁止将从终端接收的与所述第一配置信息匹配的数据发送给第二网关终端或第二用户面功能,或通过协议数据单元(PDU)会话发送。a data exchange rule configuration module, configured to configure data exchange rules to the first user plane function according to the first configuration information; wherein the data exchange rules are used to indicate whether to allow or prohibit data received from the terminal related to the first user plane function; Data matching the configuration information is sent to the second gateway terminal or the second user plane function, or sent through a protocol data unit (PDU) session.
  14. 一种网络通信的装置,其中,所述装置包括:A network communication device, wherein the device includes:
    向网络功能发送第一信息模块,用于发送第一信息给第一网络功能;其中,所述第一信息包括第一配置信息,所述第一配置信息包括源地址和目标地址至少一项,用于指示所述第一网络功能根据所述第一配置信息执行配置数据交换规则;其中,所述数据交换规则用于指示允许或禁止将从终端接收的与所述第一配置信息匹配的数据发送给第二网关终端或第二用户面功能,或通过协议数据单元(PDU)会话发送。A module for sending the first information to the network function, configured to send the first information to the first network function; wherein the first information includes first configuration information, and the first configuration information includes at least one of a source address and a destination address, Used to instruct the first network function to execute configuration data exchange rules according to the first configuration information; wherein the data exchange rules are used to indicate whether to allow or prohibit data matching the first configuration information to be received from the terminal. Sent to the second gateway terminal or second user plane function, or via a protocol data unit (PDU) session.
  15. 一种网络通信的装置,其中,所述装置包括:A network communication device, wherein the device includes:
    从网络功能接收第二信息模块,用于接收第一网络功能发送的第二信息;其中,所述第二信息包含配置信息;A module for receiving second information from the network function, configured to receive second information sent by the first network function; wherein the second information includes configuration information;
    第二网关终端执行模块,用于基于所述第二配置信息执行以下至少一项:The second gateway terminal execution module is configured to execute at least one of the following based on the second configuration information:
    允许或禁止将从网络侧设备接收的与所述第二配置信息匹配的数据发送给第二设备;Allow or prohibit data received from the network side device that matches the second configuration information from being sent to the second device;
    允许或禁止将从第二设备接收的与所述第二配置信息匹配的数据发送给网络侧设备。Allow or prohibit data received from the second device that matches the second configuration information from being sent to the network side device.
  16. 一种网络通信的装置,其中,所述装置包括:A network communication device, wherein the device includes:
    向第一网关终端发送第三配置信息模块,用于发送第三配置信息给第一网关终端;其中,所述第三配置信息包括以下至少一项:Send the third configuration information module to the first gateway terminal, used to send the third configuration information to the first gateway terminal; wherein the third configuration information includes at least one of the following:
    源信息;source information;
    目标信息;target information;
    协议信息;Agreement information;
    所述第三配置信息的目标信息指示的节点与所述第一网关终端没有直连;The node indicated by the target information of the third configuration information is not directly connected to the first gateway terminal;
    所述第三配置信息的源信息指示的节点与所述第一网关终端没有直连;The node indicated by the source information of the third configuration information is not directly connected to the first gateway terminal;
    所述第三配置信息的源信息指示的节点与所述第一网关终端有直连,且目标信息指示的节点与所述第一网关终端没有直连;The node indicated by the source information of the third configuration information is directly connected to the first gateway terminal, and the node indicated by the target information is not directly connected to the first gateway terminal;
    所述第三配置信息的目标信息指示的节点与所述第一网关终端有直连,且源信息指 示的节点与所述第一网关终端没有直连。The node indicated by the target information of the third configuration information is directly connected to the first gateway terminal, and the source information indicates The node shown is not directly connected to the first gateway terminal.
  17. 一种网络侧设备,其中,包括处理器和存储器,所述存储器存储有可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至7任一项所述的网络通信的方法的步骤。A network side device, which includes a processor and a memory. The memory stores programs or instructions that can be run on the processor. When the program or instructions are executed by the processor, the implementation of claims 1 to 1 is implemented. 7. Steps of the network communication method described in any one of 7.
  18. 一种终端,其中,包括处理器和存储器,所述存储器存储有可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求8至12任一项所述的网络通信的方法的步骤。A terminal, which includes a processor and a memory. The memory stores programs or instructions that can be run on the processor. When the programs or instructions are executed by the processor, any of claims 8 to 12 can be implemented. One step of the network communication method.
  19. 一种可读存储介质,其中,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-12任一项所述的网络通信的方法的步骤。A readable storage medium, wherein the readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the network communication method according to any one of claims 1 to 12 are implemented.
  20. 一种芯片,其中,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至12任一项所述的网络通信方法的步骤。A chip, wherein the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method described in any one of claims 1 to 12 Steps of network communication method.
  21. 一种计算机程序产品,其中,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1至12之中任一项所述的网络通信方法的步骤。A computer program product, wherein the program product is stored in a non-volatile storage medium, and the program product is executed by at least one processor to implement the network as claimed in any one of claims 1 to 12 Steps of communication method.
  22. 一种电子设备,其中,所述电子设备被配置成用于执行如权利要求1至12之中任一项所述的网络通信方法。 An electronic device, wherein the electronic device is configured to perform the network communication method according to any one of claims 1 to 12.
PCT/CN2023/118723 2022-09-20 2023-09-14 Network communication method and apparatus, and network-side device, terminal and medium WO2024061091A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211145671.8 2022-09-20
CN202211145671.8A CN117793951A (en) 2022-09-20 2022-09-20 Network communication method, device, network side equipment, terminal and medium

Publications (1)

Publication Number Publication Date
WO2024061091A1 true WO2024061091A1 (en) 2024-03-28

Family

ID=90394980

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/118723 WO2024061091A1 (en) 2022-09-20 2023-09-14 Network communication method and apparatus, and network-side device, terminal and medium

Country Status (2)

Country Link
CN (1) CN117793951A (en)
WO (1) WO2024061091A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107113892A (en) * 2015-04-07 2017-08-29 华为技术有限公司 A kind of method and device of gateway device automatic network-building
US20180248792A1 (en) * 2015-10-30 2018-08-30 Huawei Technologies Co., Ltd. Gateway configuration method and gateway device
CN109587187A (en) * 2017-09-28 2019-04-05 华为技术有限公司 For calling the methods, devices and systems of network function service
US10951427B2 (en) * 2017-10-09 2021-03-16 Comcast Cable Communications, Llc Ethernet type packet data unit session communications
WO2022171285A1 (en) * 2021-02-11 2022-08-18 Volvo Construction Equipment Ab A gateway device with a routing function

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107113892A (en) * 2015-04-07 2017-08-29 华为技术有限公司 A kind of method and device of gateway device automatic network-building
US20180248792A1 (en) * 2015-10-30 2018-08-30 Huawei Technologies Co., Ltd. Gateway configuration method and gateway device
CN109587187A (en) * 2017-09-28 2019-04-05 华为技术有限公司 For calling the methods, devices and systems of network function service
US10951427B2 (en) * 2017-10-09 2021-03-16 Comcast Cable Communications, Llc Ethernet type packet data unit session communications
WO2022171285A1 (en) * 2021-02-11 2022-08-18 Volvo Construction Equipment Ab A gateway device with a routing function

Also Published As

Publication number Publication date
CN117793951A (en) 2024-03-29

Similar Documents

Publication Publication Date Title
WO2023116786A1 (en) Registration method and apparatus of internet of things device, communication device, core network device, storage medium and system
WO2024061091A1 (en) Network communication method and apparatus, and network-side device, terminal and medium
WO2023143414A1 (en) Data transmission method and apparatus, configuration method and apparatus, and terminal and network-side device
WO2023179595A1 (en) Session channel establishment method and apparatus for non-3gpp device, and device
WO2023143453A1 (en) Direct-connectivity air interface configuration method, and terminal and network-side device
WO2023143436A1 (en) Data forwarding method and apparatus, and terminal device and network device
WO2024067331A1 (en) Device switching method in personal internet of things network, and communication method and device
WO2023143450A1 (en) Method for configuring data processing rule, and terminal and network-side device
WO2023143423A1 (en) Information acquisition, storage and reporting method and device, terminal, and network function
WO2023143418A1 (en) Device authentication method and apparatus, and terminal and network function
WO2024061144A1 (en) Method and apparatus for configuring network routing, and network-side device and terminal
WO2024027578A1 (en) Traffic routing method and apparatus, and device
WO2024017191A1 (en) Interaction method and apparatus, and device and storage medium
WO2024022182A1 (en) Information query method and apparatus, terminal, and network side device
WO2024022397A1 (en) Network selection method and terminal
WO2024022210A1 (en) Pegc registration methods, apparatus, and communication device
WO2023165480A1 (en) Data transmission method and apparatus, and terminal, device and storage medium
WO2023185877A1 (en) Routing processing method, terminal and network side device
WO2023109894A1 (en) Rsc determination method, terminal, and network side device
WO2024022161A1 (en) Pin device registration method and apparatus, and communication device
WO2023217089A1 (en) Data transmission method and apparatus, device, system and storage medium
WO2023020465A1 (en) Address conversion control method and apparatus, and terminal and network element
WO2024032499A1 (en) Dns query method and communication device
WO2024001954A1 (en) Identifier configuration methods and apparatus, terminal and storage medium
WO2024027618A1 (en) Gap configuration method and apparatus, network side device and storage medium