WO2023071318A1 - Loop detection method and apparatus - Google Patents

Loop detection method and apparatus Download PDF

Info

Publication number
WO2023071318A1
WO2023071318A1 PCT/CN2022/107088 CN2022107088W WO2023071318A1 WO 2023071318 A1 WO2023071318 A1 WO 2023071318A1 CN 2022107088 W CN2022107088 W CN 2022107088W WO 2023071318 A1 WO2023071318 A1 WO 2023071318A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
loop
upf
network
detection
Prior art date
Application number
PCT/CN2022/107088
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 WO2023071318A1 publication Critical patent/WO2023071318A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/18Loop-free operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update

Definitions

  • the present application relates to the field of communication technologies, and in particular to a loop detection method and device.
  • a user plane function (user plane function, UPF) network element supports a Layer 2 broadcast flooding capability. If UPF receives unicast data packets, multicast data packets, or unicast data packets with unknown destination addresses, UPF will flood the received data packets to the entire network. If there is a loop in the network, the devices in the network will receive a large number of useless data packets in a short period of time. How to detect whether there is a loop in the network is a problem to be solved in this application.
  • the present application provides a loop detection method and device to detect whether there is a loop in the network.
  • a loop detection method including: UPF receives a data packet at a first port, and the data packet is a broadcast data packet, a multicast data packet or unicast data with an unknown MAC address of the destination media access control packet; in the MAC address table, if the port information corresponding to the source MAC address of the data packet reaches a preset number of times in the first preset duration, the UPF constructs a detection packet, which is a broadcast data packet Or a multicast data packet, the MAC address table records the correspondence between the source MAC address of the data packet received by the user plane function UPF and the port information receiving the data packet; the UPF sends the detection to the first port A packet, the detection packet is used to detect whether there is a loop in the network, and the first port is a port in the UPF.
  • UPF when UPF detects that the destination MAC address corresponding to a data packet changes frequently in a short period of time, UPF has reason to believe that the data packet is frequently forwarded in a short period of time, and there is a loop in the network.
  • UPF can construct a detection Packets to detect whether there is a loop in the network, so as to avoid the continuous forwarding of data packets caused by loops in the network and reduce the consumption of network resources.
  • the UPF after the UPF sends the detection packet to the first port, it further includes: if the detection packet is received at the first port or other ports of the UPF within a second preset time period, packet, the UPF determines that there is a loop in the network; otherwise, it determines that there is no loop in the network.
  • the UPF After the UPF sends the detection packet on the first port, if it receives the detection packet at this port or other ports within a certain period of time, the UPF can clearly determine that there is a loop in the network; otherwise, the UPF It can be determined that there are no loops in the network.
  • the UPF sends the detection packet to the second port, and the port information corresponding to the second port is recorded in the MAC address table, previously received through the first port There is port information corresponding to the source MAC address of the data packet, and the second port is a port in the UPF.
  • it also includes: when the UPF determines that there is a loop in the network, reporting a port loop event to the session management function SMF, where the port loop event includes an indication for indicating the first port Information; the UPF receives an N4 session modification message from the SMF, and the N4 session modification message indicates that the UPF stops forwarding data packets through the first port, and/or instructs the UPF to perform a loop recovery event; according to N4 session modification message, stop the data forwarding function of the first port, and/or execute the loop recovery event.
  • the UPF when the UPF determines that there is a loop in the network, it can report the port loop event to the SMF.
  • the SMF receives the above-mentioned port loop event, it can first alarm the OAM, and at this time, the loop in the network can be restored through manual intervention or other intelligent methods.
  • the SMF sends an N4 session modification message to the UPF, which is used to instruct the UPF to stop the data forwarding function of the port, and perform loop recovery events, etc., stop the data forwarding function of the loop port, and reduce the consumption of network resources.
  • the port loop event includes indication information for indicating the first port, specifically: the first port is an access port, and one Ethernet protocol data unit PDU session corresponds to one interface
  • the port loop event carries the identifier of the Ethernet PDU session corresponding to the first port; or, when the first port is an N6 port and one network instance corresponds to one N6 port, the port The loop event carries the identifier of the network instance corresponding to the first port; or, when the first port is an N19 port and the N19 port is an interface between UPFs, the port loop event carries The Internet Protocol IP address of the peer UPF.
  • the execution of the loop recovery event includes: UPF constructing a detection packet again, the detection packet is a broadcast packet or a multicast packet, and the UPF sends the detection packet to the first port; if Within the third preset time period, if the detection packet is not received at the first port or other ports of the UPF, it means that there is no loop in the network, the network returns to normal, and the loop recovery is reported to the SMF event; otherwise, continue to execute the step of sending the detection packet to the first port.
  • UPF can detect whether the loop in the network returns to normal by constructing a detection packet. If the loop in the network returns to normal, the loop recovery event can be reported to the SMF to restore the data forwarding function of the port.
  • the method further includes: if the loop still exists in the network within the fourth preset time period, the UPF stops the loop detection and closes the data forwarding function of the first port.
  • UPF can perform loop detection periodically. If the loop in the network has not been eliminated for a long time, UPF can no longer perform loop detection, and close the data of the first port where the port forms a loop. Forward function. At this time, manual intervention may be required to restore the data forwarding function of the first port, thereby reducing the energy consumption of the UPF.
  • the UPF after reporting the loop recovery event to the SMF, it further includes: the UPF receives an N4 session modification message from the SMF, and the N4 session modification message includes resuming the first port data packet forwarding Function indication information; according to the N4 session modification message, restore the data packet forwarding function of the first port.
  • the SMF instructs the UPF to restore the forwarding function of the data packets of the first port as an example.
  • the UPF determines that the network is back to normal, it can actively restore the data forwarding function of the first port without waiting for an instruction from the SMF, so that the first port can return to normal as soon as possible.
  • the method further includes: receiving an N4 session establishment message from the SMF, and the N4 session establishment message includes an execution
  • the instruction information of the access port loop detection either includes the instruction information of executing the loop detection of the N6 port, or includes the instruction information of executing the loop detection of the N19 port.
  • the SMF when the SMF sends the N4 session establishment message to the UPF, it can directly instruct the UPF whether to perform loop detection on the corresponding port.
  • the UPF executes the method of the present application to perform the loop detection; otherwise, the UPF does not perform the loop detection.
  • This application has better compatibility with existing schemes.
  • the second aspect provides a loop detection method, which is the SMF side corresponding to the first aspect above, and the beneficial effect may be as described in the first aspect above, and will not be described again.
  • the method includes: the SMF receives from the user plane function UPF.
  • a port loop event the port loop event includes indication information for indicating the first port;
  • the indication information indicating the first port the first port is a port in the UPF.
  • the port loop event includes indication information of the first port, specifically: when the first port is an access port, and one Ethernet protocol data unit PDU session corresponds to one access port, the The port loop event carries the identifier of the Ethernet PDU session corresponding to the first port; or, when the first port is an N6 port and one network instance corresponds to one N6 port, the port loop event carries There is an identifier of the network instance corresponding to the first port; or, when the first port is an N19 port and the N19 port is an interface between UPFs, the port loop event carries the Internet of the peer UPF Protocol IP address.
  • the first port is an access port, and further includes: the SMF sends to the terminal instruction information for releasing the PDU session corresponding to the first port, and the instruction information carries information for releasing the Ethernet PUD session
  • the cause is the indication information of network looping; or, the SMF sends an N4 session modification message to the UPF, and the N4 session modification message instructs the UPF to stop forwarding data packets through the access port, and/or instructs the UPF to Perform a loop recovery event.
  • the first port is an N6 port or an N19 port
  • the SMF sends an N4 session modification message to the UPF
  • the N4 session modification message instructs the UPF to stop passing through the N6 port or the N19 port.
  • Port forwarding packets, and/or instructing the UPF to perform a loop recovery event.
  • the SMF receives the loop recovery event from the UPF; the SMF sends a recovery alarm to the OAM, and the recovery alarm is used to indicate that there is no loop in the network and the network returns to normal;
  • the UPF sends an N4 session modification message, where the N4 session modification message includes indication information for restoring the data packet forwarding function of the first port.
  • the method further includes: the SMF sends an N4 session establishment message to the UPF, and the N4 session establishment message includes an execution interface The instruction information of the loop detection on the ingress port, or the instruction information of executing the loop detection of the N6 port, or the instruction information of executing the loop detection of the N19 port.
  • a communication device which includes a one-to-one unit or module for performing the methods/operations/steps/actions described in the first aspect above, and the unit or module can be a hardware circuit or software, It can also be implemented by combining hardware circuits with software.
  • a communication device includes a processor and a memory.
  • the memory is used to store computer programs or instructions
  • the processor is coupled to the memory; when the processor executes the computer programs or instructions, the device is made to execute the method of the first aspect above.
  • a communication device which includes a one-to-one unit or module for performing the methods/operations/steps/actions described in the second aspect.
  • the unit or module can be a hardware circuit, software, or It can be implemented by combining hardware circuits with software.
  • a communication device includes a processor and a memory.
  • the memory is used to store computer programs or instructions
  • the processor is coupled to the memory; when the processor executes the computer programs or instructions, the device is made to execute the method of the second aspect above.
  • a computer-readable storage medium stores computer programs or instructions, and when the computer programs or instructions are executed by the device, the device executes the above-mentioned first aspect or the second aspect Methods.
  • a computer program product includes a computer program or an instruction, and when the computer program or instruction is executed by a device, the device executes the method of the first aspect or the second aspect above.
  • a ninth aspect provides a communication system, including the above-mentioned third aspect or the fourth aspect, and the device of the fifth aspect or the sixth aspect.
  • Figure 1 is a schematic diagram of the network architecture provided by the present application.
  • Fig. 2 is the schematic diagram of the PDU connection that this application provides;
  • Fig. 3 is the schematic diagram of the Ethernet PDU conversation that the application provides
  • Fig. 4 is the exchange schematic diagram of the Ethernet PDU session provided by the present application.
  • FIG. 5 is a schematic diagram of a UPF port provided by the present application.
  • 6 to 11 are schematic diagrams of network looping provided by the present application.
  • FIG. 12 is a flow chart of the loop detection method provided by the present application.
  • FIG. 13 is a schematic diagram of an access port loop provided by the present application.
  • Fig. 14 is the schematic diagram of the N6 port loop provided by the present application.
  • Figure 15 is a schematic diagram of the N19 port loop provided by the present application.
  • FIG. 16 and FIG. 17 are schematic diagrams of communication devices provided by the present application.
  • a network architecture applicable to this application including an access network, a core network, and terminals.
  • the access network is used to implement functions related to wireless access
  • the access network device is a device that provides access for the terminal.
  • the access network device may also be called a radio access network (radio access network, RAN) device.
  • the RAN device is mainly responsible for radio resource management, quality of service (QoS) management, data compression and security processing on the air interface side.
  • the RAN equipment may include various forms of base stations. For example, a macro base station, a micro base station (small cell), a relay station or an access point, etc.
  • RAN equipment includes but is not limited to: the next-generation base station (generation nodeB, gNB) in the fifth generation (5 th generation, 5G), the evolved node B (evolved node B, eNB), the radio network controller (radio network controller, RNC), node B (node B, NB), base station controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), home base station (for example, home evolved nodeB, or home node B, HNB) , baseband unit (baseband unit, BBU), transceiver point (transmitting and receiving point, TRP), transmitting point (transmitting point, TP), mobile switching center, etc.
  • the RAN device may also be a wireless controller, a centralized unit (centralized unit, CU), and/or a distributed unit (distributed unit, DU) in a cloud radio access network (cloud radio access network, CRAN) scenario, or the RAN device may For relay stations, access points, vehicle-mounted equipment, terminals, wearable devices, and access network equipment in the future sixth generation (6th generation, 6G) network or future evolution of public land mobile network (PLMN) ) access network equipment in the network, etc.
  • 6G sixth generation
  • PLMN public land mobile network
  • a base station is used as an example of a RAN device for description below.
  • the core network equipment may include one or more of the following network elements: access and mobility management function (access and mobility management function, AMF), session management function (session management function, SMF), user plane function (user plane function, UPF), policy control function (policy control function, PCF), application function (application function, AF), unified data management (unified data management, UDM), authentication server function (authentication server function, AUSF), network slice selection function ( network slice selection function, NSSF).
  • access and mobility management function access and mobility management function
  • AMF access and mobility management function
  • SMF session management function
  • user plane function user plane function, UPF
  • policy control function policy control function
  • PCF policy control function
  • application function application function, AF
  • UDM authentication server function
  • authentication server function authentication server function
  • AUSF authentication server function
  • network slice selection function network slice selection function
  • AMF Mainly responsible for mobility management in the mobile network, such as user location update, user registration network, user switching, etc.
  • SMF It is mainly responsible for session management in mobile networks, such as session establishment, modification, and release. Specific functions such as assigning Internet protocol (internet protocol, IP) addresses to users, selecting UPF that provides message forwarding functions, etc.
  • UPF It is mainly responsible for the forwarding and receiving of user data. In downlink transmission, UPF can receive user data from the data network (DN) and transmit it to the terminal through the access network device; in uplink transmission, UPF can receive user data from the terminal through the access network device and forward it to the DN the User Data.
  • the transmission resources and scheduling functions for providing services to terminals in the UPF can be managed and controlled by the SMF.
  • PCF It mainly supports the provision of a unified policy framework to control network behavior, provides policy rules to the network functions of the control layer, and is responsible for obtaining user subscription information related to policy decisions.
  • AF It mainly supports interaction with the 3GPP core network to provide services, such as influencing data routing decisions, policy control functions, or providing some third-party services to the network side.
  • UDM is mainly used to generate authentication credentials, user identification processing (such as storing and managing user permanent identities, etc.), access authorization control, and contract data management.
  • AUSF is mainly used to perform authentication when the terminal accesses the network, including receiving the authentication request sent by the security anchor function (SEAF), selecting the authentication method, and submitting to the authentication repository and processing function (authentication repository and processing function, ARPF) request authentication vector, etc.
  • SEAF security anchor function
  • NSSF is mainly used to select network slice instances for terminals, determine allowed network slice selection assistance information (network slice selection assistance information, NSSAI), configure NSSAI, and determine the AMF set of service terminals.
  • the above network elements in the core network may have different names.
  • the fifth generation mobile communication system is taken as an example for illustration, which is not intended to limit the present application.
  • the network elements of the core network in FIG. 1 are only for schematic illustration, and are not intended to limit the present application.
  • the core network elements may also include: network exposure function (network exposure function, NEF), network storage function (network repository function, NRF), or service control point (service control point) , one or more network elements in SCP), etc.
  • a terminal may also be called terminal equipment, user equipment (user equipment, UE), mobile station, mobile terminal, and so on.
  • Terminals can be widely used in various scenarios, such as device-to-device (D2D), vehicle-to-everything (V2X) communication, machine-type communication (MTC), Internet of Things ( Internet of things, IoT), virtual reality, augmented reality, industrial control, autonomous driving, telemedicine, smart grid, smart furniture, smart office, smart wearables, smart transportation, smart city, etc.
  • Terminals can be mobile phones, tablet computers, computers with wireless transceiver functions, wearable devices, vehicles, drones, helicopters, airplanes, ships, robots, robotic arms, smart home devices, etc. This application does not limit the specific technology and specific equipment form adopted by the terminal.
  • a UE or a personal computer personal computer, PC is used as an example of a terminal for description below.
  • the DN may be a service network that provides data service for users.
  • the DN may be an IP multimedia service (IP multi-media service) network or the Internet (internet).
  • the terminal can establish a protocol data unit (protocol data unit, PDU) session from the terminal to the DN to access the DN.
  • protocol data unit protocol data unit
  • the functions of the base station may also be performed by modules (such as chips) in the base station, or may be performed by a control subsystem including the functions of the base station.
  • the control subsystem including base station functions here may be the control center in the above application scenarios such as smart grid, industrial control, intelligent transportation, and smart city.
  • the functions of the terminal may be performed by a module (such as a chip or a modem) in the terminal, or may be performed by a device including the terminal function.
  • the functions of the core network element (such as UPF or SMF, etc.) can also be performed by modules (such as chips) in the core network element, or can be performed by the control subsystem including the core network element.
  • data exchange service is provided for UE and DN network, which is called PDU connection service.
  • the UE obtains the PDU connection service by initiating a PDU session establishment request to the mobile network.
  • the network side provides the PDU connection service by maintaining the PDU session for the UE.
  • the bold dashed line indicates the service data exchange path between the UE and the DN network. This path is the data service path of the UE in the mobile network, which may be referred to as the data plane path for short.
  • the bold solid line indicates the signaling exchange path between the UE and the DN, which is the signaling service data of the UE in the mobile network, which may be referred to as signaling plane signaling for short.
  • the UE In order to realize the data exchange between the UE and the DN network, the UE needs to use the PDU connection service provided by the mobile network to establish a PDU session based on the data network name (DNN).
  • the establishment of a PDU session includes two basic processes: the UE registers with the mobile network to access the network, and the UE requests the network to establish a PDU session. These two processes belong to the signaling plane interaction process between the UE and the mobile network.
  • the network elements involved in the bold solid line in Figure 2 are the main network elements involved in the establishment of the PDU session.
  • the general user registration and network access process may include: the UE sends a registration request to the AMF through the base station, and the AMF obtains subscription data from a specific UDM according to the user identifier.
  • the AMF can also initiate a user policy control establishment request (UE policy control cteate) and an access management policy control establishment request (AM policy control creat) to the PCF, which are used to obtain UE policies and access control policies respectively.
  • the PCF returns the access control policy to the AMF during this process.
  • the AMF responds to the UE's registration request, and sends relevant policy information to the UE, and the UE completes network registration and camping.
  • the AMF on the network side maintains the registration information of the UE and performs mobility management on the UE.
  • the general PDU session establishment process may include: the UE sends a PDU session establishment request to the AMF through the base station, and the AMF selects the SMF to provide session services for the UE, saves the correspondence between the SMF and the PDU session, and sends the session establishment request to the SMF. Select the corresponding UPF and establish a user plane transmission path, and assign an IP address to it.
  • the SMF will also initiate a policy control session establishment request to the PCF for establishing a policy control session between the SMF and the PCF.
  • the SMF will save the correspondence between the policy control session and the PDU session .
  • IP-type PDU sessions (referred to as IP sessions for short), including IPV4 sessions and IPV6 sessions, and Ethernet-type PDU sessions (referred to as Ethernet sessions for short).
  • IP sessions for short IP-type PDU sessions
  • Ethernet sessions for short Ethernet sessions for short
  • FIG. 3 an architecture diagram of an Ethernet PDU session is provided, including: a terminal side, a 3GPP channel, and a DN side. Ethernet is used on the end side, and PC1 is a PC in the Ethernet.
  • the customer premise equipment (CPE) mainly plays the role of bridging. The left port of the CPE is connected to the Ethernet, and the right port is connected to the 3GPP network.
  • CPE customer premise equipment
  • FIG. 3 is only a schematic diagram, and is not intended to limit the present application.
  • a layer 2 switch layer 2 switch, L2SW may also be set between the PC1 and the CPE.
  • UPF supports local exchange (the local exchange refers to the data exchange of different PC1 under the same UPF, for example, PC1 and PC2 exchange), inter-network exchange (the inter-network exchange Refers to the exchange between the end-side terminal and the DN-side terminal, such as the exchange between PC1 and PC4) and cross-UPF exchange (the cross-UPF exchange refers to the data exchange between PCs under different UPFs, such as the exchange between PC2 and PC3).
  • the above exchange refers to data transmission between different PCs.
  • UPF supports layer two broadcast flooding capability, and said layer two refers to the media access control (media access control, MAC) layer, that is, if UPF receives broadcast, multicast or data packets with unknown destination MAC address, Then, except the source end, UPF needs to send the data packet to all terminals in the entire local area network (local area network, LAN).
  • the data packet with an unknown destination MAC refers to a data packet whose destination MAC address has not been learned by the UPF, that is, the corresponding relationship between the destination MAC address and the port is not recorded in the MAC address table.
  • the N3/N9 interface is the access port, and the UPF is connected to the CPE through the access port.
  • One Ethernet PDU session corresponds to one access port;
  • the N6 interface is the N6 port, and the UPF is connected to the DN through the N6 port.
  • a network instance corresponds to an N6 port;
  • the N19 interface is an N19 port, and the UPF is connected to other UPFs through the N19 port, and a group session + a peer UPF corresponds to an N19 port.
  • all the above ports may belong to the same network instance.
  • the port can be an access port, N6 port or N19 port, etc., it can first learn the correspondence between the source MAC address of the data packet and the receiving port, and The learned corresponding relationship is stored in the MAC address table, and then the data packet is forwarded according to the destination MAC address of the data packet.
  • UPF1 may query the port corresponding to the destination MAC address of the data packet in the MAC address table. For example, if the port found in the MAC address is the N19 port, the UPF can send the data packet through the N19 port.
  • UPF when UPF receives a multicast packet, a broadcast packet, or a unicast packet with an unknown destination MAC address, it will flood to all access ports, N6 port and N19 port except the source port. If there is a loop in the network, the devices in the network will receive a large number of useless duplicate packets in a short time, wasting network resources. It should be noted that in the above description of this application, UPF is used as an example to describe flooding. In essence, all devices or ports in the Ethernet session receive broadcast, multicast or unicast with unknown destination MAC address. Flooding operation will be performed when the data packet is received.
  • LSW1, CPE1, CPE2, and UPF form a loop. If device 1 initiates a multicast packet, broadcast packet, or unicast packet with an unknown destination MAC address, LSW1 forwards the data packet to CPE1 and CPE2 when receiving the data packet. CPE1 and CPE2 forward the data packet to the UPF. When the UPF receives the data packet of CPE1, it forwards the data packet to device 3, CPE2 and device 2. CPE2 continues to forward the data packet to LSW1, which causes device 2 and device 3 to receive a large number of repeated useless data packets within a short period of time.
  • UPF1, UPF2, CPE2, LSW, and CPE1 form a loop. If device 1 initiates a multicast packet, broadcast packet, or unicast packet with an unknown destination MAC address, the data packet will be continuously forwarded in the loop and flooded to other places in the network. A large number of repeated useless data packets will be received within a period of time.
  • a loop is formed between LSW1 and CPE1. If device 1 initiates a multicast packet, broadcast packet, or unicast packet with an unknown destination MAC address, the data packet will be continuously forwarded in the loop and flooded to other places in the network, and device 2 and device 3 will In a short period of time, a large number of repeated useless data packets are received.
  • Scenario 4 Self-loop on the DN side
  • the DN SW and VXLAN SW on the DN side form a loop. If device 3 initiates a multicast packet, broadcast packet, or unicast packet with an unknown destination MAC address, the data packet will be continuously forwarded in the loop and flooded to other places in the network. A large number of repeated useless data packets will be received.
  • a loop is formed between UPF1, VXLAN SW1, DNS SW, VLAN SW2, and UPF2. If device 3 initiates a multicast packet, broadcast packet, or unicast packet with an unknown destination MAC address, the data packet will be continuously forwarded in the loop and flooded to other places in the network. A large number of repeated useless packets will be received within a period of time.
  • a loop is formed between UPF, VXLAN SW, and CPE2. If device 1 initiates a multicast packet, broadcast packet, or unicast packet with an unknown destination MAC address, the data packet will be continuously forwarded in the loop and flooded to other places in the network, and device 2 will Received a lot of useless packets.
  • This application provides a loop detection method, which can be used to detect whether there is a loop in the network, and if there is a loop in the network, the relevant loop-breaking operations can be performed in time, thereby preventing the device from receiving a large number of repeated useless loops in a short period of time. packets, reducing the waste of network resources.
  • the method at least includes the following steps:
  • Step 1201 The UPF receives a data packet at the first port, and the data packet is a broadcast data packet, a multicast data packet or a unicast data packet with an unknown destination MAC address.
  • the above-mentioned first port may be an access port (that is, an N3/N9 port), an N6 port or an N19 port.
  • Step 1202 In the MAC address table, if the port corresponding to the source MAC address of the data packet has changed the number of times within the first preset time length to a preset number of times, the UPF constructs a detection packet, and the detection packet is a broadcast data packet or multicast packets.
  • the MAC address table records the correspondence between the source MAC address of the data packet received by the UPF and the port information that received the data.
  • the UPF learns the source MAC address of the data packet, and records the corresponding relationship between the source MAC address of the data packet and the receiving port in the MAC address table.
  • the data packet is forwarded through a corresponding port.
  • the UPF receives data packet 1 through port 1, and the source MAC address of the data packet 1 is MAC address A.
  • the UPF can learn the MAC address A, and record the correspondence between the MAC address A and port 1.
  • the UPF may send the data packet 2 to the port 1.
  • the UPF may construct a detection packet to detect whether there is a loop in the network. If the UPF receives the detection packet at the sending port of the detection packet or other ports within the second preset time period, the UPF determines that there is a loop in the network; otherwise, the UPF determines that there is no loop in the network.
  • Step 1203 The UPF sends the detection packet to the first port, and the detection packet is used to detect whether there is a loop in the network.
  • the above-mentioned first port is a port for receiving the data packet.
  • the UPF may also send the detection packet to the second port, and the port information corresponding to the second port is recorded in the MAC address table, previously and through the There is port information corresponding to the source MAC address of the data packet received by the first port. Assuming that the UPF receives a data packet at the first port, the data packet may be called a target data packet.
  • UPF finds that the port information corresponding to the source MAC address of the target data packet changes frequently through the MAC address table, UPF may suspect that there is a loop in the network, causing the data packet to be forwarded between different devices, making UPF The target packet is repeatedly received within the time. At this time, UPF can construct a detection packet to detect whether there is a loop in the network.
  • the UPF may send the detection packet through the first port receiving the target data packet.
  • the UPF may also query the MAC address table for a port corresponding to the source MAC address of the target data packet recorded in the MAC address table, which may be referred to as a second port. In addition to the first port, the UPF may also send the detection packet through the second port. If the UPF receives the detection packet again through the port that sent the detection packet or other ports within the second preset time period, the UPF may determine that there is a loop in the network. Otherwise, it is determined that there are no loops in the network.
  • the UPF may report a port loop event to the SMF network element, and the port loop event includes indication information for indicating the first port.
  • the SMF receives the above-mentioned port loop event, it can send alarm information to the operation management and maintenance system (operation administration and maintenance, OAM), the alarm information is used to indicate that there is a loop in the network, and the alarm information includes Indication information indicating the first port, where the first port belongs to the network.
  • OAM operation administration and maintenance
  • the OAM may remove the loop in the network manually or in other ways.
  • the UPF reports the access port loop event to the SMF. Since one PDU session corresponds to one access port, the access port loop event may carry the identifier of the Ethernet PDU session corresponding to the first port.
  • the SMF receives the above access port loop event, it can perform at least one of the following operations:
  • the SMF actively releases the Ethernet PDU session corresponding to the access port, and sends instruction information for releasing the Ethernet PDU session corresponding to the access port to the UE.
  • the SMF may send a non-access stratum (non-access stratum, NAS) message for releasing the Ethernet PDU session to the UE, where the NAS message carries the reason for releasing the Ethernet PDU session that the network is looped.
  • NAS non-access stratum
  • the SMF sends an N4 session modification message to the UPF, in which the N4 session modification message instructs the UPF to stop forwarding data packets through the access port, and/or instructs the UPF to execute the access port loop recovery event.
  • the UPF reports the N6 port loop event to the SMF.
  • One network implementation corresponds to one N6 port, and the above-mentioned N6 port loop event carries the identifier of the network instance corresponding to the N6 port.
  • the SMF receives the alarm of the above-mentioned N6 port loop event, the following operations can be performed: the SMF sends an N4 session modification message to the UPF, and the N4 session message instructs the UPF to stop forwarding data packets through the N6 port, and/or indicates the The above UPF executes the N6 port loop recovery event, etc.
  • the SMF may set all relevant Ethernet PUD session settings under the network implementation corresponding to the N6 port to stop forwarding data packets to the N6 port.
  • the UPF reports the N19 port loop event to the SMF.
  • Port N19 is the interface between UPFs.
  • each N19 port under each UPF corresponds to each peer UPF under a 5G LAN group.
  • the above-mentioned N19 port loop event carries the IP address of the peer UPF.
  • the SMF receives the N19 port loop event, it can send an N4 session modification message to the UPF, the N4 session modification message carries the UPF to stop forwarding data packets through the N19 port, and/or instruct the UPF to perform N19 loop recovery events etc.
  • the SMF instructs the UPF to stop forwarding data packets through the first port, or instructs the UPF to execute the loop recovery event as an example. It can be understood that when the UPF determines that there is a loop in the current network, it can stop forwarding data packets through the port by itself, and/or perform loop recovery events, etc., without waiting for an instruction from the SMF.
  • the process of the UPF executing the loop recovery event may include: the UPF forms a detection packet, and the detection packet may also be a broadcast packet or a multicast packet.
  • the UPF sends the detection packet to the first port. If within the third preset time length, the first port or other ports of the UPF do not receive the detection packet, it means that there is no loop in the network, the network returns to normal, and the loop recovery event is reported to the SMF; otherwise, Continue the above process, construct a detection packet, and send the detection packet to the first port.
  • the UPF may start a timer, periodically form a detection packet, and send the detection packet from the first port to perform loop detection.
  • the timing duration of the timer may be 2 minutes, and the UPF may perform loop detection every 2 minutes.
  • the process of each loop detection may include: the UPF constructs a detection packet, and sends the detection packet through the first port. If within the preset duration, of course, the preset duration should be shorter than the loop detection period mentioned above, and the UPF receives the detection packet at the first port or other ports, it means that there is still a loop in the network, and the loop continues detection.
  • the SMF may send an N4 session modification message to the UPF, where the N4 session modification message includes indication information for restoring the data forwarding function of the first port.
  • the N4 session modification message may carry a packet detection rule (packet detection rule, PDR), a forwarding action rule (forwarding action rule, FAR), etc.
  • PDR packet detection rule
  • FAR forwarding action rule
  • the UPF starts a timer to perform loop detection at regular intervals. If the loop in the network still exists after a certain period of time, such as the fourth preset period of time, the UPF may stop loop detection and close the data forwarding function of the first port.
  • manual intervention may be required to restore the data forwarding function of the first port, such as manually triggering a CPE reset, or issuing a local operation maintenance (OM) to restore the data forwarding function, etc.
  • OM local operation maintenance
  • the SMF sends an N4 session establishment message to the UPF, the above-mentioned first port is an access port, and the N4 session establishment message includes instruction information for performing loop detection on the access port; Or, the first port is an N6 port, and the above-mentioned N4 session establishment message includes an instruction to perform loop detection on the N6 port; or, the first port is an N19 port, and the above-mentioned N4 session establishment message includes an instruction to perform loop detection on the N19 port information.
  • multicast packets, broadcast packets, or unicast packets with unknown destination addresses are forwarded in a flooding manner. If there is a loop in the network, data packets will be continuously forwarded in the network, consuming network resources.
  • UPF can perform loop detection on each interface defined in 3GPP, and after an alarm, can detect whether the loop in the network is recovered again to ensure the stable operation of the network.
  • the present application is described by taking the loop detection and breaking of the access port as an example.
  • UPF receives a data packet through the access port, that is, N3/N9, and the source MAC address of the data packet changes frequently in a short period of time, at least including the following process:
  • the SMF requests the UPF to perform an access port loop detection event in the N4 session establishment message.
  • UPF When UPF receives an uplink data packet from the access port, when recording the source MAC address of the uplink data packet in the MAC address table, if the source MAC address of the data packet changes frequently in a short period of time, UPF Construct a detection packet and deliver it from the access port for loop detection. If the UPF receives the detection packet on the access port or other ports within a short period of time, the UPF considers that the network connected to the access port forms a loop; the UPF reports the access port loop event to the SMF.
  • the SMF When the SMF receives the above-mentioned access port loop event, it first sends an alarm to the OAM, and then can perform any of the following operations.
  • the specific operations to be performed can be determined by the local configuration of the SMF:
  • the SMF actively releases the Ethernet PDU session corresponding to the access port, and sends NAS signaling to the UE to release the Ethernet PDU session.
  • the NAS signaling includes that the reason for releasing the Ethernet PDU session is network looping.
  • the UE cannot establish the Ethernet PDU session again within a short period of time, so as to avoid triggering the access port loop event again.
  • the SMF sends an N4 session modification message to the UPF, and the N4 session modification message requires the UPF to stop forwarding data packets, and requires the UPF to perform an access port loop recovery event.
  • the UPF When the UPF receives the N4 session modification message in the above-mentioned scheme B, it starts a timer, constructs a detection packet regularly, and sends it from the access port to perform loop detection.
  • the UPF does not receive the detection packet from the access port or other ports within a short period of time, the UPF reports the access port loop recovery event to the SMF. Or, if the UPF receives the detection packet again at the above-mentioned access port or other ports within a short event, the UPF continues to perform detection according to the period of the above-mentioned timer. If the network does not recover for a long time, the UPF will terminate the data forwarding capability of the access port. At this time, manual intervention may be required to restore the data forwarding capability of the access port.
  • the SMF When the SMF receives the loop recovery event reported by the UPF, it first reports the recovery alarm to the OAM, and then sends an N4 session modification message to the UPF, which contains a request for the UPF to restore the data forwarding function of the access port. Instructions.
  • the present application is described by taking the loop detection and breaking of the N6 port as an example.
  • the UPF receives a data packet through the N6 port.
  • the source MAC address of the data packet changes frequently in a short period of time, at least including the following process:
  • SMF When CPE establishes an Ethernet PDU session, SMF requires UPF to perform N6 port loop detection event in the N4 session establishment message, and requires UPF to stop forwarding data to N6 port when a loop event occurs, until the N6 port loop is restored .
  • the UPF When the UPF receives a downlink data packet from the N6 interface, if the source MAC address of the recorded data packet is found to change frequently in a short period of time, the UPF can form a detection packet and send it from the N6 port. Loop detection. If within a short period of time, UPF receives the detection packet from the N6 port or other ports, the UPF considers that the network connected to the N6 port forms a loop, and reports the N6 port loop event to the SMF, which carries the network information corresponding to the N6 port. instance. UPF automatically stops forwarding packets to N6 port.
  • the SMF When the SMF receives the above-mentioned N6 port loop event, it sends an alarm to the OAM.
  • the SMF may set all relevant Ethernet PDU sessions under the network instance corresponding to the N6 port to stop forwarding data packets to the N6 port.
  • the UPF starts a timer, constructs a detection packet regularly, and sends it from the N6 port for loop detection.
  • the UPF does not receive the detection packet from the N6 port or other ports within a short period of time, the UPF reports the N6 port loop recovery event to the SMF.
  • the SMF may further perform corresponding operations, such as reporting a recovery alarm to the OAM.
  • the UPF receives the detection packet from the N6 port or other ports within a short period of time, the UPF will continue to perform loop detection periodically according to the timing of the timer. If the loop in the network does not recover for a long time, UPF will terminate the data forwarding function of the N6 port, and manual intervention may be required to restore the data forwarding function of the N6 port.
  • the loop detection and breaking of the N19 port is taken as an example.
  • UPF1 receives a data packet through the N19 port.
  • the source MAC address of the data packet, in the record in the MAC address table, changes frequently in a short period of time, and at least includes the following process:
  • the SMF finds that a forwarding channel needs to be established between different UPFs, the SMF requests the UPF to perform the N19 port loop detection event in the N4 session establishment message.
  • UPF When UPF receives a data packet at the N19 port and records the MAC address, if it finds that the source MAC address of the data packet changes frequently in a short period of time, the UPF constructs a detection packet and sends it from the N19 port for loop detection. If within a short period of time, UPF receives the detection packet on the N19 port or other ports, UPF considers that the network connected to the N19 port forms a loop; UPF reports the N19 port loop event to the SMF, and the N19 port loop event carries There is IP correspondence of the opposite side UPF. For example, the IP address of UPF2 in Figure 15.
  • the SMF When the SMF receives the N19 port loop event, it first reports to the OAM, and then sends the N4 session modification message to the UPF.
  • the N4 session modification message may include instructions to request the UPF to stop forwarding data packets to UPF2, and request the UPF to execute Instructions for loop recovery events on the N19 port.
  • the UPF When the UPF receives the above-mentioned N4 session modification message, it first starts a timer, and regularly constructs a detection packet to be sent from the N19 port for loop detection.
  • the UPF does not receive the detection packet from the local N19 port or other ports within a short period of time, the UPF reports the N19 port loop recovery event to the SMF, and the N19 port loop recovery event carries the IP address of the peer UPF. If the UPF receives the detection packet at the N19 port or other ports within a short period of time, the UPF will continue to construct the detection packet for loop detection according to the timing period of the timer. If the network has not returned to normal for a long time and there is a loop in the network, the UPF terminates the data forwarding function of the N19 port, and manual intervention is required to restore the data forwarding function of the N19 port.
  • the SMF When the SMF receives the N19 port loop recovery event, it first sends a recovery alarm to the OAM, and sends an N4 session modification message to the UPF, requesting the UPF to resume forwarding data packets to UPF2. The UPF forwards the data packet according to the requirements of the new PDR and FRA carried in the N4 session modification message.
  • the UPF and the SMF include hardware structures and/or software modules corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software with reference to the units and method steps of each example described in the embodiments disclosed in the present application. Whether a certain function is executed by hardware or computer software drives the hardware depends on the specific application scenario and design constraints of the technical solution.
  • FIG. 16 and FIG. 17 are schematic structural diagrams of possible communication devices provided in this application. These communication devices can be used to implement the functions of the UPF or SMF in the above method embodiments, and therefore can also achieve the beneficial effects of the above method embodiments.
  • the communication device may be a UPF or an SMF as shown in FIG. 1 , and may also be a module (such as a chip) applied to the UPF or the SMF.
  • a communication device 1600 includes a processing unit 1610 and a transceiver unit 1620 .
  • the communication device 1600 is configured to implement the functions of the UPF or the SMF in the foregoing method embodiments.
  • the transceiver unit 1620 is used to receive a data packet at the first port, and the data packet is a broadcast data packet, a multicast data packet or an unknown destination MAC address A unicast data packet; a processing unit 1610 configured to construct a detection packet in the MAC address table if the port information corresponding to the source MAC address of the data packet reaches a preset number of times within the first preset duration , the detection packet is a broadcast data packet or a multicast data packet, and the MAC address table records the correspondence between the source MAC address of the data packet received by the UPF network element and the port information receiving the data packet; the transceiver unit 1620, It is also used to send the detection packet to the first port, where the detection packet is used to detect whether there is a loop in the network.
  • the transceiver unit 1620 is used to receive a port loop event from a UPF network element, and the port loop event includes an indication for indicating the first port information; the processing unit 1610 is configured to generate alarm information; the transceiver unit 1620 is also configured to: send alarm information to OAM, the alarm information is used to indicate that there is a loop in the network, and the alarm information includes the Indication information of the first port, where the first port is a port in the UPF.
  • processing unit 1610 and the transceiver unit 1620 can be obtained according to the relevant description in the above method embodiment, and details are not repeated here.
  • a communication device 1700 includes a processor 1710 and an interface circuit 1720 .
  • the processor 1710 and the interface circuit 1720 are coupled to each other.
  • the interface circuit 1720 may be a transceiver or an input-output interface.
  • the communication device 1700 may further include a memory 1730 for storing instructions executed by the processor 1710 or storing input data required by the processor 1710 to execute the instructions or storing data generated by the processor 1710 after executing the instructions.
  • the processor 1710 is used to implement the functions of the processing unit 1610
  • the interface circuit 1720 is used to implement the functions of the transceiver unit 1620 .
  • the UPF module realizes the function of UPF in the above method embodiment.
  • the UPF module receives information from other modules in the UPF (such as a radio frequency module or an antenna), and the information is sent to the UPF by the SMF; or, the UPF module sends information to other modules in the UPF (such as a radio frequency module or an antenna).
  • the information is sent by the terminal to the UPF.
  • the UPF module here can be a UPF chip or other modules.
  • the SMF module realizes the function of the SMF in the above-mentioned method embodiment.
  • the SMF module receives information from other modules in the SMF (such as a radio frequency module or an antenna), and the information is sent to the SMF by the UPF; or, the SMF module sends information to other modules in the SMF (such as a radio frequency module or an antenna). Information is sent by SMF to UPF.
  • the SMF module here can be an SMF chip or other modules.
  • processor in this application can be a central processing unit (central processing unit, CPU), and can also be other general processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.
  • CPU central processing unit
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • a general-purpose processor can be a microprocessor, or any conventional processor.
  • the method steps in the embodiments of the present application may be implemented by means of hardware, or may be implemented by means of a processor executing software instructions.
  • Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only Memory, registers, hard disk, removable hard disk, CD-ROM or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium.
  • the storage medium may also be a component of the processor.
  • the processor and storage medium can be located in the ASIC.
  • the ASIC can be located in the base station or the terminal.
  • the processor and the storage medium may also exist in the base station or the terminal as discrete components.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are executed in whole or in part.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable devices.
  • the computer program or instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be downloaded from a website, computer, A server or data center transmits to another website site, computer, server or data center by wired or wireless means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrating one or more available media.
  • the available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; and it may also be a semiconductor medium, such as a solid state disk.
  • the computer readable storage medium may be a volatile or a nonvolatile storage medium, or may include both volatile and nonvolatile types of storage media.
  • “at least one” means one or more, and “multiple” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the contextual objects are an “or” relationship; in the formulas of this application, the character “/” indicates that the contextual objects are a “division” Relationship.
  • “Including at least one of A, B and C” may mean: including A; including B; including C; including A and B; including A and C; including B and C; including A, B and C.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A loop detection method and apparatus. The method comprises: a UPF receiving a data packet at a first port; in a MAC address table, if the number of times that port information corresponding to a source MAC address of the data packet changes within a first preset duration reaches a preset number of times, the UPF constructing a detection packet, wherein the detection packet is a broadcast data packet or a multicast data packet; and the UPF sending the detection packet to the first port, wherein the detection packet is used for detecting whether there is a loop in a network. By means of the method and apparatus in the present application, whether there is a loop in a network can be detected, such that when there is a loop in the network, a device in the loop is prevented from constantly forwarding a data packet, thereby reducing the consumption of network resources.

Description

一种环路检测方法及装置A loop detection method and device
相关申请的交叉引用Cross References to Related Applications
本申请要求在2021年10月29日提交中国专利局、申请号为202111268099.X、申请名称为“一种环路检测方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111268099.X and the application title "A Method and Device for Loop Detection" filed with the China Patent Office on October 29, 2021, the entire contents of which are hereby incorporated by reference In this application.
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种环路检测方法及装置。The present application relates to the field of communication technologies, and in particular to a loop detection method and device.
背景技术Background technique
在第五代(5 th generation,5G)网络中,用户面功能(user plane function,UPF)网元支持层二广播泛洪能力。如果UPF接收到单播数据包、组播数据包、或目的地址未知的单播数据包,则UPF会将接收的数据包,泛洪到整个网络中。如果网络中存在环路,将使得网络中的设备在短时间内,收到大量无用的数据包。如何检测网络中是否存在环路,是本申请需要解决的问题。 In a fifth generation (5 th generation, 5G) network, a user plane function (user plane function, UPF) network element supports a Layer 2 broadcast flooding capability. If UPF receives unicast data packets, multicast data packets, or unicast data packets with unknown destination addresses, UPF will flood the received data packets to the entire network. If there is a loop in the network, the devices in the network will receive a large number of useless data packets in a short period of time. How to detect whether there is a loop in the network is a problem to be solved in this application.
发明内容Contents of the invention
本申请提供一种环路检测方法及装置,以检测网络中是否存在环路。The present application provides a loop detection method and device to detect whether there is a loop in the network.
第一方面,提供一种环路检测方法,包括:UPF在第一端口接收到数据包,所述数据包为广播数据包、组播数据包或目的媒体接入控制MAC地址未知的单播数据包;在MAC地址表中,若该数据包的源MAC地址所对应的端口信息在第一预设时长内的变换次数达到预设次数时,则UPF构造检测包,该检测包为广播数据包或组播数据包,所述MAC地址表中记录有用户面功能UPF所接收的数据包的源MAC地址与接收该数据包的端口信息的对应关系;UPF向所述第一端口发送所述检测包,所述检测包用于检测网络中是否存在环路,所述第一端口为UPF中的端口。In the first aspect, a loop detection method is provided, including: UPF receives a data packet at a first port, and the data packet is a broadcast data packet, a multicast data packet or unicast data with an unknown MAC address of the destination media access control packet; in the MAC address table, if the port information corresponding to the source MAC address of the data packet reaches a preset number of times in the first preset duration, the UPF constructs a detection packet, which is a broadcast data packet Or a multicast data packet, the MAC address table records the correspondence between the source MAC address of the data packet received by the user plane function UPF and the port information receiving the data packet; the UPF sends the detection to the first port A packet, the detection packet is used to detect whether there is a loop in the network, and the first port is a port in the UPF.
通过上述方法,UPF在检测到某个数据包对应的目的MAC地址在短时间内频繁变化时,UPF有理由相信该数据包在短时间内被频繁转发,网络中存在环路,UPF可以构造检测包,检测网络中是否存在环路,从而避免由于环路引起的数据包在网络中不停转发,减少网络资源的消耗。Through the above method, when UPF detects that the destination MAC address corresponding to a data packet changes frequently in a short period of time, UPF has reason to believe that the data packet is frequently forwarded in a short period of time, and there is a loop in the network. UPF can construct a detection Packets to detect whether there is a loop in the network, so as to avoid the continuous forwarding of data packets caused by loops in the network and reduce the consumption of network resources.
在一种设计中,UPF向所述第一端口发送所述检测包之后,还包括:若在第二预设时长内,在所述第一端口或所述UPF的其它端口接收到所述检测包,则UPF确定所述网络中存在环路;否则,确定所述网络中不存在环路。In one design, after the UPF sends the detection packet to the first port, it further includes: if the detection packet is received at the first port or other ports of the UPF within a second preset time period, packet, the UPF determines that there is a loop in the network; otherwise, it determines that there is no loop in the network.
通过上述方法,UPF在第一端口中发送检测包之后,若在某个时间内,又在该端口或其它端口接收到该检测包,则UPF可以明确确定该网络中存在环路;否则,UPF可以确定网络是不存在环路。Through the above method, after the UPF sends the detection packet on the first port, if it receives the detection packet at this port or other ports within a certain period of time, the UPF can clearly determine that there is a loop in the network; otherwise, the UPF It can be determined that there are no loops in the network.
在一种设计中,还包括:UPF向第二端口发送所述检测包,所述第二端口对应的端口信息为所述MAC地址表中记录的、之前与通过所述第一端口所接收的数据包的源MAC 地址存在对应关系的端口信息,所述第二端口为所述UPF中的端口。In one design, it further includes: the UPF sends the detection packet to the second port, and the port information corresponding to the second port is recorded in the MAC address table, previously received through the first port There is port information corresponding to the source MAC address of the data packet, and the second port is a port in the UPF.
在一种设计中,还包括:UPF在确定所述网络中存在环路时,向会话管理功能SMF上报端口环路事件,所述端口环路事件中包括用于指示所述第一端口的指示信息;UPF接收来自所述SMF的N4会话修改消息,所述N4会话修改消息中指示所述UPF停止通过所述第一端口转发数据包,和/或指示所述UPF执行环路恢复事件;根据N4会话修改消息,停止所述第一端口的数据转发功能,和/或执行所述环路恢复事件。In one design, it also includes: when the UPF determines that there is a loop in the network, reporting a port loop event to the session management function SMF, where the port loop event includes an indication for indicating the first port Information; the UPF receives an N4 session modification message from the SMF, and the N4 session modification message indicates that the UPF stops forwarding data packets through the first port, and/or instructs the UPF to perform a loop recovery event; according to N4 session modification message, stop the data forwarding function of the first port, and/or execute the loop recovery event.
通过上述方法,UPF在确定网络中存在环路时,可以向SMF上报端口环路事件。SMF在接收到上述端口环路事件时,可首先向OAM报警,此时可通过人工干预或其它智能方式,恢复网络中的环路。之后,SMF向UPF发送N4会话修改消息,用于指示UPF停止该端口的数据转发功能,和执行环路恢复事件等,停止环路端口的数据转发功能,也减少对网络资源的消耗。Through the above method, when the UPF determines that there is a loop in the network, it can report the port loop event to the SMF. When the SMF receives the above-mentioned port loop event, it can first alarm the OAM, and at this time, the loop in the network can be restored through manual intervention or other intelligent methods. Afterwards, the SMF sends an N4 session modification message to the UPF, which is used to instruct the UPF to stop the data forwarding function of the port, and perform loop recovery events, etc., stop the data forwarding function of the loop port, and reduce the consumption of network resources.
在一种设计中,所述端口环路事件中包括用于指示所述第一端口的指示信息,具体为:所述第一端口为接入端口、且一个以太协议数据单元PDU会话对应一个接入端口时,所述端口环路事件中携带有所述第一端口对应的以太PDU会话的标识;或者,所述第一端口为N6端口、且一个网络实例对应一个N6端口时,所述端口环路事件中携带有所述第一端口对应的网络实例的标识;或者,所述第一端口为N19端口、且所述N19端口为UPF间的接口时,所述端口环路事件中携带有对端UPF的互联网协议IP地址。In one design, the port loop event includes indication information for indicating the first port, specifically: the first port is an access port, and one Ethernet protocol data unit PDU session corresponds to one interface When entering a port, the port loop event carries the identifier of the Ethernet PDU session corresponding to the first port; or, when the first port is an N6 port and one network instance corresponds to one N6 port, the port The loop event carries the identifier of the network instance corresponding to the first port; or, when the first port is an N19 port and the N19 port is an interface between UPFs, the port loop event carries The Internet Protocol IP address of the peer UPF.
在一种设计中,所述执行所述环路恢复事件,包括:UPF再次构造检测包,所述检测包为广播包或组播包,UPF向所述第一端口发送所述检测包;若在第三预设时长内,在所述第一端口或所述UPF的其它端口没有接收到所述检测包,则表示所述网络中不存在环路,网络恢复正常,向SMF上报环路恢复事件;否则,继续执行向所述第一端口发送所述检测包的步骤。In one design, the execution of the loop recovery event includes: UPF constructing a detection packet again, the detection packet is a broadcast packet or a multicast packet, and the UPF sends the detection packet to the first port; if Within the third preset time period, if the detection packet is not received at the first port or other ports of the UPF, it means that there is no loop in the network, the network returns to normal, and the loop recovery is reported to the SMF event; otherwise, continue to execute the step of sending the detection packet to the first port.
通过上述方法,UPF可以通过构造检测包,检测网络中的环路是否恢复正常。如果网络中的环路恢复正常,则可以向SMF上报环路恢复事件,恢复该端口的数据转发功能。Through the above method, UPF can detect whether the loop in the network returns to normal by constructing a detection packet. If the loop in the network returns to normal, the loop recovery event can be reported to the SMF to restore the data forwarding function of the port.
在一种设计中,还包括:若在第四预设时长内,网络中的环路仍存在,则UPF停止环路检测,关闭所述第一端口的数据转发功能。In one design, the method further includes: if the loop still exists in the network within the fourth preset time period, the UPF stops the loop detection and closes the data forwarding function of the first port.
在本申请中,UPF可以周期性进行环路检测,若在长时间内,网络中的环路一直未消除,则UPF可以不再进行环路检测,且关闭端口成环的第一端口的数据转发功能。此时,可能需要人工干预才能恢复该第一端口的数据转发功能,从而降低UPF的耗能。In this application, UPF can perform loop detection periodically. If the loop in the network has not been eliminated for a long time, UPF can no longer perform loop detection, and close the data of the first port where the port forms a loop. Forward function. At this time, manual intervention may be required to restore the data forwarding function of the first port, thereby reducing the energy consumption of the UPF.
在一种设计中,在向所述SMF上报环路恢复事件之后,还包括:UPF接收来自所述SMF的N4会话修改消息,所述N4会话修改消息中包含恢复所述第一端口数据包转发功能的指示信息;根据所述N4会话修改消息,恢复所述第一端口的数据包转发功能。In one design, after reporting the loop recovery event to the SMF, it further includes: the UPF receives an N4 session modification message from the SMF, and the N4 session modification message includes resuming the first port data packet forwarding Function indication information; according to the N4 session modification message, restore the data packet forwarding function of the first port.
在上述设计中,是以SMF指示UPF恢复第一端口的数据包的转发功能为例描述的。在一种设计中,UPF在自己确定网络恢复正常时,也可以主动恢复第一端口的数据转发功能,也不必等待SMF的指示,从而使得第一端口可以尽快恢复正常。In the above design, the SMF instructs the UPF to restore the forwarding function of the data packets of the first port as an example. In one design, when the UPF determines that the network is back to normal, it can actively restore the data forwarding function of the first port without waiting for an instruction from the SMF, so that the first port can return to normal as soon as possible.
在一种设计中,当所述第一端口为接入端口、N6端口或N19端口时,所述方法还包括:接收来自所述SMF的N4会话建立消息,所述N4会话建立消息中包含执行接入端口环路检测的指示信息,或包含执行N6端口环路检测的指示信息,或包含执行N19端口环路检测的指示信息。In one design, when the first port is an access port, an N6 port or an N19 port, the method further includes: receiving an N4 session establishment message from the SMF, and the N4 session establishment message includes an execution The instruction information of the access port loop detection either includes the instruction information of executing the loop detection of the N6 port, or includes the instruction information of executing the loop detection of the N19 port.
通过上述方法,SMF在向UPF发送N4会话建立消息时,可以直接指示UPF是否进 行相应端口的环路检测。在指示UPF需要进行相应端口的环路检测时,UPF才执行本申请的方法进行环路检测,否则不再进行环路检测。本申请与现有方案有较好的兼容性。Through the above method, when the SMF sends the N4 session establishment message to the UPF, it can directly instruct the UPF whether to perform loop detection on the corresponding port. When the UPF is instructed to perform the loop detection of the corresponding port, the UPF executes the method of the present application to perform the loop detection; otherwise, the UPF does not perform the loop detection. This application has better compatibility with existing schemes.
第二方面,提供一种环路检测方法,该方法是上述第一方面对应的SMF侧,有益效果可能上述第一方面的描述,不再赘述,该方法包括:SMF接收来自用户面功能UPF的端口环路事件,所述端口环路事件中包括用于指示第一端口的指示信息;SMF向OAM发送报警信息,所述报警信息用于指示网络中存在环路,所述报警信息中包括用于指示所述第一端口的指示信息,所述第一端口为UPF中的端口。The second aspect provides a loop detection method, which is the SMF side corresponding to the first aspect above, and the beneficial effect may be as described in the first aspect above, and will not be described again. The method includes: the SMF receives from the user plane function UPF. A port loop event, the port loop event includes indication information for indicating the first port; SMF sends alarm information to OAM, the alarm information is used to indicate that there is a loop in the network, and the alarm information includes For the indication information indicating the first port, the first port is a port in the UPF.
在一种设计中,所述端口环路事件中包括第一端口的指示信息,具体为:所述第一端口为接入端口、且一个以太协议数据单元PDU会话对应一个接入端口时,所述端口环路事件中携带有所述第一端口对应的以太PDU会话的标识;或者,所述第一端口为N6端口、且一个网络实例对应一个N6端口时,所述端口环路事件中携带有所述第一端口对应的网络实例的标识;或者,所述第一端口为N19端口、且所述N19端口为UPF间的接口时,所述端口环路事件中携带有对端UPF的互联网协议IP地址。In one design, the port loop event includes indication information of the first port, specifically: when the first port is an access port, and one Ethernet protocol data unit PDU session corresponds to one access port, the The port loop event carries the identifier of the Ethernet PDU session corresponding to the first port; or, when the first port is an N6 port and one network instance corresponds to one N6 port, the port loop event carries There is an identifier of the network instance corresponding to the first port; or, when the first port is an N19 port and the N19 port is an interface between UPFs, the port loop event carries the Internet of the peer UPF Protocol IP address.
在一种设计中,所述第一端口为接入端口,还包括:SMF向终端发送释放所述第一端口对应的PDU会话的指示信息,该指示信息中携带有释放所述以太PUD会话的原因为网络成环的指示信息;或者,SMF向所述UPF发送N4会话修改消息,该N4会话修改消息中指示所述UPF停止通过所述接入端口转发数据包,和/或指示所述UPF执行环路恢复事件。In one design, the first port is an access port, and further includes: the SMF sends to the terminal instruction information for releasing the PDU session corresponding to the first port, and the instruction information carries information for releasing the Ethernet PUD session The cause is the indication information of network looping; or, the SMF sends an N4 session modification message to the UPF, and the N4 session modification message instructs the UPF to stop forwarding data packets through the access port, and/or instructs the UPF to Perform a loop recovery event.
在一种设计中,所述第一端口为N6端口或N19端口,还包括:SMF向所述UPF发送N4会话修改消息,该N4会话修改消息中指示所述UPF停止通过所述N6端口或N19端口转发数据包,和/或指示所述UPF执行环路恢复事件。In one design, the first port is an N6 port or an N19 port, and further includes: the SMF sends an N4 session modification message to the UPF, and the N4 session modification message instructs the UPF to stop passing through the N6 port or the N19 port. Port forwarding packets, and/or instructing the UPF to perform a loop recovery event.
在一种设计中,还包括:SMF接收来自所述UPF的环路恢复事件;SMF向OAM发送恢复告警,所述恢复告警用于指示网络中不再存在环路,网络恢复正常;SMF向所述UPF发送N4会话修改消息,该N4会话修改消息中包含恢复所述第一端口数据包转发功能的指示信息。In one design, it also includes: the SMF receives the loop recovery event from the UPF; the SMF sends a recovery alarm to the OAM, and the recovery alarm is used to indicate that there is no loop in the network and the network returns to normal; The UPF sends an N4 session modification message, where the N4 session modification message includes indication information for restoring the data packet forwarding function of the first port.
在一种设计中,所述第一端口为接入端口、N6端口或N19端口时,所述方法还包括:SMF向所述UPF发送N4会话建立消息,所述N4会话建立消息中包含执行接入端口环路检测的指示信息,或包含执行N6端口环路检测的指示信息,或包含执行N19端口环路检测的指示信息。In one design, when the first port is an access port, N6 port or N19 port, the method further includes: the SMF sends an N4 session establishment message to the UPF, and the N4 session establishment message includes an execution interface The instruction information of the loop detection on the ingress port, or the instruction information of executing the loop detection of the N6 port, or the instruction information of executing the loop detection of the N19 port.
第三方面,提供一种通信装置,该装置包括执行上述第一方面中所描述的方法/操作/步骤/动作一一对应的单元或模块,该单元或模块可以是硬件电路,也可是软件,也可以是硬件电路结合软件实现。In the third aspect, there is provided a communication device, which includes a one-to-one unit or module for performing the methods/operations/steps/actions described in the first aspect above, and the unit or module can be a hardware circuit or software, It can also be implemented by combining hardware circuits with software.
第四方面,提供一种通信装置,该装置包括处理器与存储器。其中,存储器用于存储计算机程序或指令,处理器与存储器耦合;当处理器执行计算机程序或指令时,使得该装置执行上述第一方面的方法。According to a fourth aspect, a communication device is provided, and the device includes a processor and a memory. Wherein, the memory is used to store computer programs or instructions, and the processor is coupled to the memory; when the processor executes the computer programs or instructions, the device is made to execute the method of the first aspect above.
第五方面,提供一种通信装置,该装置包括执行第二方面中所描述的方法/操作/步骤/动作一一对应的单元或模块,该单元或模块可以是硬件电路,也可是软件,也可以是硬件电路结合软件实现。According to the fifth aspect, a communication device is provided, which includes a one-to-one unit or module for performing the methods/operations/steps/actions described in the second aspect. The unit or module can be a hardware circuit, software, or It can be implemented by combining hardware circuits with software.
第六方面,提供一种通信装置,该装置包括处理器与存储器。其中,存储器用于存储计算机程序或指令,处理器与存储器耦合;当处理器执行计算机程序或指令时,使得该装 置执行上述第二方面的方法。According to a sixth aspect, a communication device is provided, and the device includes a processor and a memory. Wherein, the memory is used to store computer programs or instructions, and the processor is coupled to the memory; when the processor executes the computer programs or instructions, the device is made to execute the method of the second aspect above.
第七方面,提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序或指令,当计算机程序或指令被装置执行时,使得该装置执行上述第一方面、或第二方面的方法。According to the seventh aspect, a computer-readable storage medium is provided, the computer-readable storage medium stores computer programs or instructions, and when the computer programs or instructions are executed by the device, the device executes the above-mentioned first aspect or the second aspect Methods.
第八方面,提供一种计算机程序产品,该计算机程序产品包括计算机程序或指令,当计算机程序或指令被装置执行时,使得该装置执行上述第一方面、或第二方面的方法。In an eighth aspect, a computer program product is provided, the computer program product includes a computer program or an instruction, and when the computer program or instruction is executed by a device, the device executes the method of the first aspect or the second aspect above.
第九方面,提供一种通信系统,包括上述第三方面或第四方面,和第五方面或第六方面的装置。A ninth aspect provides a communication system, including the above-mentioned third aspect or the fourth aspect, and the device of the fifth aspect or the sixth aspect.
附图说明Description of drawings
图1为本申请提供的网络架构示意图;Figure 1 is a schematic diagram of the network architecture provided by the present application;
图2为本申请提供的PDU连接的示意图;Fig. 2 is the schematic diagram of the PDU connection that this application provides;
图3为本申请提供的以太PDU会话的示意图;Fig. 3 is the schematic diagram of the Ethernet PDU conversation that the application provides;
图4为本申请提供的以太PDU会话的交换示意图;Fig. 4 is the exchange schematic diagram of the Ethernet PDU session provided by the present application;
图5为本申请提供的UPF端口的示意图;FIG. 5 is a schematic diagram of a UPF port provided by the present application;
图6至图11为本申请提供的网络成环的示意图;6 to 11 are schematic diagrams of network looping provided by the present application;
图12为本申请提供的环路检测方法的流程图;FIG. 12 is a flow chart of the loop detection method provided by the present application;
图13为本申请提供的接入端口环路的示意图;FIG. 13 is a schematic diagram of an access port loop provided by the present application;
图14为本申请提供的N6端口环路的示意图;Fig. 14 is the schematic diagram of the N6 port loop provided by the present application;
图15为本申请提供的N19端口环路的示意图;Figure 15 is a schematic diagram of the N19 port loop provided by the present application;
图16和图17为本申请提供的通信装置的示意图。FIG. 16 and FIG. 17 are schematic diagrams of communication devices provided by the present application.
具体实施方式Detailed ways
下面结合本申请的附图,对本申请的技术方案进行描述。The technical solutions of the present application are described below in conjunction with the accompanying drawings of the present application.
如图1所示,提供本申请适用的一种网络架构,包括接入网、核心网和终端。As shown in FIG. 1 , a network architecture applicable to this application is provided, including an access network, a core network, and terminals.
其中,接入网用于实现无线接入有关的功能,接入网设备是为终端提供接入的设备。接入网设备还可以称为无线接入网(radio access network,RAN)设备。RAN设备,主要负责空口侧的无线资源管理、服务质量(quality of service,QoS)管理、数据压缩和安全处理等。所述RAN设备可以包括各种形式的基站。例如,宏基站、微基站(小站)、中继站或接入点等。RAN设备包括但不限于:第五代(5 th generation,5G)中的下一代基站(generation nodeB,gNB)、演进型节点B(evolved node B,eNB)、无线网络控制器(radio network controller,RNC)、节点B(node B,NB)、基站控制器(base station controller,BSC)、基站收发台(base transceiver station,BTS)、家庭基站(例如,home evolved nodeB,或home node B,HNB)、基带单元(baseband unit,BBU)、收发点(transmitting and receiving point,TRP)、发射点(transmitting point,TP)、移动交换中心等。RAN设备还可以是云无线接入网络(cloud radio access network,CRAN)场景下的无线控制器、集中单元(centralized unit,CU),和/或分布单元(distributed unit,DU),或者RAN设备可以为中继站、接入点、车载设备、终端、可穿戴设备以及未来第六代(6 th generation,6G)网络中的接入网设备或者未来演进的公用陆地移动通信网络(public land mobile network,PLMN)网络中的接 入网设备等。为了便于描述,下文以基站作为RAN设备的例子进行描述。 Wherein, the access network is used to implement functions related to wireless access, and the access network device is a device that provides access for the terminal. The access network device may also be called a radio access network (radio access network, RAN) device. The RAN device is mainly responsible for radio resource management, quality of service (QoS) management, data compression and security processing on the air interface side. The RAN equipment may include various forms of base stations. For example, a macro base station, a micro base station (small cell), a relay station or an access point, etc. RAN equipment includes but is not limited to: the next-generation base station (generation nodeB, gNB) in the fifth generation (5 th generation, 5G), the evolved node B (evolved node B, eNB), the radio network controller (radio network controller, RNC), node B (node B, NB), base station controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), home base station (for example, home evolved nodeB, or home node B, HNB) , baseband unit (baseband unit, BBU), transceiver point (transmitting and receiving point, TRP), transmitting point (transmitting point, TP), mobile switching center, etc. The RAN device may also be a wireless controller, a centralized unit (centralized unit, CU), and/or a distributed unit (distributed unit, DU) in a cloud radio access network (cloud radio access network, CRAN) scenario, or the RAN device may For relay stations, access points, vehicle-mounted equipment, terminals, wearable devices, and access network equipment in the future sixth generation (6th generation, 6G) network or future evolution of public land mobile network (PLMN) ) access network equipment in the network, etc. For ease of description, a base station is used as an example of a RAN device for description below.
核心网设备可包括以下中的一个或多个网元:接入和移动管理功能(access and mobility management function,AMF)、会话管理功能(session management function,SMF)、用户面功能(user plane function,UPF)、策略控制功能(policy control function,PCF)、应用功能(application function,AF)、统一数据管理(unified data management,UDM)、认证服务器功能(authentication server function,AUSF)、网络切片选择功能(network slice selection function,NSSF)。The core network equipment may include one or more of the following network elements: access and mobility management function (access and mobility management function, AMF), session management function (session management function, SMF), user plane function (user plane function, UPF), policy control function (policy control function, PCF), application function (application function, AF), unified data management (unified data management, UDM), authentication server function (authentication server function, AUSF), network slice selection function ( network slice selection function, NSSF).
AMF:主要负责移动网络中的移动性管理,如用户位置更新、用户注册网络、用户切换等。SMF:主要负责移动网络中的会话管理,如会话建立、修改、释放。具体功能如为用户分配互协网协议(internet protocol,IP)地址、选择提供报文转发功能的UPF等。UPF:主要负责用户数据的转发和接收。在下行传输中,UPF可以从数据网络(data network,DN)接收用户数据,通过接入网设备传输给终端;在上行传输中,UPF可以通过接入网设备从终端接收用户数据,向DN转发该用户数据。可选地,UPF中为终端提供服务的传输资源和调度功能可以由SMF管理控制。PCF:主要支持提供统一的策略框架来控制网络行为,提供策略规则给控制层网络功能,同时负责获取与策略决策相关的用户签约信息。AF:主要支持与3GPP核心网交互来提供服务,例如影响数据路由决策,策略控制功能或者向网络侧提供第三方的一些服务。UDM,主要用于生成认证信任状,用户标识处理(如存储和管理用户永久身份等),接入授权控制和签约数据管理等。AUSF,主要用于在终端接入网络时执行认证,包括接收安全锚点功能(security anchor function,SEAF)发送的鉴权请求,选择鉴权方法,以及向鉴权存储和处理功能(authentication repository and processing function,ARPF)请求鉴权向量等。NSSF,主要用于为终端选择网络切片实例,确定允许的网络切片选择辅助信息(network slice selection assistance information,NSSAI)、配置NSSAI和确定服务终端的AMF集。AMF: Mainly responsible for mobility management in the mobile network, such as user location update, user registration network, user switching, etc. SMF: It is mainly responsible for session management in mobile networks, such as session establishment, modification, and release. Specific functions such as assigning Internet protocol (internet protocol, IP) addresses to users, selecting UPF that provides message forwarding functions, etc. UPF: It is mainly responsible for the forwarding and receiving of user data. In downlink transmission, UPF can receive user data from the data network (DN) and transmit it to the terminal through the access network device; in uplink transmission, UPF can receive user data from the terminal through the access network device and forward it to the DN the User Data. Optionally, the transmission resources and scheduling functions for providing services to terminals in the UPF can be managed and controlled by the SMF. PCF: It mainly supports the provision of a unified policy framework to control network behavior, provides policy rules to the network functions of the control layer, and is responsible for obtaining user subscription information related to policy decisions. AF: It mainly supports interaction with the 3GPP core network to provide services, such as influencing data routing decisions, policy control functions, or providing some third-party services to the network side. UDM is mainly used to generate authentication credentials, user identification processing (such as storing and managing user permanent identities, etc.), access authorization control, and contract data management. AUSF is mainly used to perform authentication when the terminal accesses the network, including receiving the authentication request sent by the security anchor function (SEAF), selecting the authentication method, and submitting to the authentication repository and processing function (authentication repository and processing function, ARPF) request authentication vector, etc. NSSF is mainly used to select network slice instances for terminals, determine allowed network slice selection assistance information (network slice selection assistance information, NSSAI), configure NSSAI, and determine the AMF set of service terminals.
需要说明的是,在不同的通信系统中,上述核心网中的网元可以有不同的名称。在上述图1所示的示意图中,是以第五代移动通信系统为例进行说明的,并不作为对本申请的限定。进一步,上述图1中的核心网网元仅为示意性说明,并不作为对本申请的限定。比如,在图1所示的网络架构中,核心网网元还可包括:网络开放功能(network exposure function,NEF)、网络存储器功能(network repository function,NRF)、或业务控制点(service control point,SCP)等中的一个或多个网元等。It should be noted that, in different communication systems, the above network elements in the core network may have different names. In the above-mentioned schematic diagram shown in FIG. 1 , the fifth generation mobile communication system is taken as an example for illustration, which is not intended to limit the present application. Further, the network elements of the core network in FIG. 1 are only for schematic illustration, and are not intended to limit the present application. For example, in the network architecture shown in Figure 1, the core network elements may also include: network exposure function (network exposure function, NEF), network storage function (network repository function, NRF), or service control point (service control point) , one or more network elements in SCP), etc.
终端也可以称为终端设备、用户设备(user equipment,UE)、移动台、移动终端等。终端可以广泛应用于各种场景,例如,设备到设备(device-to-device,D2D)、车物(vehicle to everything,V2X)通信、机器类通信(machine-type communication,MTC)、物联网(internet of things,IoT)、虚拟现实、增强现实、工业控制、自动驾驶、远程医疗、智能电网、智能家具、智能办公、智能穿戴、智能交通、智慧城市等。终端可以是手机、平板电脑、带无线收发功能的电脑、可穿戴设备、车辆、无人机、直升机、飞机、轮船、机器人、机械臂、智能家居设备等。本申请对终端所采用的具体技术和具体设备形态不做限定。为了便于描述,下文以UE或个人计算机(personal computer,PC)作为终端的例子进行描述。A terminal may also be called terminal equipment, user equipment (user equipment, UE), mobile station, mobile terminal, and so on. Terminals can be widely used in various scenarios, such as device-to-device (D2D), vehicle-to-everything (V2X) communication, machine-type communication (MTC), Internet of Things ( Internet of things, IoT), virtual reality, augmented reality, industrial control, autonomous driving, telemedicine, smart grid, smart furniture, smart office, smart wearables, smart transportation, smart city, etc. Terminals can be mobile phones, tablet computers, computers with wireless transceiver functions, wearable devices, vehicles, drones, helicopters, airplanes, ships, robots, robotic arms, smart home devices, etc. This application does not limit the specific technology and specific equipment form adopted by the terminal. For ease of description, a UE or a personal computer (personal computer, PC) is used as an example of a terminal for description below.
可选地,在图1所示的网络架构中,还可包括:DN。DN可以是为用户提供数据业务服务的服务网络。例如,DN可以是IP多媒体业务(IP multi-media service)网络或互联网(internet)等。其中,终端可以建立从终端到DN的协议数据单元(protocol data unit,PDU) 会话,来访问DN。Optionally, in the network architecture shown in FIG. 1 , it may further include: DN. The DN may be a service network that provides data service for users. For example, the DN may be an IP multimedia service (IP multi-media service) network or the Internet (internet). Wherein, the terminal can establish a protocol data unit (protocol data unit, PDU) session from the terminal to the DN to access the DN.
应当指出,在本申请中,基站的功能也可以由基站中的模块(如芯片)来执行,也可以由包含基站功能的控制子系统来执行。这里的包含有基站功能的控制子系统可以是智能电网、工业控制、智能交通、智慧城市等上述应用场景中的控制中心。终端的功能可以由终端中的模块(如芯片或调制解调器)来执行,也可以由包含有终端功能的装置来执行。核心网网元(例如UPF或SMF等)的功能也可以由核心网网元中的模块(如芯片)来执行,也可以由包含核心网网元的控制子系统来执行等。It should be noted that in this application, the functions of the base station may also be performed by modules (such as chips) in the base station, or may be performed by a control subsystem including the functions of the base station. The control subsystem including base station functions here may be the control center in the above application scenarios such as smart grid, industrial control, intelligent transportation, and smart city. The functions of the terminal may be performed by a module (such as a chip or a modem) in the terminal, or may be performed by a device including the terminal function. The functions of the core network element (such as UPF or SMF, etc.) can also be performed by modules (such as chips) in the core network element, or can be performed by the control subsystem including the core network element.
在5G网络中,为UE和DN网络提供数据交换服务,该服务称为PDU连接服务。UE通过向移动网络发起PDU会话建立请求获得PDU连接服务。网络侧通过为UE维护PDU会话以提供PDU连接服务。如图2所示,加粗虚线表示UE和DN网络之间的业务数据交换路径,该路径为UE在移动网络中的数据业务路径,可简称为数据面路径。加粗实线表示UE和DN之间的信令交换路径,该路径为UE在移动网络中的信令业务数据,可简称为信令面信令。为实现UE与DN网络之间的数据交换,UE需要使用移动网络提供的PDU连接服务,建立基于数据网络名称(data network name,DNN)的PDU会话。PDU会话的建立包括两个基本的过程:UE向移动网络注册入网流程、UE向网络请求建立PDU会话流程,这两个过程属于UE与移动网络的信令面交互流程。图2中加粗实线所涉及的网元,为PDU会话建立涉及的主要网元。In 5G network, data exchange service is provided for UE and DN network, which is called PDU connection service. The UE obtains the PDU connection service by initiating a PDU session establishment request to the mobile network. The network side provides the PDU connection service by maintaining the PDU session for the UE. As shown in Figure 2, the bold dashed line indicates the service data exchange path between the UE and the DN network. This path is the data service path of the UE in the mobile network, which may be referred to as the data plane path for short. The bold solid line indicates the signaling exchange path between the UE and the DN, which is the signaling service data of the UE in the mobile network, which may be referred to as signaling plane signaling for short. In order to realize the data exchange between the UE and the DN network, the UE needs to use the PDU connection service provided by the mobile network to establish a PDU session based on the data network name (DNN). The establishment of a PDU session includes two basic processes: the UE registers with the mobile network to access the network, and the UE requests the network to establish a PDU session. These two processes belong to the signaling plane interaction process between the UE and the mobile network. The network elements involved in the bold solid line in Figure 2 are the main network elements involved in the establishment of the PDU session.
其中,通用的用户注册入网流程可包括:UE通过基站发送注册请求至AMF,AMF根据用户标识向特定UDM获取签约数据。此外,AMF还可向PCF发起用户策略控制建立请求(UE policy control cteate)及接入管理策略控制建立请求(AM policy control creat),分别用于获取UE策略及接入控制策略。PCF在该过程中返回接入控制策略至AMF。AMF响应UE注册请求,并向UE下发相关策略信息,UE完成网络注册驻留。网络侧AMF维护UE的注册入网信息,对UE进行移动性管理。Wherein, the general user registration and network access process may include: the UE sends a registration request to the AMF through the base station, and the AMF obtains subscription data from a specific UDM according to the user identifier. In addition, the AMF can also initiate a user policy control establishment request (UE policy control cteate) and an access management policy control establishment request (AM policy control creat) to the PCF, which are used to obtain UE policies and access control policies respectively. The PCF returns the access control policy to the AMF during this process. The AMF responds to the UE's registration request, and sends relevant policy information to the UE, and the UE completes network registration and camping. The AMF on the network side maintains the registration information of the UE and performs mobility management on the UE.
UE完成注册入网后,可发起PDU会话建立,获取网络的PDU连接服务。通用的PDU会话建立流程可包括:UE通过基站发送PDU会话建立请求到AMF,AMF选择SMF为UE提供会话服务,保存SMF与PDU会话的对应关系,并将会话建立请求发送至SMF,SMF为UE选择相应UPF并建立用户面传输路径,并为其分配IP地址。在此过程中,SMF还将向PCF发起策略控制会话建立请求,用于在SMF和PCF间建立策略控制会话,在策略控制会话建立过程中,SMF将保存策略控制会话与PDU会话间的对应关系。After the UE completes registration and access to the network, it can initiate the establishment of a PDU session to obtain the PDU connection service of the network. The general PDU session establishment process may include: the UE sends a PDU session establishment request to the AMF through the base station, and the AMF selects the SMF to provide session services for the UE, saves the correspondence between the SMF and the PDU session, and sends the session establishment request to the SMF. Select the corresponding UPF and establish a user plane transmission path, and assign an IP address to it. During this process, the SMF will also initiate a policy control session establishment request to the PCF for establishing a policy control session between the SMF and the PCF. During the establishment of the policy control session, the SMF will save the correspondence between the policy control session and the PDU session .
目前,5G网络中支持三种类型的PDU会话:IP类型的PDU会话(可简称为IP会话),包括IPV4会话和IPV6会话,以太类型的PDU会话(可简称为以太会话)。如图3所示,提供一种以太PDU会话的架构图,包括:端侧、3GPP通道和DN侧。端侧采用以太网,PC1为以太网中的PC。客户终端设备(customer premise equipment,CPE)主要起到桥接作用,CPE的左侧端口连接以太网,右侧端口连接3GPP网络。以PC1向PC2传输数据为例,CPE在接收到来自PC1的数据时,将该数据传输到3GPP网络。3GPP网络的基站和UPF等设备,根据该数据的目的地址,转发到DN侧对应的本地交换机(local switch,LSW),LSW将该数据转发给PC2。可选地,上述图3仅示意图,并不作为对本申请的限定。例如,如图4所示,PC1与CPE之间还可以设置有层2交换机(layer 2switch,L2SW)。Currently, three types of PDU sessions are supported in the 5G network: IP-type PDU sessions (referred to as IP sessions for short), including IPV4 sessions and IPV6 sessions, and Ethernet-type PDU sessions (referred to as Ethernet sessions for short). As shown in FIG. 3 , an architecture diagram of an Ethernet PDU session is provided, including: a terminal side, a 3GPP channel, and a DN side. Ethernet is used on the end side, and PC1 is a PC in the Ethernet. The customer premise equipment (CPE) mainly plays the role of bridging. The left port of the CPE is connected to the Ethernet, and the right port is connected to the 3GPP network. Taking PC1 to transmit data to PC2 as an example, when the CPE receives the data from PC1, it transmits the data to the 3GPP network. The base station and UPF of the 3GPP network forward the data to the corresponding local switch (local switch, LSW) on the DN side according to the destination address of the data, and the LSW forwards the data to PC2. Optionally, the foregoing FIG. 3 is only a schematic diagram, and is not intended to limit the present application. For example, as shown in FIG. 4, a layer 2 switch (layer 2 switch, L2SW) may also be set between the PC1 and the CPE.
在本申请中,如图4所示,UPF支持本地交换(所述本地交换是指同一个UPF下的不同PC1的数据交换,例如,PC1与PC2交换),跨网交换(所述跨网交换是指端侧终端与 DN侧终端交换,如PC1和PC4交换)和跨UPF交换(所述跨UPF交换是指不同UPF下PC间的数据交换,如PC2和PC3交换)。可以理解的是,上述交换是指不同PC之间的数据传输。In this application, as shown in Figure 4, UPF supports local exchange (the local exchange refers to the data exchange of different PC1 under the same UPF, for example, PC1 and PC2 exchange), inter-network exchange (the inter-network exchange Refers to the exchange between the end-side terminal and the DN-side terminal, such as the exchange between PC1 and PC4) and cross-UPF exchange (the cross-UPF exchange refers to the data exchange between PCs under different UPFs, such as the exchange between PC2 and PC3). It can be understood that the above exchange refers to data transmission between different PCs.
在本申请中,UPF支持层二广播泛洪能力,所述层二指媒体接入控制(media access control,MAC)层,即如果UPF收到广播、组播或目的MAC地址未知的数据包,则除源端外,UPF需要将该数据包发送给整个局域网(local area network,LAN)中的所有终端。在一示例中,所述目的MAC未知的数据包,是指某数据包的目的MAC地址是UPF未学习到的,即MAC地址表中未记录该目的MAC地址与端口的对应关系。例如,如图4所示,如果PC1、PC2、PC3和PC4同属同一个LAN,则当UPF1接收到PC1发送的目的MAC地址全为F的数据包,则UPF1需要将该数据包发送给PC2、PC3和PC4。In this application, UPF supports layer two broadcast flooding capability, and said layer two refers to the media access control (media access control, MAC) layer, that is, if UPF receives broadcast, multicast or data packets with unknown destination MAC address, Then, except the source end, UPF needs to send the data packet to all terminals in the entire local area network (local area network, LAN). In an example, the data packet with an unknown destination MAC refers to a data packet whose destination MAC address has not been learned by the UPF, that is, the corresponding relationship between the destination MAC address and the port is not recorded in the MAC address table. For example, as shown in Figure 4, if PC1, PC2, PC3, and PC4 belong to the same LAN, then when UPF1 receives a data packet sent by PC1 with destination MAC addresses all F, UPF1 needs to send the data packet to PC2, PC3 and PC4.
举例来说,如图5所示,UPF中存在多种接口。在本申请中,可以把图5中的各种接口抽象为各种端口。例如,N3/N9接口为接入端口,UPF通过接入端口与CPE相连,一个以太PDU会话对应一个接入端口;N6接口为N6端口,UPF通过N6端口与DN相连,一个网络实例(network instance)对应一个N6端口;N19接口为N19端口,UPF通过N19端口与其它UPF相连,一个组会话+一个对端UPF对应一个N19端口。可选地,上述所有端口可以属于同一个网络实例。For example, as shown in Figure 5, there are various interfaces in the UPF. In this application, various interfaces in FIG. 5 can be abstracted into various ports. For example, the N3/N9 interface is the access port, and the UPF is connected to the CPE through the access port. One Ethernet PDU session corresponds to one access port; the N6 interface is the N6 port, and the UPF is connected to the DN through the N6 port. A network instance (network instance ) corresponds to an N6 port; the N19 interface is an N19 port, and the UPF is connected to other UPFs through the N19 port, and a group session + a peer UPF corresponds to an N19 port. Optionally, all the above ports may belong to the same network instance.
在一种设计中,UPF1若从某个端口接收到数据包,该端口可以为接入端口、N6端口或N19端口等,可以先学习该数据包的源MAC地址与接收端口的对应关系,且将学习到对应关系存储在MAC地址表中,再根据该数据包的目的MAC地址转发该数据包。比如,UPF1可以在MAC地址表中,查询该数据包的目的MAC地址所对应的端口。比如,若在MAC地址中查询出的端口为N19端口,则UPF可将该数据包,通过N19端口发送出去。In one design, if UPF1 receives a data packet from a certain port, the port can be an access port, N6 port or N19 port, etc., it can first learn the correspondence between the source MAC address of the data packet and the receiving port, and The learned corresponding relationship is stored in the MAC address table, and then the data packet is forwarded according to the destination MAC address of the data packet. For example, UPF1 may query the port corresponding to the destination MAC address of the data packet in the MAC address table. For example, if the port found in the MAC address is the N19 port, the UPF can send the data packet through the N19 port.
在本申请中,UPF在接收到组播包、广播包、或目的MAC地址未知的单播包时,除了源端口外,会泛洪到所有接入端口、N6端口和N19端口。如果网络中存在环路,网络中的设备会短时间内收到大量,无用重复包,浪费网络资源。需要说明的是,在本申请的上述描述中,是以UPF进行泛洪为例描述的,实质上以太会话中的所有设备或端口,在接收到广播、组播或目的MAC地址未知的单播数据包时,都会执行泛洪的操作。In this application, when UPF receives a multicast packet, a broadcast packet, or a unicast packet with an unknown destination MAC address, it will flood to all access ports, N6 port and N19 port except the source port. If there is a loop in the network, the devices in the network will receive a large number of useless duplicate packets in a short time, wasting network resources. It should be noted that in the above description of this application, UPF is used as an example to describe flooding. In essence, all devices or ports in the Ethernet session receive broadcast, multicast or unicast with unknown destination MAC address. Flooding operation will be performed when the data packet is received.
在本申请中,对网络成环的组网场景进行示例性描述。In this application, a networking scenario in which a network forms a loop is described as an example.
情形1:接入端口环路Scenario 1: Access port loop
如图6所示,LSW1、CPE1、CPE2和UPF形成环路。如果设备1发起组播包、广播包、或目的MAC地址未知的单播包,则LSW1在接收到该数据包时,向CPE1和CPE2转发该数据包。CPE1和CPE2向UPF转发该数据包。UPF在接收到CPE1的数据包时,向设备3、CPE2和设备2转发该数据包。CPE2继续向LSW1转发该数据包,从而导致设备2和设备3在短时间内,收到大量重复的无用数据包。As shown in Figure 6, LSW1, CPE1, CPE2, and UPF form a loop. If device 1 initiates a multicast packet, broadcast packet, or unicast packet with an unknown destination MAC address, LSW1 forwards the data packet to CPE1 and CPE2 when receiving the data packet. CPE1 and CPE2 forward the data packet to the UPF. When the UPF receives the data packet of CPE1, it forwards the data packet to device 3, CPE2 and device 2. CPE2 continues to forward the data packet to LSW1, which causes device 2 and device 3 to receive a large number of repeated useless data packets within a short period of time.
情形2:接入端口+N19端口环路Scenario 2: Access port + N19 port loop
如图7所示,UPF1、UPF2、CPE2、LSW和CPE1形成环路。如果设备1发起组播包、广播包、或目的MAC地址未知的单播包,则该数据包将在环路中不停转发,并泛洪到网络的其他地方,设备2和设备3在短时间内将收到大量重复无用的数据包。As shown in Figure 7, UPF1, UPF2, CPE2, LSW, and CPE1 form a loop. If device 1 initiates a multicast packet, broadcast packet, or unicast packet with an unknown destination MAC address, the data packet will be continuously forwarded in the loop and flooded to other places in the network. A large number of repeated useless data packets will be received within a period of time.
情形3:端侧自组网环路Scenario 3: End-to-side self-organizing network loop
如图8所示,LSW1和CPE1之间形成环路。如果设备1发起组播包、广播包、或目的MAC地址未知的单播包,则该数据包将在环路中不停转发,并泛洪到网络的其他地方, 设备2和设备3将在短时间内,收到大量重复的无用数据包。As shown in Figure 8, a loop is formed between LSW1 and CPE1. If device 1 initiates a multicast packet, broadcast packet, or unicast packet with an unknown destination MAC address, the data packet will be continuously forwarded in the loop and flooded to other places in the network, and device 2 and device 3 will In a short period of time, a large number of repeated useless data packets are received.
情形4:DN侧自环路Scenario 4: Self-loop on the DN side
如图9所示,DN侧的DN SW和VXLAN SW形成环路。如果设备3发起组播包、广播包、或目的MAC地址未知的单播包,则该数据包将在环路中不停转发,并泛洪到网络其他地方,设备1和设备2在短时间内将收到大量重复无用的数据包。As shown in Figure 9, the DN SW and VXLAN SW on the DN side form a loop. If device 3 initiates a multicast packet, broadcast packet, or unicast packet with an unknown destination MAC address, the data packet will be continuously forwarded in the loop and flooded to other places in the network. A large number of repeated useless data packets will be received.
情形5:N6端口和N19端口环路Scenario 5: Loop between N6 port and N19 port
如图10所示,UPF1、VXLAN SW1、DN SW、VLAN SW2和UPF2之间形成环路。如果设备3发起组播包、广播包、或目的MAC地址未知的单播包,则该数据包将在环路中不停转发,并泛洪到网络的其他地方,设备1和设备2在短时间内将收到大量重复的无用数据包。As shown in Figure 10, a loop is formed between UPF1, VXLAN SW1, DNS SW, VLAN SW2, and UPF2. If device 3 initiates a multicast packet, broadcast packet, or unicast packet with an unknown destination MAC address, the data packet will be continuously forwarded in the loop and flooded to other places in the network. A large number of repeated useless packets will be received within a period of time.
情形6:N3端口和N6端口环路Scenario 6: N3 port and N6 port loop
如图11所示,UPF、VXLAN SW和CPE2之间形成环路。如果设备1发起组播包、广播包、或目的MAC地址未知的单播包,则该数据包将在环路中不停转发,并且泛洪到网络的其他地方,设备2将在短时间内收到大量无用的数据包。As shown in Figure 11, a loop is formed between UPF, VXLAN SW, and CPE2. If device 1 initiates a multicast packet, broadcast packet, or unicast packet with an unknown destination MAC address, the data packet will be continuously forwarded in the loop and flooded to other places in the network, and device 2 will Received a lot of useless packets.
在本申请提供一种环路检测方法,利用该方法可以检测网络是否存在环路,如果网络中存在环路时可以及时进行相关破环的操作,从而避免设备在短时间内收到大量重复无用的数据包,减少对网络资源的浪费。如图12所示,该方法至少包括以下步骤:This application provides a loop detection method, which can be used to detect whether there is a loop in the network, and if there is a loop in the network, the relevant loop-breaking operations can be performed in time, thereby preventing the device from receiving a large number of repeated useless loops in a short period of time. packets, reducing the waste of network resources. As shown in Figure 12, the method at least includes the following steps:
步骤1201:UPF在第一端口接收到数据包,所述数据包为广播数据包、组播数据包或目的MAC地址未知的单播数据包。Step 1201: The UPF receives a data packet at the first port, and the data packet is a broadcast data packet, a multicast data packet or a unicast data packet with an unknown destination MAC address.
其中,上述第一端口可以为接入端口(即N3/N9端口)、N6端口或N19端口。Wherein, the above-mentioned first port may be an access port (that is, an N3/N9 port), an N6 port or an N19 port.
步骤1202:在MAC地址表中,若该数据包的源MAC地址所对应的端口在第一预设时长内的变换次数达到预设次数时,则UPF构造检测包,该检测包为广播数据包或组播数据包。Step 1202: In the MAC address table, if the port corresponding to the source MAC address of the data packet has changed the number of times within the first preset time length to a preset number of times, the UPF constructs a detection packet, and the detection packet is a broadcast data packet or multicast packets.
在本申请中,MAC地址表中记录有UPF所接收的数据包的源MAC地址与接收到该数据的端口信息的对应关系。在UPF每接收到一个数据包时,则对该数据包的源MAC地址进行学习,在MAC地址表中记录该数据包的源MAC地址与接收端口的对应关系。后续接收到目的MAC地址为上述源MAC地址的数据包时,通过对应的端口转发该数据包。举例来说,UPF通过端口1接收到数据包1,该数据包1的源MAC地址为MAC地址A。UPF可以对该MAC地址A进行学习,记录MAC地址A与端口1的对应关系。后续,UPF接收到数据包2时,若该数据包2的目的MAC地址为MAC地址A,则UPF可以向端口1发送该数据包2。在本申请中,当UPF接收到一个数据包时,若在MAC地址表中,该数据包的源MAC地址所对应的端口在第一预设时长内的变换次数达到预设次数时,则该数据包可能在不同的设备间进行转发,此时有理由怀疑网络中存在环路,UPF可以构造检测包,以检测该网络中是否存在环路。如果在第二预设时长内,UPF又在该检测包的发送端口或其它端口,接收到该检测包,则UPF确定网络中存在环路;否则,UPF确定网络中不存在环路。In this application, the MAC address table records the correspondence between the source MAC address of the data packet received by the UPF and the port information that received the data. When the UPF receives a data packet, it learns the source MAC address of the data packet, and records the corresponding relationship between the source MAC address of the data packet and the receiving port in the MAC address table. When subsequently receiving a data packet whose destination MAC address is the above-mentioned source MAC address, the data packet is forwarded through a corresponding port. For example, the UPF receives data packet 1 through port 1, and the source MAC address of the data packet 1 is MAC address A. The UPF can learn the MAC address A, and record the correspondence between the MAC address A and port 1. Subsequently, when the UPF receives the data packet 2, if the destination MAC address of the data packet 2 is MAC address A, the UPF may send the data packet 2 to the port 1. In this application, when the UPF receives a data packet, if in the MAC address table, the port corresponding to the source MAC address of the data packet reaches the preset number of times within the first preset duration, the Data packets may be forwarded between different devices. At this time, there is reason to suspect that there is a loop in the network. UPF can construct a detection packet to detect whether there is a loop in the network. If the UPF receives the detection packet at the sending port of the detection packet or other ports within the second preset time period, the UPF determines that there is a loop in the network; otherwise, the UPF determines that there is no loop in the network.
步骤1203:UPF向第一端口发送所述检测包,所述检测包用于检测网络中是否存在环路。Step 1203: The UPF sends the detection packet to the first port, and the detection packet is used to detect whether there is a loop in the network.
通过上述步骤1201的记载可以看出,上述第一端口为接收所述数据包的端口。UPF除了向上述第一端口发送所述检测包外,还可以向第二端口发送所述检测包,所述第二端 口对应的端口信息为所述MAC地址表中记录的、之前与通过所述第一端口所接收的数据包的源MAC地址存在对应关系的端口信息。假设UPF在第一端口接收到一个数据包,该数据包可称为目标数据包。若UPF通过MAC地址表中,发现该目标数据包的源MAC地址对应的端口信息频繁发生变化,则UPF可以怀疑网络中存在环路,导致该数据包在不同的设备间转发,使得UPF在短时间内重复收到该目标数据包。此时,UPF可以构造一个检测包,检测网络中是否真的存在环路。UPF可以通过接收该目标数据包的第一端口,发送该检测包。可选地,UPF还可以在MAC地址表中,查询之前MAC地址表中记录的,该目标数据包的源MAC地址所对应的端口,可称为第二端口。UPF除通过第一端口外,还可以通过第二端口发送该检测包。如果在第二预设时长内,UPF再次通过发送检测包的端口,或其它端口,接收到该检测包,则UPF可以确定网络中存在环路。否则,确定网络中不存在环路。It can be seen from the description of the above step 1201 that the above-mentioned first port is a port for receiving the data packet. In addition to sending the detection packet to the above-mentioned first port, the UPF may also send the detection packet to the second port, and the port information corresponding to the second port is recorded in the MAC address table, previously and through the There is port information corresponding to the source MAC address of the data packet received by the first port. Assuming that the UPF receives a data packet at the first port, the data packet may be called a target data packet. If UPF finds that the port information corresponding to the source MAC address of the target data packet changes frequently through the MAC address table, UPF may suspect that there is a loop in the network, causing the data packet to be forwarded between different devices, making UPF The target packet is repeatedly received within the time. At this time, UPF can construct a detection packet to detect whether there is a loop in the network. The UPF may send the detection packet through the first port receiving the target data packet. Optionally, the UPF may also query the MAC address table for a port corresponding to the source MAC address of the target data packet recorded in the MAC address table, which may be referred to as a second port. In addition to the first port, the UPF may also send the detection packet through the second port. If the UPF receives the detection packet again through the port that sent the detection packet or other ports within the second preset time period, the UPF may determine that there is a loop in the network. Otherwise, it is determined that there are no loops in the network.
在本申请中,如果UPF确定网络中确实存在环路,可以向SMF网元上报端口环路事件,该端口环路事件中包括用于指示所述第一端口的指示信息。SMF在接收到上述端口环路事件时,可以向操作管理维护系统(operation administration and maintenance,OAM)发送报警信息,所述报警信息用于指示网络中存在环路,所述报警信息中包括用于指示所述第一端口的指示信息,所述第一端口属于网络。可选地,OAM在接收到上述报警时,可以人工或采用其它方式等,拆除网络中的环路。In this application, if the UPF determines that there is indeed a loop in the network, it may report a port loop event to the SMF network element, and the port loop event includes indication information for indicating the first port. When the SMF receives the above-mentioned port loop event, it can send alarm information to the operation management and maintenance system (operation administration and maintenance, OAM), the alarm information is used to indicate that there is a loop in the network, and the alarm information includes Indication information indicating the first port, where the first port belongs to the network. Optionally, when receiving the above alarm, the OAM may remove the loop in the network manually or in other ways.
在一种示例中,如果上述第一端口为接入端口,即N3/N9端口,则UPF向SMF上报接入端口环路事件。由于一个PDU会话对应一个接入端口,则上述接入端口环路事件中可以携带有第一端口对应的以太PDU会话的标识。SMF在接收到上述接入端口环路事件时,可以执行以下至少一项操作:In an example, if the above-mentioned first port is an access port, that is, the N3/N9 port, the UPF reports the access port loop event to the SMF. Since one PDU session corresponds to one access port, the access port loop event may carry the identifier of the Ethernet PDU session corresponding to the first port. When the SMF receives the above access port loop event, it can perform at least one of the following operations:
1、SMF主动释放该接入端口对应的以太PDU会话,并向UE发送释放该接入端口对应的以太PDU会话的指示信息。例如,SMF可以向UE发送释放以太PDU会话的非接入层(non-access stratum,NAS)消息,该NAS消息中携带有释放所述以太PDU会话的原因为网络成环。UE在接收到该NAS消息时,释放该以太PDU会话,且UE在短时间不能再次建立以太PDU会话,以防止再次触发接入端口环路事件。1. The SMF actively releases the Ethernet PDU session corresponding to the access port, and sends instruction information for releasing the Ethernet PDU session corresponding to the access port to the UE. For example, the SMF may send a non-access stratum (non-access stratum, NAS) message for releasing the Ethernet PDU session to the UE, where the NAS message carries the reason for releasing the Ethernet PDU session that the network is looped. When the UE receives the NAS message, it releases the Ethernet PDU session, and the UE cannot establish the Ethernet PDU session again in a short time, so as to prevent the access port loop event from being triggered again.
2、SMF向UPF发送N4会话修改消息,该N4会话修改消息中指示所述UPF停止通过该接入端口转发数据包,和/或指示UPF执行接入端口环路恢复事件。2. The SMF sends an N4 session modification message to the UPF, in which the N4 session modification message instructs the UPF to stop forwarding data packets through the access port, and/or instructs the UPF to execute the access port loop recovery event.
在一种示例中,如果上述第一端口为N6端口,则UPF向SMF上报N6端口环路事件。一个网络实施对应一个N6端口,则上述N6端口环路事件中携带有N6端口对应的网络实例的标识。SMF在接收到上述N6端口环路事件的告警时,可以执行以下操作:SMF向UPF发送N4会话修改消息,该N4会话消息中指示所述UPF停止通过N6端口转发数据包,和/或指示所述UPF执行N6端口环路恢复事件等。可选地,SMF可以设置N6端口对应的网络实施下的所有相关以太PUD会话设置停止向该N6端口转发数据包。In an example, if the first port is an N6 port, the UPF reports the N6 port loop event to the SMF. One network implementation corresponds to one N6 port, and the above-mentioned N6 port loop event carries the identifier of the network instance corresponding to the N6 port. When the SMF receives the alarm of the above-mentioned N6 port loop event, the following operations can be performed: the SMF sends an N4 session modification message to the UPF, and the N4 session message instructs the UPF to stop forwarding data packets through the N6 port, and/or indicates the The above UPF executes the N6 port loop recovery event, etc. Optionally, the SMF may set all relevant Ethernet PUD session settings under the network implementation corresponding to the N6 port to stop forwarding data packets to the N6 port.
在一种示例中,如果上述第一端口为N19端口,则UPF向SMF上报N19端口环路事件。N19端口为UPF间的接口。可选地,每个UPF下的每个N19端口对应一个5G LAN组下的每个对端UPF。上述N19端口环路事件中携带有对端UPF的IP地址。SMF在接收到N19端口环路事件时,可以向UPF发送N4会话修改消息,该N4会话修改消息中携带有UPF停止通过该N19端口转发数据包,和/或指示所述UPF执行N19环路恢复事件等。In an example, if the first port is the N19 port, the UPF reports the N19 port loop event to the SMF. Port N19 is the interface between UPFs. Optionally, each N19 port under each UPF corresponds to each peer UPF under a 5G LAN group. The above-mentioned N19 port loop event carries the IP address of the peer UPF. When the SMF receives the N19 port loop event, it can send an N4 session modification message to the UPF, the N4 session modification message carries the UPF to stop forwarding data packets through the N19 port, and/or instruct the UPF to perform N19 loop recovery events etc.
应当指出,在上述描述中,是以SMF指示UPF停止通过第一端口转发数据包,或指 示UPF执行环路恢复事件为例描述的。可以理解的是,在UPF确定当前网络中存在环路时,可以自行停止通过该端口转发数据包,和/或,执行环路恢复事件等,而不必等待SMF的指示。It should be noted that in the above description, the SMF instructs the UPF to stop forwarding data packets through the first port, or instructs the UPF to execute the loop recovery event as an example. It can be understood that when the UPF determines that there is a loop in the current network, it can stop forwarding data packets through the port by itself, and/or perform loop recovery events, etc., without waiting for an instruction from the SMF.
在本申请中,UPF执行环路恢复事件的过程,可包括:UPF构成检测包,所述检测包同样可以为广播包或组播包。UPF向第一端口发送该检测包。若在第三预设时长内,UPF的第一端口或其它端口没有接收到所述检测包,则代表所述网络中不存在环路,网络恢复正常,向SMF上报环路恢复事件;否则,继续上述过程,构造检测包,且向所述第一端口发送检测包等。In this application, the process of the UPF executing the loop recovery event may include: the UPF forms a detection packet, and the detection packet may also be a broadcast packet or a multicast packet. The UPF sends the detection packet to the first port. If within the third preset time length, the first port or other ports of the UPF do not receive the detection packet, it means that there is no loop in the network, the network returns to normal, and the loop recovery event is reported to the SMF; otherwise, Continue the above process, construct a detection packet, and send the detection packet to the first port.
在一种示例中,UPF可以启动定时器,定时构成一个检测包,从第一端口发送检测包进行环路检测。例如,定时器的定时时长可以为2分钟,则UPF可以每间隔2分钟进行一次环路检测。每次环路检测的过程可包括:UPF构造一个检测包,通过第一端口发送该检测包。如果在预设时长内,当然该预设时长应该小于上述进行环路检测的周期,UPF在第一端口或其它端口接收到该检测包,则表示该网络中仍然存在环路,继续进行环路检测。针对某一次环路检测,若在发送上述检测包后的预设时长内,在第一端口或其它端口没有接收到该检测包,则表示环路恢复正常,向SMF上报环路恢复事件。可选地,SMF在接收到上述UPF上报的环路恢复事件时,可以向OAM发送恢复告警,所述恢复告警用于指示网络中不再存在环路,网络恢复正常。SMF可以向UPF发送N4会话修改消息,该N4会话修改消息中包含恢复所述第一端口数据转发功能的指示信息。可选地,所述N4会话修改消息中可以携带有包检测规则(packet detection rule,PDR)、转发动作规则(forwarding action rule,FAR)等。UPF按照新指示的PDR和FAR的要求,转发数据。In an example, the UPF may start a timer, periodically form a detection packet, and send the detection packet from the first port to perform loop detection. For example, the timing duration of the timer may be 2 minutes, and the UPF may perform loop detection every 2 minutes. The process of each loop detection may include: the UPF constructs a detection packet, and sends the detection packet through the first port. If within the preset duration, of course, the preset duration should be shorter than the loop detection period mentioned above, and the UPF receives the detection packet at the first port or other ports, it means that there is still a loop in the network, and the loop continues detection. For a certain loop detection, if the detection packet is not received at the first port or other ports within a preset period of time after sending the detection packet, it means that the loop is back to normal, and the loop recovery event is reported to the SMF. Optionally, when the SMF receives the loop recovery event reported by the UPF, it may send a recovery alarm to the OAM, the recovery alarm is used to indicate that there is no loop in the network and the network returns to normal. The SMF may send an N4 session modification message to the UPF, where the N4 session modification message includes indication information for restoring the data forwarding function of the first port. Optionally, the N4 session modification message may carry a packet detection rule (packet detection rule, PDR), a forwarding action rule (forwarding action rule, FAR), etc. The UPF forwards data according to the requirements of the newly indicated PDR and FAR.
参照上述描述可知,UPF启动定时器,定时进行环路检测。如果在超过一定时长,例如第四预设时长后,网络中的环路仍存在,则UPF可以停止再进行环路检测,关闭第一端口的数据转发功能。可选的,在这情况下,可能需要通过人工干预来恢复第一端口的数据转发功能,比如人工触发CPE复位、或通过本地操作维护(operation maintenance,OM)下发恢复数据转发功能等。Referring to the above description, it can be seen that the UPF starts a timer to perform loop detection at regular intervals. If the loop in the network still exists after a certain period of time, such as the fourth preset period of time, the UPF may stop loop detection and close the data forwarding function of the first port. Optionally, in this case, manual intervention may be required to restore the data forwarding function of the first port, such as manually triggering a CPE reset, or issuing a local operation maintenance (OM) to restore the data forwarding function, etc.
可选的,在上述步骤1201之前,还可包括:SMF向UPF发送N4会话建立消息,上述第一端口为接入端口,该N4会话建立消息中包含执行接入端口环路检测的指示信息;或者,第一端口为N6端口,上述N4会话建立消息中包含执行N6端口环路检测的指示信息;或者,第一端口为N19端口,上述N4会话建立消息中包含执行N19端口环路检测的指示信息。Optionally, before the above step 1201, it may also include: the SMF sends an N4 session establishment message to the UPF, the above-mentioned first port is an access port, and the N4 session establishment message includes instruction information for performing loop detection on the access port; Or, the first port is an N6 port, and the above-mentioned N4 session establishment message includes an instruction to perform loop detection on the N6 port; or, the first port is an N19 port, and the above-mentioned N4 session establishment message includes an instruction to perform loop detection on the N19 port information.
由于在层二交换机制中,对于组播包、广播包、或目的地址未知的单播包,按照泛洪方式进行转发。如果网络中存在环路,则会导致数据包不停的在网络中转发,消耗网络资源。在本申请中,UPF可以对3GPP中定义的各个接口进行环路检测,并且在报警后,可以再次检测网络中的环路是否恢复,确保网络稳健工作。In the Layer 2 switching mechanism, multicast packets, broadcast packets, or unicast packets with unknown destination addresses are forwarded in a flooding manner. If there is a loop in the network, data packets will be continuously forwarded in the network, consuming network resources. In this application, UPF can perform loop detection on each interface defined in 3GPP, and after an alarm, can detect whether the loop in the network is recovered again to ensure the stable operation of the network.
在一示例中,以接入端口环路检测和破环为例,对本申请进行描述。如图13所示,UPF通过接入端口,即N3/N9,接收到数据包,该数据包的源MAC地址在短时间内频繁发生变化,至少包括以下过程:In an example, the present application is described by taking the loop detection and breaking of the access port as an example. As shown in Figure 13, UPF receives a data packet through the access port, that is, N3/N9, and the source MAC address of the data packet changes frequently in a short period of time, at least including the following process:
1、CPE在建立以太PDU会话时,SMF在N4会话建立消息中要求UPF执行接入端口环路检测事件。1. When the CPE establishes an Ethernet PDU session, the SMF requests the UPF to perform an access port loop detection event in the N4 session establishment message.
2、当UPF从接入端口收到上行数据包时,在MAC地址表中,记录该上行数据包的 源MAC地址时,如果发现该数据包的源MAC地址在短时间内频繁变化,则UPF构造一个检测包,从该接入端口下发进行环路检测。如果短时间内,UPF又在该接入端口或其它端口接收到该检测包,则UPF认为与该接入端口连接的网络成环;UPF上报接入端口环路事件给SMF。2. When UPF receives an uplink data packet from the access port, when recording the source MAC address of the uplink data packet in the MAC address table, if the source MAC address of the data packet changes frequently in a short period of time, UPF Construct a detection packet and deliver it from the access port for loop detection. If the UPF receives the detection packet on the access port or other ports within a short period of time, the UPF considers that the network connected to the access port forms a loop; the UPF reports the access port loop event to the SMF.
3、SMF在接收到上述接入端口环路事件时,首先向OAM报警,之后可以执行以下任一项操作,可选的,具体执行哪些操作,可以由SMF的本地配置决定:3. When the SMF receives the above-mentioned access port loop event, it first sends an alarm to the OAM, and then can perform any of the following operations. Optionally, the specific operations to be performed can be determined by the local configuration of the SMF:
A、SMF主动释放该接入端口对应的以太PDU会话,向UE发送释放以太PDU会话的NAS信令,该NAS信令中包括释放该以太PDU会话的原因为网络成环。可选地,UE在短时间内,不能再次建立以太PDU会,以避免再次触发接入端口环路事件。A. The SMF actively releases the Ethernet PDU session corresponding to the access port, and sends NAS signaling to the UE to release the Ethernet PDU session. The NAS signaling includes that the reason for releasing the Ethernet PDU session is network looping. Optionally, the UE cannot establish the Ethernet PDU session again within a short period of time, so as to avoid triggering the access port loop event again.
B、SMF向UPF发送N4会话修改消息,该N4会话修改消息要求UPF停止转发数据包,并要求UPF执行接入端口环路恢复事件。B. The SMF sends an N4 session modification message to the UPF, and the N4 session modification message requires the UPF to stop forwarding data packets, and requires the UPF to perform an access port loop recovery event.
4、UPF在接收到上述B方案中的N4会话修改消息时,启动定时器,定时构造检测包,从该接入端口下发进行环路检测。4. When the UPF receives the N4 session modification message in the above-mentioned scheme B, it starts a timer, constructs a detection packet regularly, and sends it from the access port to perform loop detection.
如果UPF在短时间内,没有从上述接入端口或其他端口接收到上述检测包,则UPF向SMF上报接入端口环路恢复事件。或者,若UPF在短事件内在上述接入端口或其他端口再次接收到该检测包,则UPF按照上述定时器的周期,继续进行检测。如果网络长时间没有恢复,则UPF将终止该接入端口的数据转发能力,这时可能需要人工干预来恢复该接入端口的数据转发能力。If the UPF does not receive the detection packet from the access port or other ports within a short period of time, the UPF reports the access port loop recovery event to the SMF. Or, if the UPF receives the detection packet again at the above-mentioned access port or other ports within a short event, the UPF continues to perform detection according to the period of the above-mentioned timer. If the network does not recover for a long time, the UPF will terminate the data forwarding capability of the access port. At this time, manual intervention may be required to restore the data forwarding capability of the access port.
5、SMF在接收到UPF上报的环路恢复事件时,首先向OAM上报恢复告警,然后向UPF发送N4会话修改消息,该N4会话修改消息中携带有要求UPF恢复该接入端口数据转发功能的指示信息。5. When the SMF receives the loop recovery event reported by the UPF, it first reports the recovery alarm to the OAM, and then sends an N4 session modification message to the UPF, which contains a request for the UPF to restore the data forwarding function of the access port. Instructions.
在一示例中,以N6端口环路检测和破环为例,对本申请进行描述。如图14所示,UPF通过N6端口接收到一个数据包,根据MAC地址表的记录,该数据包的源MAC地址在短时间内频繁变化,至少包括以下过程:In an example, the present application is described by taking the loop detection and breaking of the N6 port as an example. As shown in Figure 14, the UPF receives a data packet through the N6 port. According to the records in the MAC address table, the source MAC address of the data packet changes frequently in a short period of time, at least including the following process:
1、CPE建立以太PDU会话时,SMF在N4会话建立消息中要求UPF执行N6端口环路检测事件,并要求UPF在环路事件发生时,停止向N6端口转发数据,直到该N6端口环路恢复。1. When CPE establishes an Ethernet PDU session, SMF requires UPF to perform N6 port loop detection event in the N4 session establishment message, and requires UPF to stop forwarding data to N6 port when a loop event occurs, until the N6 port loop is restored .
2、当UPF从N6接口接收到下行数据包,在记录的数据包的源MAC地址时,如果发现该源MAC地址在短时间内频繁变化,则UPF可以构成一个检测包,从N6端口发送进行环路检测。如果在短时间内,UPF又从该N6端口或其它端口接收到该检测包,则UPF认为N6端口连接的网络成环,向SMF上报N6端口环路事件,该事件中携带N6端口对应的网络实例。UPF自动停止向N6端口转发数据包。2. When the UPF receives a downlink data packet from the N6 interface, if the source MAC address of the recorded data packet is found to change frequently in a short period of time, the UPF can form a detection packet and send it from the N6 port. Loop detection. If within a short period of time, UPF receives the detection packet from the N6 port or other ports, the UPF considers that the network connected to the N6 port forms a loop, and reports the N6 port loop event to the SMF, which carries the network information corresponding to the N6 port. instance. UPF automatically stops forwarding packets to N6 port.
3、SMF接收到上述N6端口环路事件时,向OAM报警。可选的,SMF可以向该N6端口对应的网络实例下的所有相关以太PDU会话,设置停止向N6端口转发数据包。3. When the SMF receives the above-mentioned N6 port loop event, it sends an alarm to the OAM. Optionally, the SMF may set all relevant Ethernet PDU sessions under the network instance corresponding to the N6 port to stop forwarding data packets to the N6 port.
4、UPF启动定时器,定时构造检测包,从N6端口发送进行环路检测。4. The UPF starts a timer, constructs a detection packet regularly, and sends it from the N6 port for loop detection.
如果UPF在短时间内,没有从该N6端口或其它端口接收到该检测包,则UPF向SMF上报N6端口环路恢复事件。可选地,SMF可以进一步进行相应的操作,例如向OAM上报恢复告警等。If the UPF does not receive the detection packet from the N6 port or other ports within a short period of time, the UPF reports the N6 port loop recovery event to the SMF. Optionally, the SMF may further perform corresponding operations, such as reporting a recovery alarm to the OAM.
如果UPF在短时间内,又从该N6端口或其它端口接收到该检测包,则UPF根据该定时器的定时,继续周期性进行环路检测。如果网络中的环路长时间没有恢复,则UPF将终 止该N6端口的数据转发功能,这时可能需要人工干预来恢复该N6端口的数据转发功能。If the UPF receives the detection packet from the N6 port or other ports within a short period of time, the UPF will continue to perform loop detection periodically according to the timing of the timer. If the loop in the network does not recover for a long time, UPF will terminate the data forwarding function of the N6 port, and manual intervention may be required to restore the data forwarding function of the N6 port.
在一示例中,以N19端口环路检测和破环为例。如图15所示,UPF1通过N19端口接收到数据包,该数据包的源MAC地址,在MAC地址表中的记录中,在短时间内频繁变化,则至少包括以下过程:In an example, the loop detection and breaking of the N19 port is taken as an example. As shown in Figure 15, UPF1 receives a data packet through the N19 port. The source MAC address of the data packet, in the record in the MAC address table, changes frequently in a short period of time, and at least includes the following process:
1、SMF发现需要在不同的UPF之间建立转发通道时,SMF在N4会话建立消息中要求UPF执行N19端口环路检测事件。1. When the SMF finds that a forwarding channel needs to be established between different UPFs, the SMF requests the UPF to perform the N19 port loop detection event in the N4 session establishment message.
2、当UPF在N19端口接收到数据包,在记录MAC地址时,如果发现该数据包的源MAC地址在短时间内频繁变化,则UPF构造检测包,从该N19端口发送进行环路检测。如果在短时间内,UPF在该N19端口或其他端口接收到该检测包,则UPF认为该N19端口连接的网络成环;UPF向SMF上报N19端口环路事件,该N19端口环路事件中携带有对侧UPF的IP对应。例如,图15中UPF2的IP地址。2. When UPF receives a data packet at the N19 port and records the MAC address, if it finds that the source MAC address of the data packet changes frequently in a short period of time, the UPF constructs a detection packet and sends it from the N19 port for loop detection. If within a short period of time, UPF receives the detection packet on the N19 port or other ports, UPF considers that the network connected to the N19 port forms a loop; UPF reports the N19 port loop event to the SMF, and the N19 port loop event carries There is IP correspondence of the opposite side UPF. For example, the IP address of UPF2 in Figure 15.
3、SMF收到N19端口环路事件时,首先向OAM上报,然后向UPF发送N4会话修改消息,该N4会话修改消息中可包括要求UPF停止转发数据包到UPF2的指示信息,和要求UPF执行N19端口环路恢复事件的指示信息。3. When the SMF receives the N19 port loop event, it first reports to the OAM, and then sends the N4 session modification message to the UPF. The N4 session modification message may include instructions to request the UPF to stop forwarding data packets to UPF2, and request the UPF to execute Instructions for loop recovery events on the N19 port.
4、UPF在接收到上述N4会话修改消息时,首先启动定时器,定时构造检测包从该N19端口发送进行环路检测。4. When the UPF receives the above-mentioned N4 session modification message, it first starts a timer, and regularly constructs a detection packet to be sent from the N19 port for loop detection.
如果UPF在短时间内,没有从本N19端口或其他端口接收到该检测包,则UPF向SMF上报N19端口环路恢复事件,该N19端口环路恢复事件中携带有对端UPF的IP地址。如果UPF在短时间内,又在该N19端口或其他端口接收到该检测包,则UPF根据该定时器的定时周期,继续构造检测包进行环路检测。如果长时间网络都没有恢复正常,网络中一直存在环路,则UPF终止该N19端口的数据转发功能,这时需要通过人工干预来恢复该N19端口的数据转发功能。If the UPF does not receive the detection packet from the local N19 port or other ports within a short period of time, the UPF reports the N19 port loop recovery event to the SMF, and the N19 port loop recovery event carries the IP address of the peer UPF. If the UPF receives the detection packet at the N19 port or other ports within a short period of time, the UPF will continue to construct the detection packet for loop detection according to the timing period of the timer. If the network has not returned to normal for a long time and there is a loop in the network, the UPF terminates the data forwarding function of the N19 port, and manual intervention is required to restore the data forwarding function of the N19 port.
5、SMF在接收到N19端口环路恢复事件时,首先向OAM发送恢复告警,向UPF发送N4会话修改消息,要求UPF恢复转发数据包到UPF2。UPF按照N4会话修改消息中携带的新的PDR和FRA的要求,进行数据包转发。5. When the SMF receives the N19 port loop recovery event, it first sends a recovery alarm to the OAM, and sends an N4 session modification message to the UPF, requesting the UPF to resume forwarding data packets to UPF2. The UPF forwards the data packet according to the requirements of the new PDR and FRA carried in the N4 session modification message.
可以理解的是,为了实现上述方法实施例中的功能,UPF和SMF中包括了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本申请所公开的实施例描述的各示例的单元及方法步骤,本申请能够以硬件或硬件和计算机软件相结合的形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用场景和设计约束条件。It can be understood that, in order to realize the functions in the foregoing method embodiments, the UPF and the SMF include hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that the present application can be implemented in the form of hardware or a combination of hardware and computer software with reference to the units and method steps of each example described in the embodiments disclosed in the present application. Whether a certain function is executed by hardware or computer software drives the hardware depends on the specific application scenario and design constraints of the technical solution.
图16和图17为本申请提供的可能的通信装置的结构示意图。这些通信装置可以用于实现上述方法实施例中UPF或SMF的功能,因此也能实现上述方法实施例所具备的有益效果。在本申请中,该通信装置可以是如图1所示的UPF或SMF,还可以是应用于UPF或SMF中的模块(如芯片)。FIG. 16 and FIG. 17 are schematic structural diagrams of possible communication devices provided in this application. These communication devices can be used to implement the functions of the UPF or SMF in the above method embodiments, and therefore can also achieve the beneficial effects of the above method embodiments. In this application, the communication device may be a UPF or an SMF as shown in FIG. 1 , and may also be a module (such as a chip) applied to the UPF or the SMF.
如图16所示,通信装置1600包括处理单元1610和收发单元1620。通信装置1600用于实现上述方法实施例中UPF或SMF的功能。As shown in FIG. 16 , a communication device 1600 includes a processing unit 1610 and a transceiver unit 1620 . The communication device 1600 is configured to implement the functions of the UPF or the SMF in the foregoing method embodiments.
当通信装置1600用于实现上述方法实施例中UPF的功能时:收发单元1620,用于在第一端口接收数据包,所述数据包为广播数据包、组播数据包或目的MAC地址未知的单播数据包;处理单元1610,用于在MAC地址表中,若该数据包的源MAC地址所对应的端口信息在第一预设时长内的变换次数达到预设次数时,则构造检测包,该检测包为广播 数据包或组播数据包,所述MAC地址表中记录有UPF网元所接收的数据包的源MAC地址与接收该数据包的端口信息的对应关系;收发单元1620,还用于向所述第一端口发送所述检测包,所述检测包用于检测网络中是否存在环路。When the communication device 1600 is used to realize the function of UPF in the above method embodiment: the transceiver unit 1620 is used to receive a data packet at the first port, and the data packet is a broadcast data packet, a multicast data packet or an unknown destination MAC address A unicast data packet; a processing unit 1610 configured to construct a detection packet in the MAC address table if the port information corresponding to the source MAC address of the data packet reaches a preset number of times within the first preset duration , the detection packet is a broadcast data packet or a multicast data packet, and the MAC address table records the correspondence between the source MAC address of the data packet received by the UPF network element and the port information receiving the data packet; the transceiver unit 1620, It is also used to send the detection packet to the first port, where the detection packet is used to detect whether there is a loop in the network.
当通信装置1600用于实现上述方法实施例中SMF的功能时:收发单元1620,用于接收来自UPF网元的端口环路事件,所述端口环路事件中包括用于指示第一端口的指示信息;处理单元1610,用于生成报警信息;收发单元1620,还用于:向OAM发送报警信息,所述报警信息用于指示网络中存在环路,所述报警信息中包括用于指示所述第一端口的指示信息,所述第一端口为UPF中的端口。When the communication device 1600 is used to implement the SMF function in the above method embodiment: the transceiver unit 1620 is used to receive a port loop event from a UPF network element, and the port loop event includes an indication for indicating the first port information; the processing unit 1610 is configured to generate alarm information; the transceiver unit 1620 is also configured to: send alarm information to OAM, the alarm information is used to indicate that there is a loop in the network, and the alarm information includes the Indication information of the first port, where the first port is a port in the UPF.
有关上述处理单元1610和收发单元1620更详细的描述可以根据上述方法实施例中相关描述得到,这里不加赘述。A more detailed description about the processing unit 1610 and the transceiver unit 1620 can be obtained according to the relevant description in the above method embodiment, and details are not repeated here.
如图17所示,通信装置1700包括处理器1710和接口电路1720。处理器1710和接口电路1720之间相互耦合。可以理解的是,接口电路1720可以为收发器或输入输出接口。可选的,通信装置1700还可以包括存储器1730,用于存储处理器1710执行的指令或存储处理器1710运行指令所需要的输入数据或存储处理器1710运行指令后产生的数据。As shown in FIG. 17 , a communication device 1700 includes a processor 1710 and an interface circuit 1720 . The processor 1710 and the interface circuit 1720 are coupled to each other. It can be understood that the interface circuit 1720 may be a transceiver or an input-output interface. Optionally, the communication device 1700 may further include a memory 1730 for storing instructions executed by the processor 1710 or storing input data required by the processor 1710 to execute the instructions or storing data generated by the processor 1710 after executing the instructions.
当通信装置1700用于实现上述方法实施例中的方法时,处理器1710用于实现上述处理单元1610的功能,接口电路1720用于实现上述收发单元1620的功能。When the communication device 1700 is used to implement the methods in the above method embodiments, the processor 1710 is used to implement the functions of the processing unit 1610 , and the interface circuit 1720 is used to implement the functions of the transceiver unit 1620 .
当上述通信装置为应用于UPF的模块时,该UPF模块实现上述方法实施例中UPF的功能。该UPF模块从UPF中的其它模块(如射频模块或天线)接收信息,该信息是SMF发送给UPF的;或者,该UPF模块向UPF中的其它模块(如射频模块或天线)发送信息,该信息是终端发送给UPF的。这里的UPF模块可以是UPF的芯片,也可以是其他模块。When the above communication device is a module applied to UPF, the UPF module realizes the function of UPF in the above method embodiment. The UPF module receives information from other modules in the UPF (such as a radio frequency module or an antenna), and the information is sent to the UPF by the SMF; or, the UPF module sends information to other modules in the UPF (such as a radio frequency module or an antenna). The information is sent by the terminal to the UPF. The UPF module here can be a UPF chip or other modules.
当上述通信装置为应用于SMF的模块时,该SMF模块实现上述方法实施例中SMF的功能。该SMF模块从SMF中的其它模块(如射频模块或天线)接收信息,该信息是UPF发送给SMF的;或者,该SMF模块向SMF中的其它模块(如射频模块或天线)发送信息,该信息是SMF发送给UPF的。这里的SMF模块可以是SMF的芯片,也可以是其他模块。When the above-mentioned communication device is a module applied to the SMF, the SMF module realizes the function of the SMF in the above-mentioned method embodiment. The SMF module receives information from other modules in the SMF (such as a radio frequency module or an antenna), and the information is sent to the SMF by the UPF; or, the SMF module sends information to other modules in the SMF (such as a radio frequency module or an antenna). Information is sent by SMF to UPF. The SMF module here can be an SMF chip or other modules.
可以理解的是,本申请中的处理器可以是中央处理单元(central processing unit,CPU),还可以是其它通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其它可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。It can be understood that the processor in this application can be a central processing unit (central processing unit, CPU), and can also be other general processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. A general-purpose processor can be a microprocessor, or any conventional processor.
本申请的实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器、闪存、只读存储器、可编程只读存储器、可擦除可编程只读存储器、电可擦除可编程只读存储器、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于基站或终端中。当然,处理器和存储介质也可以作为分立组件存在于基站或终端中。The method steps in the embodiments of the present application may be implemented by means of hardware, or may be implemented by means of a processor executing software instructions. Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only Memory, registers, hard disk, removable hard disk, CD-ROM or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be a component of the processor. The processor and storage medium can be located in the ASIC. In addition, the ASIC can be located in the base station or the terminal. Certainly, the processor and the storage medium may also exist in the base station or the terminal as discrete components.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产 品包括一个或多个计算机程序或指令。在计算机上加载和执行所述计算机程序或指令时,全部或部分地执行本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备或者其它可编程装置。所述计算机程序或指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机程序或指令可以从一个网站站点、计算机、服务器或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是集成一个或多个可用介质的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,例如,软盘、硬盘、磁带;也可以是光介质,例如,数字视频光盘;还可以是半导体介质,例如,固态硬盘。该计算机可读存储介质可以是易失性或非易失性存储介质,或可包括易失性和非易失性两种类型的存储介质。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are executed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable devices. The computer program or instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be downloaded from a website, computer, A server or data center transmits to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrating one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; and it may also be a semiconductor medium, such as a solid state disk. The computer readable storage medium may be a volatile or a nonvolatile storage medium, or may include both volatile and nonvolatile types of storage media.
在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。In each embodiment of the present application, if there is no special explanation and logical conflict, the terms and/or descriptions between different embodiments are consistent and can be referred to each other, and the technical features in different embodiments are based on their inherent Logical relationships can be combined to form new embodiments.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。在本申请的文字描述中,字符“/”,一般表示前后关联对象是一种“或”的关系;在本申请的公式中,字符“/”,表示前后关联对象是一种“相除”的关系。“包括A,B和C中的至少一个”可以表示:包括A;包括B;包括C;包括A和B;包括A和C;包括B和C;包括A、B和C。In this application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. In the text description of this application, the character "/" generally indicates that the contextual objects are an "or" relationship; in the formulas of this application, the character "/" indicates that the contextual objects are a "division" Relationship. "Including at least one of A, B and C" may mean: including A; including B; including C; including A and B; including A and C; including B and C; including A, B and C.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定。It can be understood that the various numbers involved in the embodiments of the present application are only for convenience of description, and are not used to limit the scope of the embodiments of the present application. The size of the serial numbers of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic.

Claims (21)

  1. 一种环路检测方法,其特征在于,包括:A loop detection method, characterized in that, comprising:
    在第一端口接收到数据包,所述数据包为广播数据包、组播数据包或目的媒体接入控制MAC地址未知的单播数据包;A data packet is received at the first port, and the data packet is a broadcast data packet, a multicast data packet, or a unicast data packet with an unknown destination MAC address;
    在MAC地址表中,若该数据包的源MAC地址所对应的端口信息在第一预设时长内的变换次数达到预设次数时,则构造检测包,该检测包为广播数据包或组播数据包,所述MAC地址表中记录有用户面功能UPF所接收的数据包的源MAC地址与接收该数据包的端口信息的对应关系;In the MAC address table, if the number of changes of the port information corresponding to the source MAC address of the data packet reaches the preset number of times in the first preset time length, a detection packet is constructed, which is a broadcast data packet or a multicast The data packet, the corresponding relationship between the source MAC address of the data packet received by the user plane function UPF and the port information receiving the data packet is recorded in the MAC address table;
    向所述第一端口发送所述检测包,所述检测包用于检测网络中是否存在环路,所述第一端口为所述UPF中的端口。sending the detection packet to the first port, where the detection packet is used to detect whether there is a loop in the network, and the first port is a port in the UPF.
  2. 如权利要求1所述的方法,其特征在于,向所述第一端口发送所述检测包之后,还包括:The method according to claim 1, further comprising: after sending the detection packet to the first port:
    若在第二预设时长内,在所述第一端口或所述UPF的其它端口接收到所述检测包,则确定所述网络中存在环路;否则,确定所述网络中不存在环路。If the detection packet is received at the first port or other ports of the UPF within the second preset duration, it is determined that there is a loop in the network; otherwise, it is determined that there is no loop in the network .
  3. 如权利要求1或2所述的方法,其特征在于,还包括:The method according to claim 1 or 2, further comprising:
    向第二端口发送所述检测包,所述第二端口对应的端口信息为所述MAC地址表中记录的、之前与通过所述第一端口所接收的数据包的源MAC地址存在对应关系的端口信息,所述第二端口为所述UPF中的端口。Sending the detection packet to the second port, where the port information corresponding to the second port is recorded in the MAC address table and has a corresponding relationship with the source MAC address of the data packet received through the first port before port information, the second port is a port in the UPF.
  4. 如权利要求1至3中任一项所述的方法,其特征在于,还包括:The method according to any one of claims 1 to 3, further comprising:
    在确定所述网络中存在环路时,向会话管理功能SMF上报端口环路事件,所述端口环路事件中包括用于指示所述第一端口的指示信息;When it is determined that there is a loop in the network, report a port loop event to the session management function SMF, where the port loop event includes indication information for indicating the first port;
    接收来自所述SMF的N4会话修改消息,所述N4会话修改消息中指示所述UPF停止通过所述第一端口转发数据包,和/或指示所述UPF执行环路恢复事件;receiving an N4 session modification message from the SMF, in which the N4 session modification message instructs the UPF to stop forwarding data packets through the first port, and/or instructs the UPF to perform a loop recovery event;
    根据N4会话修改消息,停止所述第一端口的数据转发功能,和/或执行所述环路恢复事件。According to the N4 session modification message, stop the data forwarding function of the first port, and/or execute the loop recovery event.
  5. 如权利要求4所述的方法,其特征在于,所述端口环路事件中包括用于指示所述第一端口的指示信息,具体为:The method according to claim 4, wherein the port loop event includes indication information for indicating the first port, specifically:
    所述第一端口为接入端口、且一个以太协议数据单元PDU会话对应一个接入端口时,所述端口环路事件中携带有所述第一端口对应的以太PDU会话的标识;或者,When the first port is an access port, and an Ethernet protocol data unit PDU session corresponds to an access port, the port loop event carries the identifier of the Ethernet PDU session corresponding to the first port; or,
    所述第一端口为N6端口、且一个网络实例对应一个N6端口时,所述端口环路事件中携带有所述第一端口对应的网络实例的标识;或者,When the first port is an N6 port and one network instance corresponds to one N6 port, the port loop event carries the identifier of the network instance corresponding to the first port; or,
    所述第一端口为N19端口、且所述N19端口为UPF间的接口时,所述端口环路事件中携带有对端UPF的互联网协议IP地址。When the first port is the N19 port and the N19 port is an interface between UPFs, the port loop event carries the IP address of the peer UPF.
  6. 如权利要求4或5所述的方法,其特征在于,所述执行所述环路恢复事件,包括:The method according to claim 4 or 5, wherein the executing the loop restoration event comprises:
    再次构造所述检测包,并向所述第一端口发送所述检测包;Constructing the detection packet again, and sending the detection packet to the first port;
    若在第三预设时长内,在所述第一端口或所述UPF的其它端口没有接收到所述检测包,则表示所述网络中不存在环路,网络恢复正常,向SMF上报环路恢复事件;否则,继续执行向所述第一端口发送所述检测包的步骤。If the detection packet is not received at the first port or other ports of the UPF within the third preset time period, it means that there is no loop in the network, the network returns to normal, and the loop is reported to the SMF Recover the event; otherwise, continue to execute the step of sending the detection packet to the first port.
  7. 如权利要求6所述的方法,其特征在于,还包括:The method of claim 6, further comprising:
    若在第四预设时长内,网络中的环路仍存在,则停止环路检测,关闭所述第一端口的数据转发功能。If the loop still exists in the network within the fourth preset time length, stop the loop detection, and close the data forwarding function of the first port.
  8. 如权利要求6或7所述的方法,其特征在于,在向所述SMF上报环路恢复事件之后,还包括:The method according to claim 6 or 7, further comprising: after reporting the loop recovery event to the SMF:
    接收来自所述SMF的N4会话修改消息,所述N4会话修改消息中包含恢复所述第一端口数据包转发功能的指示信息;receiving an N4 session modification message from the SMF, where the N4 session modification message includes indication information for restoring the data packet forwarding function of the first port;
    根据所述N4会话修改消息,恢复所述第一端口的数据包转发功能。Restoring the data packet forwarding function of the first port according to the N4 session modification message.
  9. 如权利要求1至8中任一项所述的方法,其特征在于,当所述第一端口为接入端口、N6端口或N19端口时,所述方法还包括:The method according to any one of claims 1 to 8, wherein when the first port is an access port, an N6 port or an N19 port, the method further comprises:
    接收来自所述SMF的N4会话建立消息,所述N4会话建立消息中包含执行接入端口环路检测的指示信息,或包含执行N6端口环路检测的指示信息,或包含执行N19端口环路检测的指示信息。Receive an N4 session establishment message from the SMF, the N4 session establishment message includes instruction information for performing access port loop detection, or includes instruction information for performing N6 port loop detection, or includes execution N19 port loop detection instructions for the .
  10. 一种环路检测方法,其特征在于,包括:A loop detection method, characterized in that, comprising:
    接收来自用户面功能UPF的端口环路事件,所述端口环路事件中包括用于指示第一端口的指示信息;receiving a port loop event from the user plane function UPF, where the port loop event includes indication information for indicating the first port;
    向操作管理维护系统OAM发送报警信息,所述报警信息用于指示网络中存在环路,所述报警信息中包括用于指示所述第一端口的指示信息,所述第一端口为所述UPF中的端口。Sending alarm information to the operation management and maintenance system OAM, the alarm information is used to indicate that there is a loop in the network, and the alarm information includes indication information for indicating the first port, and the first port is the UPF in the port.
  11. 如权利要求10所述的方法,其特征在于,所述端口环路事件中包括第一端口的指示信息,具体为:The method according to claim 10, wherein the port loop event includes indication information of the first port, specifically:
    所述第一端口为接入端口、且一个以太协议数据单元PDU会话对应一个接入端口时,所述端口环路事件中携带有所述第一端口对应的以太PDU会话的标识;或者,When the first port is an access port, and an Ethernet protocol data unit PDU session corresponds to an access port, the port loop event carries the identifier of the Ethernet PDU session corresponding to the first port; or,
    所述第一端口为N6端口、且一个网络实例对应一个N6端口时,所述端口环路事件中携带有所述第一端口对应的网络实例的标识;或者,When the first port is an N6 port and one network instance corresponds to one N6 port, the port loop event carries the identifier of the network instance corresponding to the first port; or,
    所述第一端口为N19端口、且所述N19端口为UPF间的接口时,所述端口环路事件中携带有对端UPF的互联网协议IP地址。When the first port is the N19 port and the N19 port is an interface between UPFs, the port loop event carries the IP address of the peer UPF.
  12. 如权利要求10或11所述的方法,其特征在于,所述第一端口为接入端口时,还包括:The method according to claim 10 or 11, wherein when the first port is an access port, further comprising:
    向终端发送释放所述第一端口对应的PDU会话的指示信息,该指示信息中携带有释放所述以太PUD会话的原因为网络成环的指示信息;或者,sending to the terminal indication information for releasing the PDU session corresponding to the first port, the indication information carrying the indication information that the reason for releasing the Ethernet PUD session is network looping; or,
    向所述UPF发送N4会话修改消息,该N4会话修改消息中指示所述UPF停止通过所述接入端口转发数据包,和/或指示所述UPF执行环路恢复事件。Sending an N4 session modification message to the UPF, where the N4 session modification message instructs the UPF to stop forwarding data packets through the access port, and/or instructs the UPF to perform a loop recovery event.
  13. 如权利要求10或11所述的方法,其特征在于,所述第一端口为N6端口或N19端口时,还包括:The method according to claim 10 or 11, wherein when the first port is an N6 port or an N19 port, further comprising:
    向所述UPF发送N4会话修改消息,该N4会话修改消息中指示所述UPF停止通过所述N6端口或N19端口转发数据包,和/或指示所述UPF执行环路恢复事件。Sending an N4 session modification message to the UPF, where the N4 session modification message instructs the UPF to stop forwarding data packets through the N6 port or the N19 port, and/or instructs the UPF to perform a loop recovery event.
  14. 如权利要求12或13所述的方法,其特征在于,还包括:The method according to claim 12 or 13, further comprising:
    接收来自所述UPF的环路恢复事件;receiving a loop recovery event from the UPF;
    向OAM发送恢复告警,所述恢复告警用于指示网络中不再存在环路,网络恢复正常;Sending a recovery alarm to the OAM, the recovery alarm is used to indicate that there is no loop in the network, and the network returns to normal;
    向所述UPF发送N4会话修改消息,该N4会话修改消息中包含恢复所述第一端口数 据包转发功能的指示信息。Sending an N4 session modification message to the UPF, where the N4 session modification message includes indication information for restoring the packet forwarding function of the first port.
  15. 如权利要求10至14中任一项所述的方法,其特征在于,所述第一端口为接入端口、N6端口或N19端口时,所述方法还包括:The method according to any one of claims 10 to 14, wherein when the first port is an access port, an N6 port or an N19 port, the method further comprises:
    向所述UPF发送N4会话建立消息,所述N4会话建立消息中包含执行接入端口环路检测的指示信息,或包含执行N6端口环路检测的指示信息,或包含执行N19端口环路检测的指示信息。Send an N4 session establishment message to the UPF, where the N4 session establishment message includes instructions for performing access port loop detection, or includes instructions for performing N6 port loop detection, or includes instructions for performing N19 port loop detection Instructions.
  16. 一种通信装置,其特征在于,包括用于执行如权利要求1至9中的任一项所述方法的单元。A communication device, characterized by comprising a unit for performing the method according to any one of claims 1-9.
  17. 一种通信装置,其特征在于,包括处理器和接口电路,所述接口电路用于接收来自所述通信装置之外的其它通信装置的信号并传输至所述处理器或将来自所述处理器的信号发送给所述通信装置之外的其它通信装置,所述处理器通过逻辑电路或执行代码指令用于实现如权利要求1至9中任一项所述的方法。A communication device, characterized in that it includes a processor and an interface circuit, the interface circuit is used to receive signals from other communication devices other than the communication device and transmit them to the processor or transfer signals from the processor The signal is sent to other communication devices other than the communication device, and the processor implements the method according to any one of claims 1 to 9 through a logic circuit or executing code instructions.
  18. 一种通信装置,其特征在于,包括用于执行如权利要求10至15中的任一项所述方法的单元。A communication device, characterized by comprising a unit for performing the method according to any one of claims 10-15.
  19. 一种通信装置,其特征在于,包括处理器和接口电路,所述接口电路用于接收来自所述通信装置之外的其它通信装置的信号并传输至所述处理器或将来自所述处理器的信号发送给所述通信装置之外的其它通信装置,所述处理器通过逻辑电路或执行代码指令用于实现如权利要求10至15中任一项所述的方法。A communication device, characterized in that it includes a processor and an interface circuit, the interface circuit is used to receive signals from other communication devices other than the communication device and transmit them to the processor or transfer signals from the processor The signal is sent to other communication devices other than the communication device, and the processor implements the method according to any one of claims 10 to 15 through a logic circuit or executing code instructions.
  20. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序或指令,当所述计算机程序或指令被通信装置执行时,实现如权利要求1至9中任一项所述的方法,或者实现如权利要求10至15中任一项所述的方法。A computer-readable storage medium, characterized in that computer programs or instructions are stored in the storage medium, and when the computer programs or instructions are executed by a communication device, the implementation of any one of claims 1 to 9 method, or implement the method as described in any one of claims 10 to 15.
  21. 一种包含指令的计算机程序产品,其特征在于,当其在计算机上运行时,使得计算机执行如权利要求1至9中任一项所述的方法,或者实现如权利要求10至15中任一项所述的方法。A computer program product comprising instructions, characterized in that, when it runs on a computer, it causes the computer to execute the method according to any one of claims 1 to 9, or to implement any one of claims 10 to 15 method described in the item.
PCT/CN2022/107088 2021-10-29 2022-07-21 Loop detection method and apparatus WO2023071318A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111268099.XA CN116074239A (en) 2021-10-29 2021-10-29 Loop detection method and device
CN202111268099.X 2021-10-29

Publications (1)

Publication Number Publication Date
WO2023071318A1 true WO2023071318A1 (en) 2023-05-04

Family

ID=86159009

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/107088 WO2023071318A1 (en) 2021-10-29 2022-07-21 Loop detection method and apparatus

Country Status (2)

Country Link
CN (1) CN116074239A (en)
WO (1) WO2023071318A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117042014A (en) * 2023-10-10 2023-11-10 北京航空航天大学 Unmanned aerial vehicle ad hoc network multipath transmission method considering speed and safety

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090296727A1 (en) * 2008-06-03 2009-12-03 Shriram Srinivasan Method and Apparatus to Count MAC Moves at Line Rate
CN102055525A (en) * 2010-12-17 2011-05-11 北京格林伟迪科技有限公司 Loop detecting and controlling method
CN102347865A (en) * 2011-11-04 2012-02-08 华为技术有限公司 Ethernet ring path locating method as well as switching equipment and system
CN103125100A (en) * 2011-12-09 2013-05-29 华为技术有限公司 Layer 2 network loop processing method, device and network device
WO2020188464A1 (en) * 2019-03-15 2020-09-24 Telefonaktiebolaget Lm Ericsson (Publ) Filtering ethernet device source addresses for loop avoidance
CN111901234A (en) * 2020-08-12 2020-11-06 深圳市信锐网科技术有限公司 Network loop processing method, system and related equipment
CN112312510A (en) * 2019-07-30 2021-02-02 华为技术有限公司 Data forwarding method, device and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090296727A1 (en) * 2008-06-03 2009-12-03 Shriram Srinivasan Method and Apparatus to Count MAC Moves at Line Rate
CN102055525A (en) * 2010-12-17 2011-05-11 北京格林伟迪科技有限公司 Loop detecting and controlling method
CN102347865A (en) * 2011-11-04 2012-02-08 华为技术有限公司 Ethernet ring path locating method as well as switching equipment and system
CN103125100A (en) * 2011-12-09 2013-05-29 华为技术有限公司 Layer 2 network loop processing method, device and network device
WO2020188464A1 (en) * 2019-03-15 2020-09-24 Telefonaktiebolaget Lm Ericsson (Publ) Filtering ethernet device source addresses for loop avoidance
CN112312510A (en) * 2019-07-30 2021-02-02 华为技术有限公司 Data forwarding method, device and system
CN111901234A (en) * 2020-08-12 2020-11-06 深圳市信锐网科技术有限公司 Network loop processing method, system and related equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ERICSSON: "Ethernet support clarification", 3GPP TSG-SA WG2 MEETING #133, S2-1905041, 7 May 2019 (2019-05-07), XP051720559 *
JUNIPER: "Integrating Fixed Network IP/E-VPN Solutions with 5G-VN", 3GPP TSG-SA WG2 MEETING #136-AH, S2-2000142, 7 January 2020 (2020-01-07), XP051842247 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117042014A (en) * 2023-10-10 2023-11-10 北京航空航天大学 Unmanned aerial vehicle ad hoc network multipath transmission method considering speed and safety
CN117042014B (en) * 2023-10-10 2023-12-22 北京航空航天大学 Unmanned aerial vehicle ad hoc network multipath transmission method considering speed and safety

Also Published As

Publication number Publication date
CN116074239A (en) 2023-05-05

Similar Documents

Publication Publication Date Title
US20210274375A1 (en) Time-Sensitive Networking Communication Method and Apparatus
WO2020103842A1 (en) Communication method and apparatus
WO2020001572A1 (en) Communication method and apparatus
KR20240036599A (en) Communication methods and devices
WO2021051420A1 (en) Dns cache record determination method and apparatus
WO2022016948A1 (en) Communication method and apparatus
WO2022012468A1 (en) Routing configuration method and apparatus
WO2022143697A1 (en) Method and apparatus for avoiding loop
WO2022206252A1 (en) Network attack processing method and apparatus, and device, computer-readable storage medium and computer program product
WO2022017527A1 (en) Data transmission method, apparatus and system
WO2022017285A1 (en) Packet forwarding method, apparatus and system
WO2022082724A1 (en) Method and apparatus for multicast service support in time sensitive network
WO2023071318A1 (en) Loop detection method and apparatus
JP2023529472A (en) COMMUNICATION METHOD, APPARATUS, AND SYSTEM
US11882033B2 (en) Filtering ethernet device source addresses for loop avoidance
US20230371098A1 (en) Communication method, apparatus, and system
WO2022160211A1 (en) Method and apparatus for avoiding loop
EP4138508A1 (en) Communication method, device and system
CN114830606B (en) Multicast communication method and device thereof
US20240080931A1 (en) Communication method and apparatus
WO2023125211A1 (en) Communication method and apparatus
WO2023061207A1 (en) Communication method, communication apparatus, and communication system
JP7472279B2 (en) COMMUNICATION METHOD, APPARATUS, AND SYSTEM
WO2023185062A1 (en) Backup method, communication device, and communication system
WO2023273355A1 (en) Multicast service communication method, apparatus and system

Legal Events

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

Ref document number: 22885220

Country of ref document: EP

Kind code of ref document: A1