WO2022057846A1 - Device connection method, apparatus, and device - Google Patents

Device connection method, apparatus, and device Download PDF

Info

Publication number
WO2022057846A1
WO2022057846A1 PCT/CN2021/118639 CN2021118639W WO2022057846A1 WO 2022057846 A1 WO2022057846 A1 WO 2022057846A1 CN 2021118639 W CN2021118639 W CN 2021118639W WO 2022057846 A1 WO2022057846 A1 WO 2022057846A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
network
node
terminal device
identifier
Prior art date
Application number
PCT/CN2021/118639
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 WO2022057846A1 publication Critical patent/WO2022057846A1/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/12Shortest path evaluation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/121Shortest path evaluation by minimising delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1042Peer-to-peer [P2P] networks using topology management mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Definitions

  • the present application relates to the technical field of content distribution, and in particular, to a PCDN-based device connection method, apparatus, and device.
  • CDN Content Delivery Network
  • Peer-to-peer also known as peer-to-peer technology
  • peer-to-peer technology is an Internet system that does not have a central server and relies on user groups (peers) to exchange information. node to reduce the risk of data loss.
  • peer-to-peer network Different from the central network system with a central server, each client of the peer-to-peer network is not only a node, but also has the function of a server. Any node cannot directly find other nodes and must rely on its user group for information exchange.
  • a P2P network is a shared network, in which each node is a provider and receiver of services, and each node shares a part of its own hardware resources (computing capacity, storage capacity, transmission capacity, etc.).
  • Peer-to-peer content distribution network (P2P CDN, PCDN for short) is a technology that combines P2P and CDN. It is based on P2P technology and builds low-cost, high-quality content by mining and utilizing massive fragmented idle resources in edge networks. Distribute web services.
  • the PCDN technology directly downloads the video program to the home router. When a user requests to watch a certain video program, the video program can be obtained directly from the nearby home router.
  • the network system In the existing process of searching and distributing the video program requested by the user, the network system generally searches for another terminal device located in the same network segment as the terminal device and storing the video program according to the address of the requested user terminal device, and then Send the found video program stored on another terminal device to the requesting user.
  • the distance between two terminal devices located on the same network segment may be far, for example, the requested user terminal device and the found target terminal device are located in different optical line terminals (OLT), resulting in transmission
  • OLT optical line terminals
  • Embodiments of the present application provide a device connection method and apparatus, which are used to reduce the flow of video data transmission and improve transmission efficiency. Specifically, the application discloses the following technical solutions:
  • an embodiment of the present application provides a device connection method.
  • the method includes: receiving a first request message sent by a first terminal device, where the first request message includes a device identifier of the first terminal device and a first request message.
  • a data identifier, the first data identifier indicates the first data requested by the first terminal device; according to the first data identifier and the first device identifier, and the connection relationship of each device in the network, the data record is stored Find the target node in the table, and send the IP address of the target node to the first terminal device.
  • the storage data record table includes at least one device identifier of the node storing the first data and the first data identifier corresponding relationship, the target node stores the first data, and the target node stores the first data, and the The transmission path of the first data from the target node to the first terminal device is the shortest.
  • the connection relationship of each device in the network includes: the device identifier of the upstream node to which each device ID in the network is connected, and/or the device identifier of the downstream node.
  • connection relationship of each device in the network is represented by a network topology structure record table.
  • the connection relationship of each device in the network and the storage data record table of each node are searched for the target node that stores the requested data.
  • the transmission path between the target node and the terminal device is the shortest, so the shortest transmission path is used to transmit the required data to the requested terminal device, so as to avoid the target node selected in the same network segment being far away, resulting in a larger backhaul traffic for data transmission. large, the transmission delay is long.
  • the method has short data transmission distance, small required traffic overhead, small transmission delay and high efficiency.
  • the shortest transmission path of the first data from the target node to the first terminal device includes: the target node and the first terminal device are directly or indirectly connected through the same access device to the network.
  • the target node is a first access device directly or indirectly connected to the first terminal device, and in this case, the transmission path between the first access device and the first terminal device is the shortest.
  • the first access device or a downstream node connected to the first access device is selected as the target node, so that the transmission path between the target node and the first terminal device is the shortest, the overhead of the transmission traffic is the smallest, and the transmission efficiency is the highest .
  • the method before the receiving the first request message sent by the first terminal device, the method further includes: receiving a device identifier of at least one terminal device, and communicating with each of the terminal devices.
  • ID information of the access device to which the terminal device is connected according to the device identifier of the at least one terminal device and the ID information of each of the access devices, the connection relationship of each device in the network is obtained.
  • the ID information of the access device includes at least one of the device name, device number, IP address, and MAC address of the access device.
  • each terminal device actively reports its own device identification and the ID information of the node to which it is connected, so that the receiving end node can obtain the topology structure of each terminal device, providing a basis for finding the target node of the shortest transmission path.
  • the method before the receiving the first request message sent by the first terminal device, the method further includes: receiving the information of each device in the network sent by the network management device. connection relationship.
  • the network management device may determine the connection relationship of each device according to the ID information reported by each device in the network and the device identifier.
  • the network topology structure record table is obtained by way of reporting by the network management device, thereby providing convenience for finding the target node with the shortest path to the requester.
  • the network topology is dynamically obtained by using the network management device, which avoids collecting and processing the access information reported by all nodes on the GSLB system side, saving the computational burden on the GSLB system side, and reducing the transmission of access information sent by each node to the GSLB system. overhead.
  • the method further includes: determining a first access device connected to the first terminal device according to the connection relationship of each device in the network, and obtaining At least one node connected to the first access device selects one or more of the at least one node to store the first data; establishes the device identifier of the node that has stored the first data with the first data. A corresponding relationship between data identifiers, and the stored data record table is generated according to the corresponding relationship.
  • the first data is stored on the downstream node that has the same access device as the requested terminal device, so that a node with the same access device can be found as a target node, and this target node is the same as the requested first node.
  • the transmission path between end devices is the shortest.
  • the present application further provides an apparatus for connecting devices, the apparatus includes: a receiving unit, a processing unit, a sending unit, and the like.
  • the receiving unit is configured to receive a first request message sent by the first terminal device, where the first request message includes a device identifier of the first terminal device and a first data identifier, and the first data identifier indicates the request of the first terminal device. the first data; the processing unit is used to find the target node in the stored data record table according to the first data identifier and the first device identifier, and the connection relationship of each device in the network; the sending unit is used to find the IP address of the target node sent to the first terminal device.
  • the above-mentioned storage data record table includes at least one device identification of the node that stores the first data, and, the corresponding relationship of the first data identification, and the target node stores the first data, the first data from the target
  • the transmission path between the node and the first terminal device is the shortest.
  • the transmission path of the first data from the target node to the first terminal device is the shortest, including: the target node and the first terminal device directly or indirectly pass through The same access device is connected to the network.
  • the receiving unit is further configured to receive a device identifier sent by at least one terminal device before receiving the first request message sent by the first terminal device , and the ID information of the access device connected to each of the terminal devices; the processing unit is further configured to obtain the ID information of each of the access devices according to the device identification of the at least one terminal device and the ID information of each of the access devices The connection relationship of each device in the network.
  • the receiving unit is further configured to receive, before receiving the first request message sent by the first terminal device, each message in the network sent by the network management device.
  • the connection relationship of the device is further configured to receive, before receiving the first request message sent by the first terminal device, each message in the network sent by the network management device.
  • the processing unit is further configured to determine the first terminal device connected to the first terminal device according to the connection relationship of each device in the network access device, and obtain at least one node connected to the first access device, and select one or more nodes in the at least one node to store the first data;
  • the corresponding relationship between the device identification and the first data identification, and the stored data record table is generated according to the corresponding relationship.
  • the target device is a first access device directly or indirectly connected to the first terminal device.
  • the present application provides a method for sending information.
  • the method can be applied to a PCDN node, such as a first terminal device.
  • the method includes:
  • the first terminal device sends a first request message to the GSLB system, where the first request message includes a device identifier of the first terminal device and a first data identifier, and the first data identifier indicates the request of the first terminal device.
  • first data includes a device identifier of the first terminal device and a first data identifier, and the first data identifier indicates the request of the first terminal device.
  • the first terminal device receives the IP address of the target node sent by the GSLB system; the target node is identified by the GSLB system according to the first data identification and the first device identification, and the connection of each device in the network The relationship is determined after looking up in the stored data record table;
  • the first terminal device establishes a communication link with the target device according to the IP address of the target node, and uses the communication link to receive the first data.
  • the method further includes: receiving, by the first terminal device, ID information of the first access device sent by the first access device, and the first access device
  • the ID information of the access device includes the device identifier, device number, MAC address, IP address or other identifiers of the first access device; the first terminal device identifies the device identifier of the first terminal device, and the The ID information of the first access device is sent to the GSLB system.
  • the present application provides a method for sending information.
  • the method can be applied to a network device, such as a network management device, and the method includes:
  • the network management device receives the device identifier sent by at least one terminal device in the network;
  • the network management device receives ID information of at least one access device in the network
  • the network management device obtains the connection relationship of each device in the network according to the device identifier of the at least one terminal device and the ID information of each of the access devices in the at least one access device;
  • the network management device sends the connection relationship of each device in the network to the GSLB system.
  • the method further includes: the network management device receives ID information sent by other nodes, and updates each node in the network according to the ID information sent by the other nodes.
  • the connection relationship of the device is not limited to: the network management device.
  • the other node includes at least one BRAS
  • the ID information of the BRAS includes one or more of a device identifier, a device number, a MAC address, and an IP address of the BRAS.
  • connection relationship of each device in the network may be represented by a network topology structure record table.
  • the present application provides a network device, the network device includes a processor and a memory, and the processor is coupled to the memory; the memory is used for storing computer program instructions; the processor is used for executing all stored in the memory. The instruction is executed, so that the network device executes the foregoing first aspect and the method in various implementation manners of the first aspect.
  • the network device further includes components such as a communication interface, a transceiver, and the like.
  • the network device may use the processor and the memory to implement the methods described in the third aspect and the fourth aspect.
  • the network device is a terminal device
  • the information sending method described in the third aspect can be implemented;
  • the network device is a network management device
  • the information described in the fourth aspect can be implemented. delivery method.
  • processor and memory may be integrated in a chip circuit, such as a processing chip.
  • the processing chip includes a storage unit and a processing unit, and the processing unit and the storage unit can be used to implement all the functions of the aforementioned processor and memory, and to implement the methods described in the aforementioned first aspect and various implementation manners of the first aspect.
  • processing chip may also implement the methods described in the third aspect and the fourth aspect.
  • the present application further provides a computer-readable storage medium, in which instructions are stored, so that when the instructions are executed on a computer or a processor, they can be used to execute the foregoing first aspect and each of the first aspects. method in an implementation.
  • the instructions when run on a computer or a processor, they can also be used to perform the methods in the third and fourth aspects.
  • the present application also provides a computer program product, the computer program product includes computer instructions, when the instructions are executed by a computer or a processor, the aforementioned first aspect and the method in various implementation manners of the first aspect can be implemented, And/or, the methods of the aforementioned third and fourth aspects.
  • beneficial effects corresponding to the technical solutions of the various implementation manners of the second aspect to the sixth aspect are the same as the beneficial effects of the foregoing first aspect and various implementation manners of the first aspect.
  • beneficial effects please refer to the foregoing first aspect. Aspects and descriptions of beneficial effects in various implementation manners of the first aspect will not be repeated.
  • FIG. 1 is a schematic diagram of a PCDN architecture according to an embodiment of the present application.
  • FIG. 2 is a flowchart of a device connection method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a shortest transmission path between nodes according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of another shortest transmission path between nodes according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of another shortest transmission path between nodes provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another shortest transmission path between nodes provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another shortest transmission path between nodes according to an embodiment of the present application.
  • FIG. 8 is a signaling flowchart for obtaining a network topology structure record table according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of an ONT reporting access information according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a network structure including a network management device according to an embodiment of the present application.
  • 11 is another signaling flowchart for obtaining a network topology structure record table provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a device connecting device provided by an embodiment of the application.
  • FIG. 13 is a schematic structural diagram of a network device according to an embodiment of the present application.
  • the technical solution of the present application can be applied to a network system including CDN and P2P technologies, such as PCDN.
  • the PCDN may adopt an upper-layer CDN and a lower-layer P2P network architecture.
  • a manageable P2P autonomous region is introduced in the edge server, which consists of at least one edge server and multiple users, which can not only supervise the content of video distribution, but also reduce the backbone network pressure.
  • CDN is a strategically deployed overall system. It has functions such as distributed storage, load balancing, redirection of network requests, and content management. It selects video content for users based on the judgment principles of user proximity and server load, and sends it to users. User provides services.
  • each CDN node in the CDN may include a load balancing device and a cache server. Specifically, the load balancing device is used for load balancing of each cache in each node, so as to ensure the work efficiency of the node. In addition, the load balancing device is also responsible for collecting information about nodes and the surrounding environment, maintaining communication with the global load Domain Name System (DNS), and realizing load balancing of the entire system.
  • DNS global load Domain Name System
  • a P2P network is a shared network, in which each node is a provider and receiver of services, and each node shares a part of its own hardware resources (computing capacity, storage capacity, transmission capacity, etc.).
  • FIG. 1 it is a schematic diagram of a PCDN architecture according to an embodiment of the present application.
  • the PCDN combines a passive optical network (PON) and a CDN.
  • PON is a point-to-multipoint optical access technology.
  • an optical line terminal (OLT) is used to provide a network side for an optical access network (OAN).
  • OLT connects upstream network-side devices (such as switches, routers, etc.), and downstream connects one or more optical distribution networks (ODNs).
  • the ODN includes a passive optical splitter (shown in Figure 1) for optical power distribution, a backbone fiber connected between the passive optical splitter and the OLT, and a passive optical splitter and an optical network unit.
  • Branch fibers between ONUs optical network units, ONUs
  • the ODN transmits the downstream data of the OLT to each ONU through an optical splitter.
  • the ODN aggregates the upstream data of the ONU and transmits it to the OLT.
  • the OLT is the core component of the optical access network, equivalent to a switch or router in a traditional communication network, and is also a multi-service providing platform. It is generally placed at the central office and provides an optical fiber interface for a user-oriented passive optical fiber network. Its main functions are: connect the upper-layer network upward to complete the uplink access of the WAN or the Internet (including BRAS and GSLB systems); connect the client equipment downward to realize the functions of control, management and ranging of the client equipment.
  • the ONU provides the user-side interface for the OAN and is connected to the ODN at the same time. If the ONU provides user port functions at the same time, for example, the ONU provides an Ethernet (Ethernet) user port or a traditional telephone service (plain old telephone service, POTS) user port, it is called an optical network terminal (optical network termination, ONT). Can be commonly known as the light cat. It is a device that provides a network for home users in the access network. It is located directly at the user end, and can provide high-speed Internet access, IPTV, voice, WiFi and other services.
  • Ethernet Ethernet
  • POTS plain old telephone service
  • ONT optical network termination
  • the OLT and the client equipment are connected through a PON interface, and the OLT may be connected to multiple ONTs through one PON interface. That is to say, among the multiple PON interfaces on which the OLT is downstream connected to the client equipment, each PON interface may correspond to multiple client equipments.
  • the ONT is a PCDN node, and each PCDN node corresponds to a user terminal.
  • the PCDN node or PCDN router described in the embodiments of the present application is a terminal device, and the terminal device includes but is not limited to an ONT or a home router.
  • the PCDN node may be a network node within the user's home.
  • a metropolitan area network which usually includes at least one network device, or network node, such as a Broadband Remote Access Server (BRAS), a switch, etc. .
  • the OLT can be deployed either in the metropolitan area network or in an area close to the metropolitan area network.
  • BRAS is a new type of access gateway for broadband network applications. It is located at the edge layer of the backbone network and can complete the data access of IP/asynchronous transfer mode (ATM) network of user bandwidth (the current access method is mainly based on xDSL , cable modem (Cable Modem, CM), high-speed Ethernet technology (such as Local Area Network, LAN) / wireless broadband data access (WLAN), etc., to achieve broadband Internet access for commercial buildings and residential residents, based on Internet Security Protocol (IP Security Protocol, IPSec) IP virtual private network (Virtual Private Network, VPN) services, building intranet intranet, supporting Internet Service Provider (Internet Service Provider, ISP) wholesale business to users and other applications.
  • IP Security Protocol IP Security Protocol, IPSec
  • IP virtual private network Virtual Private Network, VPN
  • ISP Internet Service Provider
  • xDSL is a variety of applications Digital Subscriber Line (DSL).
  • the BRAS can be used as a network convergence node in the PCDN architecture.
  • each Ethernet interface corresponds to only one OLT.
  • each BRAS or OLT may be referred to as a CDN node, and in the above PCDN architecture, the PCDN node and the CDN node are collectively referred to as a node.
  • the network equipment connected to the metropolitan area network also includes: a global server load balance (Global Server Load Balance, GSLB) system.
  • the GSLB system is used to realize the traffic allocation between servers in different regions on the WAN (including the Internet), to ensure that the best server is used to serve the customers closest to itself, thereby ensuring the quality of access.
  • the GSLB system also has all the functions of the above load balancing device.
  • the same network segment may include at least two OLTs, such as OLT 1 and OLT 2, where each OLT is connected to the GSLB system upward through the BRAS, and downward is connected to multiple ONTs.
  • ONT 1 and ONT 2 access the PCDN through OLT 1
  • ONT 3 and ONT 4 access the PCDN through OLT 2.
  • ONT 1 to ONT 4 are 4 PCDN nodes.
  • Multiple video programs can be pre-stored on each PCDN node, and a certain hot program x is pre-stored on any ONT under the network segment, such as ONT 4.
  • ONT 1 or ONT 2 sends a DNS message to request to watch hot program x
  • OLT 1 receives and sends the DNS message to GSLB.
  • GSLB After GSLB receives the DNS message, it finds the requested hot program x and stores it on ONT 4, and then Send the indication information to the ONT 4.
  • the ONT 4 After receiving the indication information from the GSLB, the ONT 4 transmits the data of the hot program x to the requesting terminal ONT 1 or ONT 2 through OLT 2, BRAS and OLT 1 in turn.
  • the data of the hot program x needs to be sent back to the requested ONT 1 through the BRAS, which leads to an increase in the data backhaul traffic, and the two ONTs under different OLTs may be separated by a long distance.
  • the solution for ONT 1 or ONT 2 to obtain popular program data from ONT 4 under the network segment is not the best solution.
  • the embodiments of the present application provide an optimal distribution scheme, which is intended to solve the above-mentioned technical problems, improve the efficiency of content distribution in the PCDN architecture, and reduce the transmission delay of traffic.
  • the terminal device that stores the video program is called a PCDN node with PCDN function, or an enabled PCDN node
  • the access device that stores the video program is called an enabled CDN node.
  • these enabled PCDN nodes or CDN nodes all include storage media, which can be used to store data corresponding to video programs.
  • the data corresponding to the video program may be represented by a data identifier, such as a data ID.
  • this embodiment provides a device connection method, which can be applied to the aforementioned GSLB system, or server, or OLT, or integrated in a component of the network device, wherein the method include:
  • 201 Receive a first request message sent by a first terminal device, where the first request message includes a device identifier and a first data identifier of the first terminal device.
  • the first data identifier indicates the first data requested by the first terminal device.
  • the first data is a video content
  • the first data identifier is the identifier of the video content, for example, program x, where x represents the program number.
  • the video content may also be video-on-demand, live video, and large file download.
  • the video-on-demand includes long video-on-demand and short video-on-demand with a high degree of popularity.
  • the video live broadcast includes live broadcast of large-scale evening events, live broadcast of local network stations, and interactive live broadcast of shows.
  • the large file download includes file distribution that exceeds 1MB and is highly popular, such as application market distribution, online audio distribution, and the like.
  • the data in this embodiment may refer to the video program content requested by the user or other large files, and the data identifier refers to the data used to identify the data. Indicative information, such as data ID.
  • the first terminal device is a PCDN node, such as an ONT, and the ONT can be connected to the network through a first access device, and the first access device is a CDN node, such as an OLT.
  • This embodiment is described by taking an example that the first terminal device is ONT 1 and the first access device is OLT 1.
  • the device identifier of the first terminal device includes but is not limited to the device name, device number, IP address, and media access control (Media Access Control, MAC) address of the first terminal device.
  • media access control Media Access Control, MAC
  • the device identification of the first terminal device may be represented by a character string, and the character string includes but is not limited to characters such as numbers, letters, symbols, and characters.
  • the device identification of the terminal device may be represented by a device ID.
  • the target node Search for a target node in each node storage data record table according to the first data identifier, the first device identifier, and the connection relationship of each device in the network, where the target node stores the first data, and the Compared with other nodes storing the first data, the target node has the shortest transmission path to the first terminal device.
  • the connection relationship of each device in the network includes: the device identifier of the upstream node to which each device ID in the network is connected, and/or the device identifier of the downstream node.
  • the upstream node refers to the node to which the current device is connected upstream.
  • the OLT connected thereto is the upstream node of the ONT
  • the device ID of the OLT is the device identifier of the upstream node.
  • the downstream node refers to the node that the current device is connected to downlink.
  • all ONTs connected to it are the downstream nodes of the OLT, such as ONT 1, then ONT 1 is the downstream node of the OLT.
  • device identification
  • its upstream node may be a BRAS, such as BRAS 1, and then BRAS 1 is the device identifier of the upstream node of the OLT.
  • connection relationship of each device in the network is represented by a network topology structure record table.
  • the network topology structure record table includes the device ID of each node, the device ID of the upstream node connected with each device ID, and the device ID of the downstream node connected with each device ID.
  • Table 1 shows the device ID of each device in Device ID1, Device ID2, and Device ID3 of the node connected upstream, and the device ID of the node connected downstream.
  • device ID1 is connected upstream to device ID4, and downstream is connected to device ID5 and device ID7.
  • the device identifier (or device ID) is a character string used to describe the unique identifier of the device, and the character string includes but is not limited to numbers, letters, symbols, characters and other characters.
  • the device ID of the node may be the device name, device number, IP address, and/or MAC address of the OLT.
  • the storage data record table of each node includes: the corresponding relationship between the device identifier and the data identifier of each node that stores data, wherein the same data identifier corresponds to the same data, and the same data can be stored in one or more nodes. .
  • a data record table is stored for each node.
  • Table 2 shows the stored data identifiers of each node in the downstream node device ID5, device ID7 to device ID9, for example, device ID5 stores data corresponding to data ID1 and data ID2, and device ID7 stores data corresponding to data ID3
  • the first data identifier may be any one of data ID1 to data ID4 in Table 2.
  • Each node stores data record table
  • the shortest transmission path of the target node to the first terminal device relative to other nodes storing the first data means that the target node and the first terminal device are located in the same connection downstream of the ingress device; that is, they directly or indirectly access the network through the same access device (such as OLT), so that the requested data only needs to be sent to the same access device first, and then the data can be sent by the access device. It is forwarded to the first terminal device.
  • the transmission path has only two hops.
  • the indirect access to the network through an access device refers to connecting to the access network through other devices, and accessing the network through the access device.
  • the target node and the first terminal device are directly connected to the same access device, as shown in Figure 3, the target node is ONT 2, and ONT 2 and ONT 1 access the network through OLT 1 , in the case of starting the local switching function on OLT 1, the shortest transmission path is that ONT 2 transmits the first data to OLT 1, and then OLT 1 sends the first data to the requested ONT 1, at this time,
  • the transmission path is ONT2 ⁇ OLT1 ⁇ ONT1
  • the first data passes through two nodes, OLT1 and ONT 1, that is, reaches the first terminal device ONT 1 after two hops.
  • the first data to be transmitted between ONT 1 and ONT 2 cannot be exchanged on OLT 1, and needs to be forwarded by BRAS.
  • the shortest transmission path is that OLT 1 first transmits the first data to BRAS, and then BRAS transmits the first data to ONT 1 through OLT 1.
  • the transmission path is ONT2 ⁇ OLT1 ⁇ BRAS ⁇ OLT1 ⁇ ONT1.
  • ONT 2 After the first data is sent from ONT 2, it finally reaches ONT 1 after 4 hops.
  • the target node and the first terminal device are indirectly connected to the same access device, as shown in FIG. 5 , the target node is ONT 2, and the first access device is OLT 1' , wherein ONT 1 is indirectly connected to OLT 1' through OLT 1, and ONT 2 is also indirectly connected to OLT 1' through OLT 2, then the first data sent by ONT 2 needs to pass through OLT 2, OLT 1', After BRAS, OLT 1', OLT 1, it finally reaches ONT 1.
  • the transmission path is ONT2 ⁇ OLT2 ⁇ OLT 1' ⁇ BRAS ⁇ OLT 1' ⁇ OLT 1 ⁇ OLT1, and finally reaches ONT 1 after 6 hops.
  • the first data is not stored in ONT 2, and only the first data is stored in ONT 4 in ONT 3 and ONT 4, then it is determined that the target node is an ONT 4.
  • the access device OLT 2 connected with ONT 4 is different from the access device OLT 1 connected with ONT 1, and the shortest transmission path is that the first data reaches ONT 1 after being forwarded by OLT2 and OLT 1.
  • the transmission path is ONT4 ⁇ OLT2 ⁇ BRAS ⁇ OLT1 ⁇ ONT1, and the first data is sent from ONT 2 and finally reaches ONT 1 after 4 hops.
  • the above step 202 also includes: determining that the target node is an access device, such as OLT 1, according to the network topology structure record table and each node storage data record table, as shown in FIG. 7 , then the shortest transmission path is the path from OLT1 to ONT 1, that is, OLT1 ⁇ ONT1. At this time, the first data is sent from OLT 1 to ONT 1 after one hop.
  • OLT 1 an access device
  • the determined IP address of the target node is sent to the first terminal device through the first access device, and after receiving it, the first terminal device establishes a relationship between the first terminal device and the target node according to the IP address. and receive the first data using the communication link.
  • the IP address of the ONT 2 is sent to the ONT 1, and the ONT 1 establishes a communication link with the ONT 2, Said first data from the ONT 2 is then received using this communication link.
  • ONT 1 receives the first data sent by OLT 1 according to the communication link with OLT 1.
  • the target node storing the requested data is searched in the network topology structure record table and the storage data record table of each node.
  • the transmission path between them is the shortest, so use the shortest transmission path to transmit the required data to the requested terminal device, so as to avoid the long distance between the target nodes selected in the same network segment, resulting in large backhaul traffic and transmission delay for data transmission. longer.
  • the method has short data transmission distance, small required traffic overhead, small transmission delay and high efficiency.
  • the first possible implementation is that the GSLB system receives the device identifiers sent by all terminal devices in the network, and the ID information of the access device connected to each terminal device (that is, the device identifier of the upstream node), according to at least one The device identification of the terminal device and the ID information of each of the access devices obtain the network topology structure record table, and store the network topology structure record table.
  • a method for obtaining the network topology structure record table includes:
  • the OLT 1 detects that the ONT 1 is connected to the network through the OLT 1, the OLT 1 sends the ID information of the OLT 1 to the ONT 1.
  • the ID information of the OLT 1 is used to uniquely identify the identity of the OLT 1, and the ID information of the OLT 1 includes the device identification, device number, MAC address, IP address, or other identifiers of the OLT 1.
  • the ID information of the OLT 1 may be sent to the ONT 1 in a manner carried by the first information.
  • the ONT 1 receives the first information sent by the OLT 1, where the first information includes the ID information of the OLT 1.
  • the ONT 1 sends the ID information of the OLT 1 to the GSLB system.
  • the ONT 1 when the ONT 1 registers with the GSLB system, it automatically establishes a communication connection with the GSLB system, and then uses the communication connection to send the ID information of the OLT 1.
  • the ONT 1 sends the device identification of the ONT 1 to the GSLB system.
  • the ONT 1 can send the ID information of the OLT 1 and the device identification of the ONT 1 respectively by means of two message reports, or can also send the ID information of the OLT 1 and the ONT 1's ID information in a one-time manner.
  • the device identification is sent to the GSLB system once.
  • the ID information of the OLT 1 and the device identifier of the ONT 1 are collectively referred to as the access information of the ONT 1.
  • the terminal device if the terminal device is connected to the network through two or more access devices, the terminal device also reports ID information of all access devices connected to it.
  • ONT 1 is connected to OLT 1' through OLT 1, and the upstream of OLT 1' is connected to the metropolitan area network.
  • OLT 1' and OLT 1 are two cascaded access devices, and OLT 1' is the parent access device, and OLT 1 is the child access device.
  • ONT 1 is acquiring the ID information of OLT 1 After matching the ID information of OLT 1', send these ID information to the GSLB system or network management device.
  • the ID information of the OLT 1' includes the device name, device number, MAC address, IP address or other identifiers of the OLT 1'.
  • the method also includes:
  • ONT 403 When other ONTs, such as ONT 2, ONT 3 and ONT 4, respectively send their access information to the GSLB system when accessing the network.
  • ONT 2 When other ONTs, such as ONT 2, ONT 3 and ONT 4, respectively send their access information to the GSLB system when accessing the network.
  • the ONT 2 sends the access information of the ONT 2 to the GSLB system, and the access information of the ONT 2 includes: the device identification of the ONT 2 and the ID information of the OLT 1 that it accesses.
  • the access information reported by the ONT 3 includes: the device identifier of the ONT 3 and the ID information of the OLT 2 it accesses;
  • the access information reported by the ONT 4 includes: the device identifier of the ONT 4 and the ID information it accesses.
  • ID information of OLT 2 As shown by the dotted line in Figure 9, it is a transmission link for each ONT to report access information to the GSLB system. Wherein, each ONT may periodically report various access information, and correspondingly, the GSLB system periodically obtains the access information reported by each ONT.
  • the GSLB system receives the ID information of the access device and the device identifier of each terminal device sent by each terminal device, obtains the network topology structure according to the information, and generates the network topology structure record table.
  • the GSLB system receives the device identification of ONT 1 and the ID information of OLT 1 sent by ONT 1, it obtains the following information: OLT 1 is downstream associated with ONT 1, the ID of OLT 1 and the device identification of ONT 1. Similarly, the GSLB system obtains the network topology record table according to the access information reported by ONT 2 to ONT 4, as shown in Table 3 below.
  • Table 3 only includes the device ID of each ONT, and the topological structure relationship between each ONT device and the device ID of the OLT, these topological structure relationships are reported by each terminal PCDN node, so the network topology
  • the structure record table may also be called a PCDN node list.
  • each ONT reports its own access information to the GSLB system when accessing the network, so that the GSLB system obtains the topology structure of each node in the network according to the information reported by these ONTs, so as to find the target connected under the same OLT.
  • the preparation of the node helps to quickly find the target ONT with the shortest transmission path to the requested ONT.
  • the second possible implementation is: obtaining the network topology structure record table through a network management device, and storing the network topology structure record table.
  • the network management device may be deployed in a metropolitan area network, or may be deployed in a place adjacent to the metropolitan area network, which is not limited in this embodiment.
  • the network management device may be referred to as a network management device for short.
  • the network management device is used to obtain the connection relationship of each node in the entire PCDN system architecture, and obtain the network topology structure according to the connection relationship. For example, when ONT 1 is connected to OLT 1, ONT 1 advertises the access information to the network management device. After the network management device receives it, it sends the device identification of ONT 1 and the ID information of OLT 1 to the GSLB system.
  • the method includes:
  • the OLT 1 When the OLT 1 detects that the ONT 1 is connected to the network, the OLT 1 sends the ID information of the OLT 1 to the network management device, where the ID information of the OLT 1 is used to uniquely identify the identity of the OLT 1.
  • the ONT 1 sends the device identification of the ONT 1 to the network management device.
  • the network management device receives the ID information of the OLT 1 and the device identifier of the ONT 1.
  • the network management device receives other network devices, such as ONT 2 to ONT 4, OLT 2 and BRAS respectively sending their own access information.
  • the network management device obtains a network topology structure according to the device identifier of at least one ONT, the ID information of each OLT, and the access information of the BRAS, and generates the network topology structure record table, as shown in Table 4 below.
  • the network management device sends the network topology structure record table to the GSLB system.
  • the GSLB system receives the topology structure record table of the current network sent by the network device.
  • ONT 1 when ONT 1 is connected to OLT 1, ONT 1 advertises the access information to the network management device, and the network management device then advertises the access information connected between ONT1 and OLT1 to the GSLB system after receiving it.
  • the method further includes: when detecting that a new ONT is connected to the network, the network management device also updates the network topology structure, and generates a new network topology structure record table.
  • the GSLB system obtains the network topology structure record table in the manner of reporting by the network management device, thereby providing convenience for finding the target node with the shortest path to the requester.
  • the network topology structure is dynamically obtained by the network management device, which avoids collecting and processing the access information reported by all nodes on the GSLB system side, saving the computational burden on the GSLB system side, and reducing the transmission of access information sent by each node to the GSLB system. overhead.
  • step 404 or step 605 after acquiring the network topology structure record table, the method further includes:
  • the number of PCDN nodes connected downstream of each access device may be one or more.
  • the GSLB system when the GSLB system receives the access information of the OLT 1, it determines that the access device connected to the ONT 1 is the OLT 1 according to the network topology structure record table, and acquires all the ONTs connected downstream of the OLT 1 .
  • the calculation function of the preset algorithm is activated, and one or more ONTs connected downstream of the OLT 1 are selected to store the first data corresponding to the first data identifier.
  • the first data identifier can be represented by "data ID1".
  • the GSLB system stores the first data on a PCDN node connected to each access device.
  • the network topology record table includes two access devices, OLT 1 and OLT 2, Then store the first data corresponding to program 1 in ONT 2 and ONT 4 respectively.
  • the first data may also be stored on multiple PCDN nodes connected to each access device.
  • the first data is stored in ONT3 and ONT 4 connected downstream of OLT 2.
  • the data identifier of the first data may be represented as data ID1, and the first data is the data corresponding to the video program 1, as shown in Table 5.
  • Each node stores data record table
  • the multiple pieces of data can be stored in different ONTs respectively.
  • the GSLB system will store the data corresponding to the program in two or more ONTs under the same OLT.
  • the downstream of OLT 1 is connected to 3 ONTs, namely ONT 1, ONT 4 and ONT 7, the first data can be stored on ONT 1, ONT 4 and ONT 7.
  • different data can be represented by different data IDs, and the storage data record table of each node is obtained, as shown in Table 6.
  • This embodiment does not limit the number of ONTs stored in each data.
  • the above-mentioned 202-2 further includes: storing the first data on one or more OLTs, for example, on OLT1 and OLT2.
  • the devices that store the data ID1 include ONT 2 and ONT 4.
  • the devices connected downstream of the OLT 1 have ONT 2 and ONT 1 do not have ONT4, so the determined target node is the ONT 2.
  • the IP address of ONT 2 is sent to ONT 1, so that ONT 1 establishes a transmission path with ONT 2, and the transmission path established between ONT 2 and ONT 1 is the shortest transmission path.
  • the system can Suppose that the rules select ONT2 or ONT 5 as the target node, and the preset rules include but are not limited to principles such as randomness, polling balance, weight polling, and address nearest priority. be restricted.
  • FIG. 12 is a schematic structural diagram of an apparatus for connecting devices according to an embodiment of the present application.
  • the apparatus may be an electronic device, such as a GSLB system, or a server, or an OLT, or a component located in the aforementioned device, such as a processing chip or a processing circuit.
  • the device can implement the device connection method in the foregoing embodiments.
  • the apparatus may include: a receiving unit 1201 , a processing unit 1202 and a sending unit 1203 .
  • the apparatus may also include other units or modules such as a storage unit.
  • the receiving unit 1201 is configured to receive a first request message sent by a first terminal device, where the first request message includes a device identifier and a first data identifier requested by the first terminal device, and the first data identifier indicates that The first data requested by the first terminal device;
  • the processing unit 1202 is configured to search for the target node in the stored data record table according to the first data identifier, the first device identifier, and the connection relationship of each device in the network ;
  • Sending unit 1203 configured to send the IP address of the target node to the first terminal device, where the target node stores the first data, and the first data is sent from the target node to the first terminal device
  • the transmission path between the first terminal devices is the shortest.
  • the stored data record table includes a device identifier of at least one node that stores the first data, and a corresponding relationship between the first data identifier.
  • connection relationship of each device in the network may be represented by a network topology structure record table.
  • the shortest transmission path of the first data from the target node to the first terminal device includes: the target node and the first terminal device are directly or indirectly connected through the same access device To the network, in other words, the ID information of the access device connected to the target node is the same as the ID information of the access device connected to the first terminal device.
  • the target node may be a first access device connected to the first terminal device, such as OLT 1.
  • the receiving unit 1201 is further configured to receive, before receiving the first request message sent by the first terminal device, a device identifier sent by at least one terminal device, and a ID information of the access device connected to each terminal device.
  • the processing unit 1202 is further configured to obtain the connection relationship of each device in the network according to the device identifier of the at least one terminal device and the ID information of each of the access devices.
  • the processing unit 1202 is further configured to determine the first access device connected to the first terminal device according to the connection relationship of each device in the network , acquiring at least one node connected to the first access device, selecting and storing the first data with one or more nodes in the at least one node; The corresponding relationship between the device identification and the first data identification, and the stored data record table is generated according to the corresponding relationship.
  • the ID information of the access device includes: one or more of the device name, device number, IP address, and MAC address of the access device.
  • an embodiment of the present application further provides a network device, and the network device may be a GSLB system, a server, or an OLT, or a component integrated in the network device.
  • FIG. 13 shows a schematic structural diagram of a network device.
  • the network device is a GSLB system, which may include: a processor 131 , a memory 132 , and at least one communication interface 133 .
  • the processor 131, the memory 132 and the at least one communication interface 133 are coupled through a communication bus.
  • the processor 131 is the control center of the network device, and can cooperate with the communication interface 133 for communication between devices, for example, including information exchange with each OLT, ONT, BRAS, network management device, metropolitan area network and other devices.
  • the processor 131 may be composed of an integrated circuit (Integrated Circuit, IC), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs connected with the same function or different functions.
  • the processor 131 may include a central processing unit (Central Processing Unit, CPU) or a digital signal processor (Digital Signal Processor, DSP) or the like.
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • the processor 131 may further include a hardware chip, and the hardware chip may be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
  • ASIC application specific integrated circuit
  • PLD programmable logic device
  • the above-mentioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general-purpose array logic (generic array logic, GAL) or any combination thereof.
  • the hardware chip is a processing chip or a processing circuit.
  • the memory 132 is used for storing and exchanging various data or software, including storage network topology structure record table, storage data record table of each node, ONT device identification and OLT ID information, first request message, first instruction information, etc.
  • various data or software including storage network topology structure record table, storage data record table of each node, ONT device identification and OLT ID information, first request message, first instruction information, etc.
  • computer programs and codes are also stored in the memory 132 .
  • the memory 132 may include volatile memory (volatile memory), such as random access memory (Random Access Memory, RAM); may also include non-volatile memory (non-volatile memory), such as flash memory (flash memory) memory), hard disk (Hard Sisk Drive, HDD) or solid-state drive (Solid-State Drive, SSD), the memory 132 may also include a combination of the above-mentioned types of memory.
  • volatile memory such as random access memory (Random Access Memory, RAM)
  • non-volatile memory such as flash memory (flash memory) memory), hard disk (Hard Sisk Drive, HDD) or solid-state drive (Solid-State Drive, SSD
  • flash memory flash memory
  • HDD Hard Sisk Drive
  • SSD solid-state drive
  • the communication interface 133 uses any device such as a transceiver, is used to communicate with other devices or communication networks, such as Ethernet, radio access network (RAN), Wireless Local Area Network (WLAN), Virtual Extensible Local Area Network (VXLAN), etc.
  • the communication interface 133 includes at least one interface.
  • the network device also includes a mobile communication module, a wireless communication module, and the like.
  • the mobile communication module includes modules with wireless communication functions such as 2G/3G/4G/5G.
  • filters, switches, power amplifiers, low noise amplifiers (LNAs), etc. may also be included.
  • the wireless communication module can provide applications on network equipment including wireless local area network (Wireless Local Area Network, WLAN), Bluetooth (bluetooth), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM) and other wireless communication solutions.
  • the above-mentioned network device may also include other more or less components, and the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the network device. And the components shown in FIG. 13 can be implemented in hardware, software, firmware or any combination thereof.
  • the receiving unit 1201 and the sending unit 1203 in the aforementioned apparatus shown in FIG. 12 can be implemented by the communication interface 133
  • the function of the processing unit 1202 can be implemented by the processor 131
  • the function of the storage unit can be implemented by The memory 132 is implemented.
  • the communication interface 133 of the network device receives a first request message sent by a first terminal device, where the first request message includes a device identifier of the first terminal device and a first data identifier, and the first data
  • the identifier indicates the first data requested by the first terminal device
  • the processor 131 searches for the target node in the storage data record table according to the first data identifier and the first device identifier, as well as the connection relationship of each device in the network , and then send the IP address of the target node to the first terminal device through the communication interface 133 .
  • the storage data record table includes at least one device identifier of the node storing the first data and the first data identifier corresponding relationship, the target node stores the first data, and the target node stores the first data, and the The transmission path of the first data from the target node to the first terminal device is the shortest.
  • an embodiment of the present application also provides a network system, and the structure of the network system may be the same as any one of the network architectures shown in FIG. 3 to FIG. 7 and FIG. 9 to FIG. 10, including the following network devices: GSLB system, BRAS, network management equipment, server, at least one OLT and at least one ONT, etc.
  • the GSLB system, server or OLT is the network device in the embodiment corresponding to FIG. 13 , and can implement the device connection method in the foregoing embodiment.
  • the at least one ONT is configured to send a first request message to the GSLB system, where the first request message includes the device identifier and the first data identifier of the first terminal device, and is further configured to receive The IP address of the target node sent by the GSLB system; and establish a communication connection with the target node according to the IP address of the target node, wherein the IP address of the target node is the IP address with the shortest transmission path between the target node and the ONT address.
  • the ID information of the first access device includes the device name, device number, and IP address of the first access device , MAC address, etc.; and also used for sending the ID information of the first access device to the GSLB system.
  • the network management device is configured to obtain its own device ID information sent by at least one OLT and ONT in the system, obtain a network topology structure according to the ID information sent by the at least one OLT and ONT, and generate a network The topology structure record table, and the network topology structure record table is sent to the GSLB system.
  • the system obtains the network topology structure of all nodes on the network device side, so that when the system receives a request message sent by a certain terminal device, it searches for the target node with the shortest transmission path with the requested terminal device according to the network topology structure, and uses The shortest transmission path transmits the required data to the requested terminal equipment, avoiding the long distance of the selected target nodes under the same network segment, which leads to an increase in the backhaul traffic of video program content transmission and a long transmission delay.
  • the data transmission distance of the method is short, so the traffic overhead required for data transmission is reduced, the transmission delay is small, and the efficiency is high.
  • Embodiments of the present application also provide a computer program product, where the computer program product includes one or more computer program instructions.
  • the computer program product includes one or more computer program instructions.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer program instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from a network device, computer, server or data
  • the hub transmits to another network device via wired or wireless means.
  • the computer program product and the computer program instructions may be located in the memory of the aforementioned network device, so as to implement the device connection method described in the embodiments of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present application discloses a device connection method and apparatus. Said method comprises: receiving a first request message sent by a first terminal device, the first request message comprising a device identifier and a first data identifier of the first terminal device, and the first data identifier indicating first data requested by the first terminal device; according to the first data identifier and the first device identifier, and a connection relationship between various devices in a network, searching a storage data record table for a target node, the storage data record table comprising a correlation between the device identifier of at least one node storing the first data and the first data identifier, the target node storing the first data, and a transmission path of the first data from the target node to the first terminal device being the shortest; and sending an IP address of the target node to the first terminal device. In this method, the shortest transmission path is used for data transmission, and the required traffic overhead is small, the transmission delay is small, and the transmission efficiency is high.

Description

一种设备连接方法、装置和设备Device connection method, device and device
本申请要求于2020年9月18日提交中国国家知识产权局、申请号为202010989992.0、申请名称为“一种设备连接方法、装置和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202010989992.0 and the application title "A Device Connection Method, Apparatus and Equipment" filed with the State Intellectual Property Office of China on September 18, 2020, the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请涉及内容分发技术领域,尤其是涉及一种基于PCDN的设备连接方法、装置和设备。The present application relates to the technical field of content distribution, and in particular, to a PCDN-based device connection method, apparatus, and device.
背景技术Background technique
内容分发网络(Content Delivery Network,CDN)是一个策略性部署的整体***。意在尽可能避开互联网上有可能影响数据传输速度和稳定性的瓶颈和环节,使内容传输的更快、更稳定。通过在网络各处放置节点服务器所构成的在现有的互联网基础之上的一层智能虚拟网络,CDN***能够实时地根据网络流量和各节点的连接、负载情况以及到用户的距离和响应时间等综合信息将用户的请求重新导向离用户最近的服务节点上。使得用户可就近取得所需内容,解决Internet网络拥挤的状况,提高用户访问网站的响应速度。Content Delivery Network (CDN) is a strategically deployed overall system. It is intended to avoid bottlenecks and links that may affect the speed and stability of data transmission on the Internet as much as possible, so that content transmission is faster and more stable. By placing node servers everywhere in the network to form a layer of intelligent virtual network on the basis of the existing Internet, the CDN system can real-time based on network traffic and the connection and load of each node, as well as the distance to the user and response time Such comprehensive information redirects the user's request to the service node closest to the user. It enables users to obtain the required content nearby, solves the situation of Internet network congestion, and improves the response speed of users visiting websites.
对等式网络(peer-to-peer,P2P),又称点到点技术,是无中心服务器、依靠用户群(peers)交换信息的互联网体系,它的作用在于,减低以往网路传输中的节点,以降低资料遗失的风险。与有中心服务器的中央网络***不同,对等网络的每个用户端既是一个节点,也有服务器的功能,任何一个节点无法直接找到其他节点,必须依靠其户群进行信息交流。P2P网络是一种共享网络,其中每个节点都是服务的供应者和接受者,每个节点都共享自己一部分硬件资源(计算能力、存储能力、传输能力等)。Peer-to-peer (P2P), also known as peer-to-peer technology, is an Internet system that does not have a central server and relies on user groups (peers) to exchange information. node to reduce the risk of data loss. Different from the central network system with a central server, each client of the peer-to-peer network is not only a node, but also has the function of a server. Any node cannot directly find other nodes and must rely on its user group for information exchange. A P2P network is a shared network, in which each node is a provider and receiver of services, and each node shares a part of its own hardware resources (computing capacity, storage capacity, transmission capacity, etc.).
点到点内容分发网络(P2P CDN,简称PCDN)是一种结合P2P和CDN的技术,它以P2P技术为基础,通过挖掘利用边缘网络海量碎片化闲置资源而构建的低成本、高品质的内容分发网络服务。PCDN技术将视频节目直接下载到家庭路由器,当有用户请求观看某一视频节目时,可以直接从附近的家庭路由器上获取该视频节目。Peer-to-peer content distribution network (P2P CDN, PCDN for short) is a technology that combines P2P and CDN. It is based on P2P technology and builds low-cost, high-quality content by mining and utilizing massive fragmented idle resources in edge networks. Distribute web services. The PCDN technology directly downloads the video program to the home router. When a user requests to watch a certain video program, the video program can be obtained directly from the nearby home router.
在现有的对用户请求的视频节目进行查找和分发过程中,网络***一般根据请求的用户终端设备的地址,查找与该终端设备位于同一网段且存储有视频节目的另一个终端设备,然后将查找到的另一终端设备上存储的视频节目发送给请求的用户。但由于位于同一网段上的两个终端设备之间的距离可能较远,比如请求的用户终端设备与查找到的目标终端设备分别位于不同的光线路终端(optical line terminal,OLT),导致传输视频节目数据的流量较大,并且传输时容易发生时延,传输效率较低。In the existing process of searching and distributing the video program requested by the user, the network system generally searches for another terminal device located in the same network segment as the terminal device and storing the video program according to the address of the requested user terminal device, and then Send the found video program stored on another terminal device to the requesting user. However, because the distance between two terminal devices located on the same network segment may be far, for example, the requested user terminal device and the found target terminal device are located in different optical line terminals (OLT), resulting in transmission The flow of video program data is large, and delays are prone to occur during transmission, resulting in low transmission efficiency.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种设备连接方法和装置,用于减小视频数据传输的流量、提高传输效率。具体地,本申请公开了以下技术方案:Embodiments of the present application provide a device connection method and apparatus, which are used to reduce the flow of video data transmission and improve transmission efficiency. Specifically, the application discloses the following technical solutions:
第一方面,本申请实施例提供了一种设备连接方法,该方法包括:接收第一终端设备发送的第一请求消息,所述第一请求消息包括所述第一终端设备的设备标识和第一数据标识,所述第一数据标识指示所述第一终端设备请求的第一数据;根据所述第一数据标识和所述第一设备标识,以及网络中各个设备的连接关系在存储数据记录表中查找目标节点,以及,将 该目标节点的IP地址发送给所述第一终端设备。In a first aspect, an embodiment of the present application provides a device connection method. The method includes: receiving a first request message sent by a first terminal device, where the first request message includes a device identifier of the first terminal device and a first request message. A data identifier, the first data identifier indicates the first data requested by the first terminal device; according to the first data identifier and the first device identifier, and the connection relationship of each device in the network, the data record is stored Find the target node in the table, and send the IP address of the target node to the first terminal device.
其中,所述存储数据记录表中包括至少一个存储有所述第一数据的节点的设备标识和所述第一数据标识的对应关系,所述目标节点存储有所述第一数据,且所述第一数据从所述目标节点到所述第一终端设备之间的传输路径最短。另外,所述网络中各个设备的连接关系包括:网络中每个设备ID连接的上游节点的设备标识,和/或,下游节点的设备标识。Wherein, the storage data record table includes at least one device identifier of the node storing the first data and the first data identifier corresponding relationship, the target node stores the first data, and the target node stores the first data, and the The transmission path of the first data from the target node to the first terminal device is the shortest. In addition, the connection relationship of each device in the network includes: the device identifier of the upstream node to which each device ID in the network is connected, and/or the device identifier of the downstream node.
可选的,所述网络中各个设备的连接关系通过网络拓扑结构记录表来表示。Optionally, the connection relationship of each device in the network is represented by a network topology structure record table.
本方面提供的方法,根据终端设备发送的请求消息中携带的设备标识和数据标识,在网络中各个设备的连接关系和各节点存储数据记录表中查找存储有请求的数据的目标节点,由于该目标节点与终端设备之间的传输路径最短,所以利用该最短传输路径向请求的终端设备传输所需的数据,避免在同一网段下选择的目标节点距离较远,导致数据传输的回程流量较大,传输时延较长。本方法传输数据的路程短、所需的流量开销小、传输延迟小、效率高。In the method provided by this aspect, according to the device identification and data identification carried in the request message sent by the terminal device, the connection relationship of each device in the network and the storage data record table of each node are searched for the target node that stores the requested data. The transmission path between the target node and the terminal device is the shortest, so the shortest transmission path is used to transmit the required data to the requested terminal device, so as to avoid the target node selected in the same network segment being far away, resulting in a larger backhaul traffic for data transmission. large, the transmission delay is long. The method has short data transmission distance, small required traffic overhead, small transmission delay and high efficiency.
可选的,所述第一数据从所述目标节点到所述第一终端设备之间的传输路径最短,包括:所述目标节点与所述第一终端设备直接或间接通过同一接入设备连接至网络。Optionally, the shortest transmission path of the first data from the target node to the first terminal device includes: the target node and the first terminal device are directly or indirectly connected through the same access device to the network.
或者,所述目标节点为与所述第一终端设备直接或间接相连的第一接入设备,此时,所述第一接入设备与第一终端设备之间的传输路径最短。Alternatively, the target node is a first access device directly or indirectly connected to the first terminal device, and in this case, the transmission path between the first access device and the first terminal device is the shortest.
本方法,选择第一接入设备或者与第一接入设备连接的一个下游节点作为目标节点,使得该目标节点与第一终端设备之间的传输路径最短,传输流量的开销最小,传输效率最高。In this method, the first access device or a downstream node connected to the first access device is selected as the target node, so that the transmission path between the target node and the first terminal device is the shortest, the overhead of the transmission traffic is the smallest, and the transmission efficiency is the highest .
结合第一方面,在第一方面的一种可能的实现方式中,所述接收第一终端设备发送的第一请求消息之前,还包括:接收至少一个终端设备的设备标识,以及与每个所述终端设备连接的接入设备的ID信息;根据所述至少一个终端设备的设备标识和每个所述接入设备的ID信息,获得所述网络中各个设备的连接关系。其中,所述接入设备的ID信息包括:所述接入设备的设备名称、设备编号、IP地址,和MAC地址中的至少一种。With reference to the first aspect, in a possible implementation manner of the first aspect, before the receiving the first request message sent by the first terminal device, the method further includes: receiving a device identifier of at least one terminal device, and communicating with each of the terminal devices. ID information of the access device to which the terminal device is connected; according to the device identifier of the at least one terminal device and the ID information of each of the access devices, the connection relationship of each device in the network is obtained. Wherein, the ID information of the access device includes at least one of the device name, device number, IP address, and MAC address of the access device.
本实现方式中,每个终端设备主动上报自己的设备标识和其接入的节点的ID信息,从而使得接收端节点可以获得各个终端设备的拓扑结构,为查找最短传输路径的目标节点提供依据。In this implementation, each terminal device actively reports its own device identification and the ID information of the node to which it is connected, so that the receiving end node can obtain the topology structure of each terminal device, providing a basis for finding the target node of the shortest transmission path.
结合第一方面,在第一方面的另一种可能的实现方式中,所述接收第一终端设备发送的第一请求消息之前,还包括:接收网络管理设备发送的所述网络中各个设备的连接关系。其中,所述网络管理设备可根据网络中各个设备上报的ID信息,和,设备标识来确定各个设备的连接关系。With reference to the first aspect, in another possible implementation manner of the first aspect, before the receiving the first request message sent by the first terminal device, the method further includes: receiving the information of each device in the network sent by the network management device. connection relationship. Wherein, the network management device may determine the connection relationship of each device according to the ID information reported by each device in the network and the device identifier.
本实现方式,通过网络管理设备上报的方式获得网络拓扑结构记录表,从而为查找与请求端路径最短的目标节点提供便捷。另外,利用网管设备动态地获取网络拓扑结构,避免在GSLB***侧统计和处理所有节点上报的接入信息,节约了GSLB***侧的运算负担,减少了各个节点向GSLB***发送接入信息的传输开销。In this implementation manner, the network topology structure record table is obtained by way of reporting by the network management device, thereby providing convenience for finding the target node with the shortest path to the requester. In addition, the network topology is dynamically obtained by using the network management device, which avoids collecting and processing the access information reported by all nodes on the GSLB system side, saving the computational burden on the GSLB system side, and reducing the transmission of access information sent by each node to the GSLB system. overhead.
结合第一方面,在第一方面的又一种可能的实现方式中,方法还包括:根据所述网络中各个设备的连接关系确定与所述第一终端设备连接的第一接入设备,获取与所述第一接入设备连接的至少一个节点,选择所述至少一个节点中的一个或多个存储所述第一数据;建立已存储所述第一数据的节点的设备标识与所述第一数据标识之间的对应关系,并根据所述对应关系生成所述存储数据记录表。With reference to the first aspect, in yet another possible implementation manner of the first aspect, the method further includes: determining a first access device connected to the first terminal device according to the connection relationship of each device in the network, and obtaining At least one node connected to the first access device selects one or more of the at least one node to store the first data; establishes the device identifier of the node that has stored the first data with the first data. A corresponding relationship between data identifiers, and the stored data record table is generated according to the corresponding relationship.
本实现方式,将第一数据存储在与请求的终端设备具有同一接入设备的下游节点上,从而能够查找到具有同一接入设备的一个节点作为目标节点,并且这个目标节点与请求的第一终端设备之间的传输路径最短。In this implementation manner, the first data is stored on the downstream node that has the same access device as the requested terminal device, so that a node with the same access device can be found as a target node, and this target node is the same as the requested first node. The transmission path between end devices is the shortest.
第二方面,本申请还提供一种设备连接装置,所述装置包括:接收单元、处理单元和发送单元等。In a second aspect, the present application further provides an apparatus for connecting devices, the apparatus includes: a receiving unit, a processing unit, a sending unit, and the like.
其中,接收单元,用于接收第一终端设备发送的第一请求消息,该第一请求消息包括第一终端设备的设备标识和第一数据标识,该第一数据标识指示第一终端设备请求的第一数据;处理单元,用于根据第一数据标识和第一设备标识,以及网络中各个设备的连接关系在存储数据记录表中查找目标节点;发送单元,用于将该目标节点的IP地址发送给第一终端设备。The receiving unit is configured to receive a first request message sent by the first terminal device, where the first request message includes a device identifier of the first terminal device and a first data identifier, and the first data identifier indicates the request of the first terminal device. the first data; the processing unit is used to find the target node in the stored data record table according to the first data identifier and the first device identifier, and the connection relationship of each device in the network; the sending unit is used to find the IP address of the target node sent to the first terminal device.
上述存储数据记录表中包括至少一个存储有该第一数据的节点的设备标识,和,第一数据标识的对应关系,并且目标节点存储有所述第一数据,该第一数据从所述目标节点到所述第一终端设备之间的传输路径最短。The above-mentioned storage data record table includes at least one device identification of the node that stores the first data, and, the corresponding relationship of the first data identification, and the target node stores the first data, the first data from the target The transmission path between the node and the first terminal device is the shortest.
结合第二方面,在第二方面的一种可能的实现方式中,第一数据从目标节点到第一终端设备之间的传输路径最短,包括:该目标节点与第一终端设备直接或间接通过同一接入设备连接至网络。With reference to the second aspect, in a possible implementation manner of the second aspect, the transmission path of the first data from the target node to the first terminal device is the shortest, including: the target node and the first terminal device directly or indirectly pass through The same access device is connected to the network.
结合第二方面,在第二方面的另一种可能的实现方式中,所述接收单元,还用于在接收第一终端设备发送的第一请求消息之前,接收至少一个终端设备发送的设备标识,以及与每个所述终端设备连接的接入设备的ID信息;所述处理单元,还用于根据所述至少一个终端设备的设备标识,和,每个所述接入设备的ID信息获得所述网络中各个设备的连接关系。With reference to the second aspect, in another possible implementation manner of the second aspect, the receiving unit is further configured to receive a device identifier sent by at least one terminal device before receiving the first request message sent by the first terminal device , and the ID information of the access device connected to each of the terminal devices; the processing unit is further configured to obtain the ID information of each of the access devices according to the device identification of the at least one terminal device and the ID information of each of the access devices The connection relationship of each device in the network.
结合第二方面,在第二方面的又一种可能的实现方式中,所述接收单元,还用于在接收第一终端设备发送的第一请求消息之前,接收网络管理设备发送的网络中各个设备的连接关系。With reference to the second aspect, in yet another possible implementation manner of the second aspect, the receiving unit is further configured to receive, before receiving the first request message sent by the first terminal device, each message in the network sent by the network management device. The connection relationship of the device.
结合第二方面,在第二方面的又一种可能的实现方式中,所述处理单元,还用于根据所述网络中各个设备的连接关系,确定与所述第一终端设备连接的第一接入设备,并获取与该第一接入设备连接的至少一个节点,选择所述至少一个节点中的一个或多个节点存储第一数据;以及,建立已存储所述第一数据的节点的设备标识与所述第一数据标识之间的对应关系,并根据所述对应关系生成所述存储数据记录表。With reference to the second aspect, in yet another possible implementation manner of the second aspect, the processing unit is further configured to determine the first terminal device connected to the first terminal device according to the connection relationship of each device in the network access device, and obtain at least one node connected to the first access device, and select one or more nodes in the at least one node to store the first data; The corresponding relationship between the device identification and the first data identification, and the stored data record table is generated according to the corresponding relationship.
可选的,所述目标设备为与第一终端设备直接或间接相连接的第一接入设备。Optionally, the target device is a first access device directly or indirectly connected to the first terminal device.
第三方面,本申请提供一种信息发送方法,该方法可应用于一种PCDN节点,比如第一终端设备,所述方法包括:In a third aspect, the present application provides a method for sending information. The method can be applied to a PCDN node, such as a first terminal device. The method includes:
第一终端设备向GSLB***发送第一请求消息,所述第一请求消息包括所述第一终端设备的设备标识和第一数据标识,所述第一数据标识指示所述第一终端设备请求的第一数据;The first terminal device sends a first request message to the GSLB system, where the first request message includes a device identifier of the first terminal device and a first data identifier, and the first data identifier indicates the request of the first terminal device. first data;
所述第一终端设备接收所述GSLB***发送的目标节点的IP地址;所述目标节点由所述GSLB***根据所述第一数据标识和所述第一设备标识,以及网络中各个设备的连接关系在存储数据记录表中查找后确定;The first terminal device receives the IP address of the target node sent by the GSLB system; the target node is identified by the GSLB system according to the first data identification and the first device identification, and the connection of each device in the network The relationship is determined after looking up in the stored data record table;
所述第一终端设备根据所述目标节点的IP地址与所述目标设备建立通信链路,并利用所述通信链路接收所述第一数据。The first terminal device establishes a communication link with the target device according to the IP address of the target node, and uses the communication link to receive the first data.
结合第三方面,在第三方面的一种可能的实现方式中,方法还包括:所述第一终端设备接收第一接入设备发送的第一接入设备的ID信息,所述第一接入设备的ID信息包括第一接入设备的设备标识、设备编号、MAC地址、IP地址或者其他标识符等;所述第一终端设备将所述第一终端设备的设备标识,和,所述第一接入设备的ID信息发送给所述GSLB***。With reference to the third aspect, in a possible implementation manner of the third aspect, the method further includes: receiving, by the first terminal device, ID information of the first access device sent by the first access device, and the first access device The ID information of the access device includes the device identifier, device number, MAC address, IP address or other identifiers of the first access device; the first terminal device identifies the device identifier of the first terminal device, and the The ID information of the first access device is sent to the GSLB system.
第四方面,本申请提供一种信息发送方法,该方法可应用于一种网络设备,比如网络管理设备,所述方法包括:In a fourth aspect, the present application provides a method for sending information. The method can be applied to a network device, such as a network management device, and the method includes:
网络管理设备接收网络中至少一个终端设备发送的设备标识;The network management device receives the device identifier sent by at least one terminal device in the network;
所述网络管理设备接收所述网络中至少一个接入设备的ID信息;The network management device receives ID information of at least one access device in the network;
所述网络管理设备根据所述至少一个终端设备的设备标识,和至少一个接入设备中每个所述接入设备的ID信息获得所述网络中各个设备的连接关系;The network management device obtains the connection relationship of each device in the network according to the device identifier of the at least one terminal device and the ID information of each of the access devices in the at least one access device;
所述网络管理设备将所述网络中各个设备的连接关系发送给所述GSLB***。The network management device sends the connection relationship of each device in the network to the GSLB system.
结合第四方面,在第四方面的一种可能的实现方式中,方法还包括:所述网络管理设备接收其他节点发送的ID信息,根据所述其他节点发送的ID信息更新所述网络中各个设备的连接关系。With reference to the fourth aspect, in a possible implementation manner of the fourth aspect, the method further includes: the network management device receives ID information sent by other nodes, and updates each node in the network according to the ID information sent by the other nodes. The connection relationship of the device.
可选的,所述其他节点包括至少一个BRAS,所述BRAS的ID信息包括所述BRAS的设备标识、设备编号、MAC地址、IP地址中的一种或多种。Optionally, the other node includes at least one BRAS, and the ID information of the BRAS includes one or more of a device identifier, a device number, a MAC address, and an IP address of the BRAS.
可选的,所述网络中各个设备的连接关系可通过网络拓扑结构记录表来表示。Optionally, the connection relationship of each device in the network may be represented by a network topology structure record table.
第五方面,本申请提供一种网络设备,该网络设备中包括处理器和存储器,且处理器与存储器耦合;所述存储器用于存储计算机程序指令;所述处理器用于执行存储器中存储的所述指令,使得所述网络设备执行前述第一方面以及第一方面各种实现方式中的方法。In a fifth aspect, the present application provides a network device, the network device includes a processor and a memory, and the processor is coupled to the memory; the memory is used for storing computer program instructions; the processor is used for executing all stored in the memory. The instruction is executed, so that the network device executes the foregoing first aspect and the method in various implementation manners of the first aspect.
另外,所述网络设备还包括通信接口、收发器等部件。In addition, the network device further includes components such as a communication interface, a transceiver, and the like.
可选的,所述网络设备可以利用所述处理器和存储器实现前述第三方面和第四方面中所述的方法。具体地,当所述网络设备为一种终端设备时,可以实现前述第三方面所述的信息发送方法;当所述网络设备为一种网管设备时,可以实现前述第四方面所述的信息发送方法。Optionally, the network device may use the processor and the memory to implement the methods described in the third aspect and the fourth aspect. Specifically, when the network device is a terminal device, the information sending method described in the third aspect can be implemented; when the network device is a network management device, the information described in the fourth aspect can be implemented. delivery method.
应理解,上述处理器和存储器可以集成在一个芯片电路中,比如处理芯片。该处理芯片中包括存储单元和处理单元,所述处理单元和存储单元可用于实现前述处理器和存储器的全部功能,并实现前述第一方面和第一方面中各种实现方式所述的方法。It should be understood that the above-mentioned processor and memory may be integrated in a chip circuit, such as a processing chip. The processing chip includes a storage unit and a processing unit, and the processing unit and the storage unit can be used to implement all the functions of the aforementioned processor and memory, and to implement the methods described in the aforementioned first aspect and various implementation manners of the first aspect.
可选的,所述处理芯片还可以实现前述第三方面和第四方面中所述的方法。Optionally, the processing chip may also implement the methods described in the third aspect and the fourth aspect.
第六方面,本申请还提供了一种计算机可读存储介质,该存储介质中存储有指令,使得当指令在计算机或处理器上运行时,可以用于执行前述第一方面以及第一方面各种实现方式中的方法。In a sixth aspect, the present application further provides a computer-readable storage medium, in which instructions are stored, so that when the instructions are executed on a computer or a processor, they can be used to execute the foregoing first aspect and each of the first aspects. method in an implementation.
可选的,当指令在计算机或处理器上运行时,还可以用于执行前述第三方面和第四方面中的方法。Optionally, when the instructions are run on a computer or a processor, they can also be used to perform the methods in the third and fourth aspects.
另外,本申请还提供了一种计算机程序产品,该计算机程序产品包括计算机指令,当该指令被计算机或处理器执行时,可实现前述第一方面以及第一方面各种实现方式中的方法,和/或,前述第三方面和第四方面中的方法。In addition, the present application also provides a computer program product, the computer program product includes computer instructions, when the instructions are executed by a computer or a processor, the aforementioned first aspect and the method in various implementation manners of the first aspect can be implemented, And/or, the methods of the aforementioned third and fourth aspects.
需要说明的是,上述第二方面至第六方面的各种实现方式的技术方案所对应的有益效果与前述第一方面以及第一方面的各种实现方式的有益效果相同,具体参见上述第一方面以及第一方面的各种实现方式中的有益效果描述,不再赘述。It should be noted that the beneficial effects corresponding to the technical solutions of the various implementation manners of the second aspect to the sixth aspect are the same as the beneficial effects of the foregoing first aspect and various implementation manners of the first aspect. For details, please refer to the foregoing first aspect. Aspects and descriptions of beneficial effects in various implementation manners of the first aspect will not be repeated.
附图说明Description of drawings
图1为本申请实施例提供的一种PCDN架构的示意图;1 is a schematic diagram of a PCDN architecture according to an embodiment of the present application;
图2为本申请实施例提供的一种设备连接方法的流程图;FIG. 2 is a flowchart of a device connection method provided by an embodiment of the present application;
图3为本申请实施例提供的一种节点间最短传输路径的示意图;3 is a schematic diagram of a shortest transmission path between nodes according to an embodiment of the present application;
图4为本申请实施例提供的另一种节点间最短传输路径的示意图;4 is a schematic diagram of another shortest transmission path between nodes according to an embodiment of the present application;
图5为本申请实施例提供的又一种节点间最短传输路径的示意图;5 is a schematic diagram of another shortest transmission path between nodes provided by an embodiment of the present application;
图6为本申请实施例提供的又一种节点间最短传输路径的示意图;6 is a schematic diagram of another shortest transmission path between nodes provided by an embodiment of the present application;
图7为本申请实施例提供的又一种节点间最短传输路径的示意图;FIG. 7 is a schematic diagram of another shortest transmission path between nodes according to an embodiment of the present application;
图8为本申请实施例提供的一种获得网络拓扑结构记录表的信令流程图;FIG. 8 is a signaling flowchart for obtaining a network topology structure record table according to an embodiment of the present application;
图9为本申请实施例提供的一种ONT上报接入信息的结构示意图;FIG. 9 is a schematic structural diagram of an ONT reporting access information according to an embodiment of the present application;
图10为本申请实施例提供的一种包含网络管理设备的网络结构示意图;10 is a schematic diagram of a network structure including a network management device according to an embodiment of the present application;
图11为本申请实施例提供的另一种获得网络拓扑结构记录表的信令流程图;11 is another signaling flowchart for obtaining a network topology structure record table provided by an embodiment of the present application;
图12为本申请实施例提供的一种设备连接装置的结构示意图;FIG. 12 is a schematic structural diagram of a device connecting device provided by an embodiment of the application;
图13为本申请实施例提供的一种网络设备的结构示意图。FIG. 13 is a schematic structural diagram of a network device according to an embodiment of the present application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请实施例中的技术方案,并使本申请实施例的上述目的、特征和优点能够更加明显易懂,下面结合附图对本申请实施例中的技术方案作进一步详细的说明。In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, and to make the above-mentioned purposes, features and advantages of the embodiments of the present application more clearly understood, the following describes the technical solutions in the embodiments of the present application with reference to the accompanying drawings. The program is described in further detail.
在对本申请实施例的技术方案说明之前,首先结合附图对本申请实施例的应用场景进行说明。Before describing the technical solutions of the embodiments of the present application, the application scenarios of the embodiments of the present application are first described with reference to the accompanying drawings.
本申请的技术方案可应用于一种包含CDN和P2P技术的网络***,比如PCDN。所述PCDN可以采用上层CDN,下层P2P的网络架构。在CDN的基础上(仍然由中心服务器发给边缘服务器),在边缘服务器引入可管理的P2P自治区,由至少一个边缘服务器和多个用户组成,这样既能监管视频分发的内容,也可以降低骨干网络的压力。The technical solution of the present application can be applied to a network system including CDN and P2P technologies, such as PCDN. The PCDN may adopt an upper-layer CDN and a lower-layer P2P network architecture. On the basis of CDN (which is still sent from the central server to the edge server), a manageable P2P autonomous region is introduced in the edge server, which consists of at least one edge server and multiple users, which can not only supervise the content of video distribution, but also reduce the backbone network pressure.
其中,CDN是一个策略性部署的整体***,它具有分布式存储、负载均衡、网络请求的重定向和内容管理等功能,通过用户就近性和服务器负载等判断原则为用户选择视频内容,并向用户提供服务。另外,CDN中的每个CDN节点可以包括负载均衡设备和高速缓存服务器。具体地,负载均衡设备用于负责每个节点中各个Cache的负载均衡,保证节点的工作效率。另外,负载均衡设备还负责收集节点与周围环境的信息,保持与全局负载域名***(Domain Name System,DNS)的通信,实现整个***的负载均衡。Among them, CDN is a strategically deployed overall system. It has functions such as distributed storage, load balancing, redirection of network requests, and content management. It selects video content for users based on the judgment principles of user proximity and server load, and sends it to users. User provides services. Additionally, each CDN node in the CDN may include a load balancing device and a cache server. Specifically, the load balancing device is used for load balancing of each cache in each node, so as to ensure the work efficiency of the node. In addition, the load balancing device is also responsible for collecting information about nodes and the surrounding environment, maintaining communication with the global load Domain Name System (DNS), and realizing load balancing of the entire system.
P2P网络是一种共享网络,其中每个节点都是服务的供应者和接受者,每个节点都共享自己一部分硬件资源(计算能力、存储能力、传输能力等)。A P2P network is a shared network, in which each node is a provider and receiver of services, and each node shares a part of its own hardware resources (computing capacity, storage capacity, transmission capacity, etc.).
参见图1所示,为本申请实施例提供的一种PCDN架构的示意图。该PCDN中结合了无源光网络(passive optical network,PON)和CDN。其中,PON是一种点对多点传送的光接入技术,如图1所示,光线路终端(optical line terminal,OLT)用来为光接入网(optical access network,OAN)提供网络侧接口,OLT连接上游的网络侧设备(如交换机、路由器等),下游连接一个或者多个光分配网络(optical distribution network,ODN)。Referring to FIG. 1 , it is a schematic diagram of a PCDN architecture according to an embodiment of the present application. The PCDN combines a passive optical network (PON) and a CDN. Among them, PON is a point-to-multipoint optical access technology. As shown in Figure 1, an optical line terminal (OLT) is used to provide a network side for an optical access network (OAN). Interface, OLT connects upstream network-side devices (such as switches, routers, etc.), and downstream connects one or more optical distribution networks (ODNs).
其中,ODN包括用于光功率分配的无源光分光器(图1中为示出)、连接在无源光分光器和OLT之间的主干光纤,以及连接在无源光分光器和光网络单元(optical network unit,ONU)之间的分支光纤,在下行传输数据时,ODN将OLT下行的数据通过分光器传输到各个ONU。在上行传输数据时,ODN将ONU的上行数据汇聚后传输到OLT。Among them, the ODN includes a passive optical splitter (shown in Figure 1) for optical power distribution, a backbone fiber connected between the passive optical splitter and the OLT, and a passive optical splitter and an optical network unit. Branch fibers between ONUs (optical network units, ONUs), when downstream data is transmitted, the ODN transmits the downstream data of the OLT to each ONU through an optical splitter. When transmitting data upstream, the ODN aggregates the upstream data of the ONU and transmits it to the OLT.
OLT是光接入网的核心部件,相当于传统通信网中的交换机或路由器,同时也是一个多业务提供平台。一般放置在局端,提供面向用户的无源光纤网络的光纤接口。它主要实现的功能是:向上连接上层网络,完成广域网或互联网(包括BRAS和GSLB***)的上行接入;向下连接用户端设备,实现对用户端设备的控制、管理和测距等功能。The OLT is the core component of the optical access network, equivalent to a switch or router in a traditional communication network, and is also a multi-service providing platform. It is generally placed at the central office and provides an optical fiber interface for a user-oriented passive optical fiber network. Its main functions are: connect the upper-layer network upward to complete the uplink access of the WAN or the Internet (including BRAS and GSLB systems); connect the client equipment downward to realize the functions of control, management and ranging of the client equipment.
ONU为OAN提供用户侧接口,同时与ODN相连。如果ONU同时提供用户端口功能,如ONU提供以太网(Ethernet)用户端口或者传统电话业务(plain old telephone service,POTS)用户端口,则称为光网络终端(optical network termination,ONT),其中ONT又可俗称光 猫。它是接入网络中为家庭用户提供网络的设备,直接位于用户端,并且可以提供高速上网、网络电视(IPTV)、语音、WiFi等业务。The ONU provides the user-side interface for the OAN and is connected to the ODN at the same time. If the ONU provides user port functions at the same time, for example, the ONU provides an Ethernet (Ethernet) user port or a traditional telephone service (plain old telephone service, POTS) user port, it is called an optical network terminal (optical network termination, ONT). Can be commonly known as the light cat. It is a device that provides a network for home users in the access network. It is located directly at the user end, and can provide high-speed Internet access, IPTV, voice, WiFi and other services.
应理解,本实施例中,OLT和用户端设备之间通过PON接口连接,OLT可通过一个PON接口连接多个ONT。也就是说,在OLT下行连接用户端设备的多个PON接口中,每个PON接口都可对应多个用户端设备。It should be understood that, in this embodiment, the OLT and the client equipment are connected through a PON interface, and the OLT may be connected to multiple ONTs through one PON interface. That is to say, among the multiple PON interfaces on which the OLT is downstream connected to the client equipment, each PON interface may correspond to multiple client equipments.
在上述PCDN架构中,ONT为一个PCDN节点,每个PCDN节点对应一个用户终端。本申请实施例所述的PCDN节点或PCDN路由器为一种终端设备,所述终端设备包括但不限于是ONT或者家庭路由器。另外,所述PCDN节点可以是用户家庭内部的网络节点。In the above PCDN architecture, the ONT is a PCDN node, and each PCDN node corresponds to a user terminal. The PCDN node or PCDN router described in the embodiments of the present application is a terminal device, and the terminal device includes but is not limited to an ONT or a home router. In addition, the PCDN node may be a network node within the user's home.
另外,如图1所示,还包括城域网络,所述城域网络中通常还包括至少一个网络设备,或称网络节点,比如宽带远程接入服务器(Broadband Remote Access Server,BRAS)、交换机等。可选的,OLT既可以部署在城域网络内,也可以部署在离城域网络位置较近的地区。In addition, as shown in FIG. 1, it also includes a metropolitan area network, which usually includes at least one network device, or network node, such as a Broadband Remote Access Server (BRAS), a switch, etc. . Optionally, the OLT can be deployed either in the metropolitan area network or in an area close to the metropolitan area network.
BRAS是面向宽带网络应用的新型接入网关,它位于骨干网的边缘层,可以完成用户带宽的IP/异步传输模式(asynchronous transfer mode,ATM)网的数据接入(目前接入手段主要基于xDSL、电缆调制解调器(Cable Modem,CM)、高速以太网技术(比如局域网Local Area Network,LAN)/无线宽带数据接入(WLAN)等,实现商业楼宇及小区住户的宽带上网、基于互联网安全协议(IP Security Protocol,IPSec)的IP虚拟专用网络(Virtual Private Network,VPN)服务、构建企业内部Intranet、支持互联网服务提供商(Internet Service Provider,ISP)向用户批发业务等应用。其中,xDSL是各种类型数字用户线路(Digital Subscribe Line,DSL)。BRAS is a new type of access gateway for broadband network applications. It is located at the edge layer of the backbone network and can complete the data access of IP/asynchronous transfer mode (ATM) network of user bandwidth (the current access method is mainly based on xDSL , cable modem (Cable Modem, CM), high-speed Ethernet technology (such as Local Area Network, LAN) / wireless broadband data access (WLAN), etc., to achieve broadband Internet access for commercial buildings and residential residents, based on Internet Security Protocol (IP Security Protocol, IPSec) IP virtual private network (Virtual Private Network, VPN) services, building intranet intranet, supporting Internet Service Provider (Internet Service Provider, ISP) wholesale business to users and other applications. Among them, xDSL is a variety of applications Digital Subscriber Line (DSL).
可选的,BRAS可作为PCDN架构中的一个网络汇聚节点。Optionally, the BRAS can be used as a network convergence node in the PCDN architecture.
其中,BRAS和OLT通过以太网接口(ethernet interface)连接,以太网接口采用点到点的方式进行通信。当有多OLT个时,BRAS需要通过不同的以太网接口分别连接不同的OLT。也就是说,在BRAS连接OLT的多个以太网接口中,每个以太网接口都只对应唯一的一个OLT。另外,每个BRAS或OLT可称为一个CDN节点,在上述PCDN架构中,所述PCDN节点和所述CDN节点统称为节点。Among them, the BRAS and the OLT are connected through an ethernet interface, and the Ethernet interface communicates in a point-to-point manner. When there are multiple OLTs, the BRAS needs to connect different OLTs through different Ethernet interfaces. That is to say, among the multiple Ethernet interfaces connected to the OLT by the BRAS, each Ethernet interface corresponds to only one OLT. In addition, each BRAS or OLT may be referred to as a CDN node, and in the above PCDN architecture, the PCDN node and the CDN node are collectively referred to as a node.
另外,与城域网络相连接的网络设备还包括:全局负载均衡(Global Server Load Balance,GSLB)***。GSLB***用于实现在广域网(包括互联网)上不同地域的服务器间的流量调配,保证使用最佳的服务器服务离自己最近的客户,从而确保访问质量。此外,所述GSLB***还具备上述负载均衡设备的所有功能。In addition, the network equipment connected to the metropolitan area network also includes: a global server load balance (Global Server Load Balance, GSLB) system. The GSLB system is used to realize the traffic allocation between servers in different regions on the WAN (including the Internet), to ensure that the best server is used to serve the customers closest to itself, thereby ensuring the quality of access. In addition, the GSLB system also has all the functions of the above load balancing device.
在如图1所示的网络架构中,同一网段下可以包括至少两个OLT,比如OLT 1和OLT 2,其中每个OLT向上通过BRAS连接到GSLB***,向下则连接多个ONT。比如ONT 1至ONT 4,其中ONT 1和ONT 2通过OLT 1接入到PCDN,ONT 3和ONT 4通过OLT 2接入该PCDN。ONT 1至ONT 4为4个PCDN节点。In the network architecture shown in Figure 1, the same network segment may include at least two OLTs, such as OLT 1 and OLT 2, where each OLT is connected to the GSLB system upward through the BRAS, and downward is connected to multiple ONTs. For example, from ONT 1 to ONT 4, ONT 1 and ONT 2 access the PCDN through OLT 1, and ONT 3 and ONT 4 access the PCDN through OLT 2. ONT 1 to ONT 4 are 4 PCDN nodes.
每个PCDN节点上可预先存储多个视频节目,某一热点节目x被预先存放在该网段下的任意一个ONT上,比如存放在ONT 4上。当ONT 1或ONT 2发送DNS消息,请求观看热点节目x时,OLT 1接收并将该DNS消息发送给GSLB,GSLB接收该DNS消息后,查找到请求的热点节目x存放在ONT 4上,然后向ONT 4发送指示信息,ONT 4接收来自GSLB发送的指示信息后,将该热点节目x的数据依次通过OLT 2、BRAS和OLT 1传输给请求端ONT 1或ONT 2。Multiple video programs can be pre-stored on each PCDN node, and a certain hot program x is pre-stored on any ONT under the network segment, such as ONT 4. When ONT 1 or ONT 2 sends a DNS message to request to watch hot program x, OLT 1 receives and sends the DNS message to GSLB. After GSLB receives the DNS message, it finds the requested hot program x and stores it on ONT 4, and then Send the indication information to the ONT 4. After receiving the indication information from the GSLB, the ONT 4 transmits the data of the hot program x to the requesting terminal ONT 1 or ONT 2 through OLT 2, BRAS and OLT 1 in turn.
在上述传输过程中,热点节目x的数据需要经过BRAS回传至请求的ONT 1,从而导致数据回程流量增加,并且不同OLT下的两个ONT之间可能间隔很远的距离,所以当前在同一网段下ONT 1或ONT 2从ONT 4上获得热门节目数据的方案并不是最佳方案。本申请实施例提 供一种较优的分配方案,意在解决上述技术问题,提高PCDN架构中内容分发的效率,减小流量的传输时延。In the above transmission process, the data of the hot program x needs to be sent back to the requested ONT 1 through the BRAS, which leads to an increase in the data backhaul traffic, and the two ONTs under different OLTs may be separated by a long distance. The solution for ONT 1 or ONT 2 to obtain popular program data from ONT 4 under the network segment is not the best solution. The embodiments of the present application provide an optimal distribution scheme, which is intended to solve the above-mentioned technical problems, improve the efficiency of content distribution in the PCDN architecture, and reduce the transmission delay of traffic.
本实施例中,将存储有视频节目的终端设备称为具有PCDN功能的PCDN节点,或者称为使能的PCDN节点,将存储有所述视频节目的接入设备称为使能的CDN节点。并且,这些使能的PCDN节点或CDN节点中都包括存储介质,可用于存储视频节目所对应的数据。另外,所述视频节目对应的数据可通过数据标识来表示,比如数据ID。In this embodiment, the terminal device that stores the video program is called a PCDN node with PCDN function, or an enabled PCDN node, and the access device that stores the video program is called an enabled CDN node. Moreover, these enabled PCDN nodes or CDN nodes all include storage media, which can be used to store data corresponding to video programs. In addition, the data corresponding to the video program may be represented by a data identifier, such as a data ID.
如图2所示,本实施例提供一种设备连接方法,该方法可应用于前述的GSLB***、或服务器、或OLT,或者是集成在所述网络设备中的一个部件中,其中,该方法包括:As shown in FIG. 2 , this embodiment provides a device connection method, which can be applied to the aforementioned GSLB system, or server, or OLT, or integrated in a component of the network device, wherein the method include:
201:接收第一终端设备发送的第一请求消息,所述第一请求消息包括所述第一终端设备的设备标识和第一数据标识。201: Receive a first request message sent by a first terminal device, where the first request message includes a device identifier and a first data identifier of the first terminal device.
其中,所述第一数据标识指示所述第一终端设备请求的第一数据。比如当所述第一数据为一种视频内容时,所述第一数据标识为该视频内容的标识,例如节目x,x表示节目编号。可选的,所述视频内容还可以为视频点播、视频直播以及大文件下载,具体地,所述视频点播包括长视频点播,热度集中的短视频点播。所述视频直播包括大型晚会赛事直播、地方网台直播、秀场互动直播。所述大文件下载包括超过1MB且热度集中的文件分发,如应用市场分发、在线音频分发等。Wherein, the first data identifier indicates the first data requested by the first terminal device. For example, when the first data is a video content, the first data identifier is the identifier of the video content, for example, program x, where x represents the program number. Optionally, the video content may also be video-on-demand, live video, and large file download. Specifically, the video-on-demand includes long video-on-demand and short video-on-demand with a high degree of popularity. The video live broadcast includes live broadcast of large-scale evening events, live broadcast of local network stations, and interactive live broadcast of shows. The large file download includes file distribution that exceeds 1MB and is highly popular, such as application market distribution, online audio distribution, and the like.
由于视频节目内容最终是以数据或数据包的形式传输,所以本实施例中所述数据可以指用户请求的视频节目内容、或其他大文件,所述数据标识则是指用于标识该数据的指示信息,比如数据ID。Since the video program content is ultimately transmitted in the form of data or data packets, the data in this embodiment may refer to the video program content requested by the user or other large files, and the data identifier refers to the data used to identify the data. Indicative information, such as data ID.
所述第一终端设备为一个PCDN节点,比如ONT,且该ONT可通过第一接入设备连接至网络,所述第一接入设备为一个CDN节点,比如OLT。本实施例以所述第一终端设备为ONT 1,所述第一接入设备为OLT 1举例进行说明。The first terminal device is a PCDN node, such as an ONT, and the ONT can be connected to the network through a first access device, and the first access device is a CDN node, such as an OLT. This embodiment is described by taking an example that the first terminal device is ONT 1 and the first access device is OLT 1.
可选的,所述第一终端设备的设备标识包括但不限于第一终端设备的设备名称、设备编号、IP地址,和媒体访问控制(Media Access Control,MAC)地址等。Optionally, the device identifier of the first terminal device includes but is not limited to the device name, device number, IP address, and media access control (Media Access Control, MAC) address of the first terminal device.
另外,可选的,所述第一终端设备的设备标识可通过字符串表示,所述字符串中包括但不限于数字、字母、符号、文字等字符。所述终端设备的设备标识可以用设备ID表示。In addition, optionally, the device identification of the first terminal device may be represented by a character string, and the character string includes but is not limited to characters such as numbers, letters, symbols, and characters. The device identification of the terminal device may be represented by a device ID.
202:根据所述第一数据标识和所述第一设备标识,以及网络中各个设备的连接关系在各节点存储数据记录表中查找目标节点,所述目标节点存储有第一数据,且所述目标节点相对其他存储有所述第一数据的节点到达所述第一终端设备的传输路径最短。202: Search for a target node in each node storage data record table according to the first data identifier, the first device identifier, and the connection relationship of each device in the network, where the target node stores the first data, and the Compared with other nodes storing the first data, the target node has the shortest transmission path to the first terminal device.
其中,所述网络中各个设备的连接关系包括:网络中每个设备ID连接的上游节点的设备标识,和/或,下游节点的设备标识。所述上游节点是指当前设备上行连接的节点,比如对于一个ONT来说,与其相连接的OLT为该ONT的上游节点,该OLT的设备ID为所述上游节点的设备标识。类似的,所述下游节点是指当前设备下行连接的节点,比如对于一个OLT来说,与其相连接的所有ONT均为该OLT的下游节点,比如ONT 1,则ONT 1为所述OLT下游节点的设备标识。另外,对于该OLT来说,其上游节点可以是BRAS,比如BRAS 1,进而BRAS 1为该OLT的上游节点的设备标识。Wherein, the connection relationship of each device in the network includes: the device identifier of the upstream node to which each device ID in the network is connected, and/or the device identifier of the downstream node. The upstream node refers to the node to which the current device is connected upstream. For example, for an ONT, the OLT connected thereto is the upstream node of the ONT, and the device ID of the OLT is the device identifier of the upstream node. Similarly, the downstream node refers to the node that the current device is connected to downlink. For example, for an OLT, all ONTs connected to it are the downstream nodes of the OLT, such as ONT 1, then ONT 1 is the downstream node of the OLT. device identification. In addition, for the OLT, its upstream node may be a BRAS, such as BRAS 1, and then BRAS 1 is the device identifier of the upstream node of the OLT.
应理解,对于某些节点来说,可能只有与其连接的上游节点,比如ONT;或者可能只有与其连接的下游节点,比如BRAS,本实施例对此不做限制。It should be understood that, for some nodes, there may only be an upstream node connected to it, such as an ONT; or there may be only a downstream node connected to it, such as a BRAS, which is not limited in this embodiment.
可选的,本实施例将所述网络中各个设备的连接关系通过网络拓扑结构记录表来表示。所述网络拓扑结构记录表中包括每个节点的设备ID,与每个设备ID连接的上游节点的设备 标识,以及与每个设备ID连接的下游节点的设备标识。比如表1所示,为一种网络拓扑结构记录表。该表1中示出了设备ID1、设备ID2和设备ID3中每个设备上游连接的节点的设备标识,以及下游连接的节点的设备标识。比如设备ID1上游连接了设备ID4,下游连接了设备ID5和设备ID7。Optionally, in this embodiment, the connection relationship of each device in the network is represented by a network topology structure record table. The network topology structure record table includes the device ID of each node, the device ID of the upstream node connected with each device ID, and the device ID of the downstream node connected with each device ID. For example, as shown in Table 1, it is a network topology structure record table. Table 1 shows the device ID of each device in Device ID1, Device ID2, and Device ID3 of the node connected upstream, and the device ID of the node connected downstream. For example, device ID1 is connected upstream to device ID4, and downstream is connected to device ID5 and device ID7.
表1、网络拓扑结构记录表Table 1. Network topology record table
Figure PCTCN2021118639-appb-000001
Figure PCTCN2021118639-appb-000001
当然,还可以采用其他方式来表示网络中各个设备的连接关系,和网络拓扑结构,本实施例对此不进行限制。Certainly, other manners may also be used to represent the connection relationship of each device in the network and the network topology, which is not limited in this embodiment.
本实施例中,所述设备标识(或设备ID)为用于描述该设备的唯一标识的字符串,所述字符串中包括但不限于数字、字母、符号、文字等字符。当所述节点为OLT时,所述节点的设备ID可以为OLT的设备名称、设备编号、IP地址,和/或,MAC地址等。In this embodiment, the device identifier (or device ID) is a character string used to describe the unique identifier of the device, and the character string includes but is not limited to numbers, letters, symbols, characters and other characters. When the node is an OLT, the device ID of the node may be the device name, device number, IP address, and/or MAC address of the OLT.
所述各节点存储数据记录表中包括:每个存储有数据的节点的设备标识和数据标识的对应关系,其中,同一个数据标识对应相同的数据,同一数据可以存储在一个或多个节点中。例如表2所示,为一种各节点存储数据记录表。表2示出了下游节点设备ID5、设备ID7至设备ID9中每个节点已存储的数据标识,例如设备ID5中存储有数据ID1和数据ID2所对应的数据,设备ID7中存储有数据ID3所对应的数据。本实施例中,所述第一数据标识可以是表2中的数据ID1至数据ID4中的任意一个。The storage data record table of each node includes: the corresponding relationship between the device identifier and the data identifier of each node that stores data, wherein the same data identifier corresponds to the same data, and the same data can be stored in one or more nodes. . For example, as shown in Table 2, a data record table is stored for each node. Table 2 shows the stored data identifiers of each node in the downstream node device ID5, device ID7 to device ID9, for example, device ID5 stores data corresponding to data ID1 and data ID2, and device ID7 stores data corresponding to data ID3 The data. In this embodiment, the first data identifier may be any one of data ID1 to data ID4 in Table 2.
表2、各节点存储数据记录表Table 2. Each node stores data record table
设备标识Equipment Identity 已存储的数据标识Stored Data Identification
设备ID5Device ID5 数据ID1、数据ID2Data ID1, Data ID2
设备ID7Device ID7 数据ID3Data ID3
设备ID8Device ID8 数据ID4、数据ID2Data ID4, Data ID2
设备ID9Device ID9 数据ID1Data ID1
在一个实施例中,所述目标节点相对其他存储有所述第一数据的节点到达所述第一终端设备的传输路径最短是指,所述目标节点与所述第一终端设备位于同一个接入设备下游;即他们直接或间接通过同一个接入设备(比如OLT)接入到网络,这样,请求的数据只需要先发给所述相同的接入设备后,就可以由该接入设备转发给所述第一终端设备,在这种情况下,传输路径就只有两跳。其中所述间接通过一个接入设备接入网络是指通过其他设备后再连接到这个接入网络,并通过该接入设备接入网络。In one embodiment, the shortest transmission path of the target node to the first terminal device relative to other nodes storing the first data means that the target node and the first terminal device are located in the same connection downstream of the ingress device; that is, they directly or indirectly access the network through the same access device (such as OLT), so that the requested data only needs to be sent to the same access device first, and then the data can be sent by the access device. It is forwarded to the first terminal device. In this case, the transmission path has only two hops. The indirect access to the network through an access device refers to connecting to the access network through other devices, and accessing the network through the access device.
在一具体示例中,所述目标节点与所述第一终端设备直接连接同一接入设备,如图3所示,所述目标节点为ONT 2,且ONT 2和ONT 1通过OLT 1接入网络,在OLT 1上启动本地交换功能的情况下,所述最短传输路径为ONT 2将所述第一数据传输至OLT 1,然后OLT1将所述第一数据发送至请求的ONT 1,此时,传输路径为ONT2→OLT1→ONT1,第一数据经过OLT1和ONT 1两个节点,即发生两跳后到达第一终端设备ONT 1。In a specific example, the target node and the first terminal device are directly connected to the same access device, as shown in Figure 3, the target node is ONT 2, and ONT 2 and ONT 1 access the network through OLT 1 , in the case of starting the local switching function on OLT 1, the shortest transmission path is that ONT 2 transmits the first data to OLT 1, and then OLT 1 sends the first data to the requested ONT 1, at this time, The transmission path is ONT2→OLT1→ONT1, and the first data passes through two nodes, OLT1 and ONT 1, that is, reaches the first terminal device ONT 1 after two hops.
可选的,在OLT 1关闭本地交换功能的情况下,ONT 1与ONT 2之间待传输的第一数据无法在OLT 1上进行数据交换,需要经过BRAS转发。如图4所示,所述最短传输路径为OLT 1将所述第一数据先传输给BRAS,然后BRAS再将该第一数据通过OLT 1传输给ONT 1,此时,传输路径为ONT2→OLT1→BRAS→OLT1→ONT1。第一数据从ONT 2发出后经过4跳最终到达ONT 1。Optionally, when OLT 1 disables the local exchange function, the first data to be transmitted between ONT 1 and ONT 2 cannot be exchanged on OLT 1, and needs to be forwarded by BRAS. As shown in FIG. 4 , the shortest transmission path is that OLT 1 first transmits the first data to BRAS, and then BRAS transmits the first data to ONT 1 through OLT 1. At this time, the transmission path is ONT2→OLT1 →BRAS→OLT1→ONT1. After the first data is sent from ONT 2, it finally reaches ONT 1 after 4 hops.
在另一具体示例中,所述目标节点与所述第一终端设备间接连接同一接入设备,如图5所示,所述目标节点为ONT 2,所述第一接入设备为OLT 1',其中,ONT 1通过OLT 1间接与OLT 1'相连接,ONT 2通过OLT 2也间接与OLT 1'相连接,则ONT 2发送的所述第一数据需要依次经过OLT 2、OLT 1'、BRAS、OLT 1'、OLT 1后,最终到达ONT 1。此时,传输路径为ONT2→OLT2→OLT 1'→BRAS→OLT 1'→OLT 1→OLT1,经过6跳后最终到达ONT 1。In another specific example, the target node and the first terminal device are indirectly connected to the same access device, as shown in FIG. 5 , the target node is ONT 2, and the first access device is OLT 1' , wherein ONT 1 is indirectly connected to OLT 1' through OLT 1, and ONT 2 is also indirectly connected to OLT 1' through OLT 2, then the first data sent by ONT 2 needs to pass through OLT 2, OLT 1', After BRAS, OLT 1', OLT 1, it finally reaches ONT 1. At this time, the transmission path is ONT2→OLT2→OLT 1'→BRAS→OLT 1'→OLT 1→OLT1, and finally reaches ONT 1 after 6 hops.
需要说明的是,如果在所述第一终端设备的接入设备下游没有一个节点存储有请求的第一数据,在这种情况下,会在其他接入设备下搜索存储有请求的第一数据的节点,并比较各节点到达所述第一终端设备传输路径,最终确定所述目标节点。It should be noted that if there is no node downstream of the access device of the first terminal device that stores the requested first data, in this case, other access devices will search for the requested first data stored there and compare the transmission paths of each node to the first terminal device, and finally determine the target node.
例如,在图6所示的一个示例中,ONT 2中未存储所述第一数据,在ONT 3和ONT 4中只有ONT 4中存储有所述第一数据,则确定所述目标节点为ONT 4。与ONT 4连接的接入设备OLT 2,和与ONT 1连接的接入设备OLT 1不同,则最短传输路径为所述第一数据经过OLT2和OLT 1转发后到达ONT 1。此时,传输路径为ONT4→OLT2→BRAS→OLT1→ONT1,第一数据从ONT 2发出后经过4跳最终到达ONT 1。For example, in an example shown in FIG. 6 , the first data is not stored in ONT 2, and only the first data is stored in ONT 4 in ONT 3 and ONT 4, then it is determined that the target node is an ONT 4. The access device OLT 2 connected with ONT 4 is different from the access device OLT 1 connected with ONT 1, and the shortest transmission path is that the first data reaches ONT 1 after being forwarded by OLT2 and OLT 1. At this time, the transmission path is ONT4→OLT2→BRAS→OLT1→ONT1, and the first data is sent from ONT 2 and finally reaches ONT 1 after 4 hops.
此外,上述步骤202还包括:根据所述网络拓扑结构记录表和各节点存储数据记录表确定所述目标节点为一个接入设备,比如OLT 1,如图7所示,则所述最短传输路径为从OLT1到ONT 1的路径,即OLT1→ONT1,此时,第一数据从OLT 1发出后经过一跳到达ONT 1。In addition, the above step 202 also includes: determining that the target node is an access device, such as OLT 1, according to the network topology structure record table and each node storage data record table, as shown in FIG. 7 , then the shortest transmission path is the path from OLT1 to ONT 1, that is, OLT1→ONT1. At this time, the first data is sent from OLT 1 to ONT 1 after one hop.
203:将所述目标节点的IP地址发送给所述第一终端设备。203: Send the IP address of the target node to the first terminal device.
具体地,将确定的所述目标节点的IP地址通过第一接入设备发送给所述第一终端设备,第一终端设备接收后,根据该IP地址建立第一终端设备与所述目标节点之间的通信链路,并利用该通信链路接收所述第一数据。例如,上述图3至图5任一示例中,在确定所述目标节点为ONT 2后,将所述ONT 2的IP地址发送给ONT 1,ONT 1建立与ONT 2之间的通信链路,然后利用该通信链路接收来自ONT 2的所述第一数据。Specifically, the determined IP address of the target node is sent to the first terminal device through the first access device, and after receiving it, the first terminal device establishes a relationship between the first terminal device and the target node according to the IP address. and receive the first data using the communication link. For example, in any of the above examples of Fig. 3 to Fig. 5, after determining that the target node is ONT 2, the IP address of the ONT 2 is sent to the ONT 1, and the ONT 1 establishes a communication link with the ONT 2, Said first data from the ONT 2 is then received using this communication link.
同理地,当目标节点为OLT 1时,ONT 1根据与OLT 1之间的通信链路接收OLT 1发送的所述第一数据。Similarly, when the target node is OLT 1, ONT 1 receives the first data sent by OLT 1 according to the communication link with OLT 1.
本方法,根据终端设备发送的请求消息中携带的设备标识和数据标识,在网络拓扑结构记录表和各节点存储数据记录表中查找存储有请求的数据的目标节点,由于该目标节点与终端设备之间的传输路径最短,所以利用该最短传输路径向请求的终端设备传输所需的数据,避免在同一网段下选择的目标节点距离较远,导致数据传输的回程流量较大,传输时延较长。本方法传输数据的路程短、所需的流量开销小、传输延迟小、效率高。In this method, according to the device identification and data identification carried in the request message sent by the terminal device, the target node storing the requested data is searched in the network topology structure record table and the storage data record table of each node. The transmission path between them is the shortest, so use the shortest transmission path to transmit the required data to the requested terminal device, so as to avoid the long distance between the target nodes selected in the same network segment, resulting in large backhaul traffic and transmission delay for data transmission. longer. The method has short data transmission distance, small required traffic overhead, small transmission delay and high efficiency.
下面对上述步骤202中,根据所述网络中各个设备的连接关系和各节点存储数据记录表查找目标节点的具体过程进行说明。首先,对获取所述网络拓扑结构记录表的过程进行说明。The specific process of searching for the target node in the above step 202 according to the connection relationship of each device in the network and the data record table stored by each node will be described below. First, the process of acquiring the network topology structure record table will be described.
第一种可能的实施方式是,GSLB***接收网络中所有终端设备发送的设备标识,以及与每个所述终端设备连接的接入设备的ID信息(即上游节点的设备标识),根据至少一个所述终端设备的设备标识和每个所述接入设备的ID信息获得所述网络拓扑结构记录表,以及存储所述网络拓扑结构记录表。The first possible implementation is that the GSLB system receives the device identifiers sent by all terminal devices in the network, and the ID information of the access device connected to each terminal device (that is, the device identifier of the upstream node), according to at least one The device identification of the terminal device and the ID information of each of the access devices obtain the network topology structure record table, and store the network topology structure record table.
具体的,如图8所示,一种获得所述网络拓扑结构记录表的方法包括:Specifically, as shown in Figure 8, a method for obtaining the network topology structure record table includes:
401:OLT 1当检测到ONT 1通过OLT 1接入到网络时,向ONT 1发送OLT 1的ID信息。其中所述OLT 1的ID信息用于唯一标识OLT 1的身份,所述OLT 1的ID信息包括OLT 1的设备标识、设备编号、MAC地址、IP地址或者其他标识符等。401: When the OLT 1 detects that the ONT 1 is connected to the network through the OLT 1, the OLT 1 sends the ID information of the OLT 1 to the ONT 1. The ID information of the OLT 1 is used to uniquely identify the identity of the OLT 1, and the ID information of the OLT 1 includes the device identification, device number, MAC address, IP address, or other identifiers of the OLT 1.
可选的,所述OLT 1的ID信息可通过第一信息携带的方式发送给所述ONT 1。Optionally, the ID information of the OLT 1 may be sent to the ONT 1 in a manner carried by the first information.
对应的,ONT 1接收OLT 1发送的所述第一信息,所述第一信息包括OLT 1的ID信息。Correspondingly, the ONT 1 receives the first information sent by the OLT 1, where the first information includes the ID information of the OLT 1.
402:ONT 1将所述OLT 1的ID信息发送给所述GSLB***。402: The ONT 1 sends the ID information of the OLT 1 to the GSLB system.
具体地,ONT 1注册到GSLB***时,与GSLB***自动建立通信连接,然后利用该通信连接发送OLT 1的ID信息。Specifically, when the ONT 1 registers with the GSLB system, it automatically establishes a communication connection with the GSLB system, and then uses the communication connection to send the ID information of the OLT 1.
此外,还包括:ONT 1将ONT 1的设备标识发送给所述GSLB***。具体地,ONT 1可以通过两次消息上报的方式分别发送OLT 1的ID信息和ONT 1的设备标识,或者,还可以采用一次性发送的方式,将所述OLT 1的ID信息和ONT 1的设备标识一次性地发送给GSLB***。In addition, it also includes: the ONT 1 sends the device identification of the ONT 1 to the GSLB system. Specifically, the ONT 1 can send the ID information of the OLT 1 and the device identification of the ONT 1 respectively by means of two message reports, or can also send the ID information of the OLT 1 and the ONT 1's ID information in a one-time manner. The device identification is sent to the GSLB system once.
可选的,本实施例,将所述OLT 1的ID信息和ONT 1的设备标识统称为ONT 1的接入信息。Optionally, in this embodiment, the ID information of the OLT 1 and the device identifier of the ONT 1 are collectively referred to as the access information of the ONT 1.
需要说明的是,如果终端设备通过两个或两个以上接入设备连接至网络,则该终端设备还要上报与其连接的所有接入设备的ID信息。比如ONT 1通过OLT 1连接至OLT 1',OLT 1'上游与城域网络相连接。其中OLT 1'和OLT 1是级联的两个接入设备,且OLT 1'是父接入设备,OLT 1是子接入设备,在这种情况下,ONT 1在获取OLT 1的ID信息和OLT 1'的ID信息后,将这些ID信息都发送给GSLB***或网络管理设备。其中,所述OLT 1'的ID信息包括OLT 1'的设备名称、设备编号、MAC地址、IP地址或者其他标识符等。It should be noted that, if the terminal device is connected to the network through two or more access devices, the terminal device also reports ID information of all access devices connected to it. For example, ONT 1 is connected to OLT 1' through OLT 1, and the upstream of OLT 1' is connected to the metropolitan area network. Among them, OLT 1' and OLT 1 are two cascaded access devices, and OLT 1' is the parent access device, and OLT 1 is the child access device. In this case, ONT 1 is acquiring the ID information of OLT 1 After matching the ID information of OLT 1', send these ID information to the GSLB system or network management device. Wherein, the ID information of the OLT 1' includes the device name, device number, MAC address, IP address or other identifiers of the OLT 1'.
类似的,方法还包括:Similarly, the method also includes:
403:其他ONT,比如ONT 2、ONT 3和ONT 4在接入到网络时,分别将自己的接入信息发送给GSLB***。403: When other ONTs, such as ONT 2, ONT 3 and ONT 4, respectively send their access information to the GSLB system when accessing the network.
比如,ONT 2向所述GSLB***发送ONT 2的接入信息,所述ONT 2的接入信息包括:ONT 2的设备标识和其接入的OLT 1的ID信息。同理地,ONT 3上报的接入信息中包括:ONT 3的设备标识和其接入的OLT 2的ID信息;ONT 4上报的接入信息中包括:ONT 4的设备标识和其接入的OLT 2的ID信息。如图9中虚线所示,为各个ONT向GSLB***上报接入信息的传输链路。其中,每个ONT可以周期性地上报各种的接入信息,对应的,GSLB***周期性地获取每个ONT上报的接入信息。For example, the ONT 2 sends the access information of the ONT 2 to the GSLB system, and the access information of the ONT 2 includes: the device identification of the ONT 2 and the ID information of the OLT 1 that it accesses. Similarly, the access information reported by the ONT 3 includes: the device identifier of the ONT 3 and the ID information of the OLT 2 it accesses; the access information reported by the ONT 4 includes: the device identifier of the ONT 4 and the ID information it accesses. ID information of OLT 2. As shown by the dotted line in Figure 9, it is a transmission link for each ONT to report access information to the GSLB system. Wherein, each ONT may periodically report various access information, and correspondingly, the GSLB system periodically obtains the access information reported by each ONT.
404:GSLB***接收各个终端设备发送的接入设备的ID信息和每个终端设备的设备标识,并根据这些信息获得网络拓扑结构,生成所述网络拓扑结构记录表。404: The GSLB system receives the ID information of the access device and the device identifier of each terminal device sent by each terminal device, obtains the network topology structure according to the information, and generates the network topology structure record table.
例如,在t1时刻,GSLB***接收ONT 1发送的ONT 1的设备标识以及OLT 1的ID信息后,得到以下信息:OLT 1下行关联ONT 1,OLT 1的ID和ONT 1的设备标识。同理地,GSLB***根据ONT 2至ONT 4上报的接入信息,得到所述网络拓扑结构记录表,如下表3所示。For example, at time t1, after the GSLB system receives the device identification of ONT 1 and the ID information of OLT 1 sent by ONT 1, it obtains the following information: OLT 1 is downstream associated with ONT 1, the ID of OLT 1 and the device identification of ONT 1. Similarly, the GSLB system obtains the network topology record table according to the access information reported by ONT 2 to ONT 4, as shown in Table 3 below.
表3、网络拓扑结构记录表Table 3. Network topology structure record table
节点的设备标识Device ID of the node 下游节点的设备标识Device ID of the downstream node
OLT 1OLT 1 ONT 1、ONT 2 ONT 1, ONT 2
OLT 2 OLT 2 ONT 3、ONT 4 ONT 3, ONT 4
可选的,由于表3中仅包括各个ONT的设备标识,以及每个ONT设备与OLT的设备标识之间的拓扑结构关系,这些拓扑结构关系是由各个终端PCDN节点上报获得,所以该网络拓扑 结构记录表又可以称为PCDN节点列表。Optionally, since Table 3 only includes the device ID of each ONT, and the topological structure relationship between each ONT device and the device ID of the OLT, these topological structure relationships are reported by each terminal PCDN node, so the network topology The structure record table may also be called a PCDN node list.
本实施方式,每个ONT在接入网络时将自己的接入信息上报给GSLB***,使得GSLB***根据这些ONT上报的信息获得网络中各节点的拓扑结构,从而为查找同一OLT下连接的目标节点做准备,有助于快速地查找到与请求的ONT之间具有最短传输路径的目标ONT。In this embodiment, each ONT reports its own access information to the GSLB system when accessing the network, so that the GSLB system obtains the topology structure of each node in the network according to the information reported by these ONTs, so as to find the target connected under the same OLT. The preparation of the node helps to quickly find the target ONT with the shortest transmission path to the requested ONT.
第二种可能的实施方式是:通过网络管理设备获得所述网络拓扑结构记录表,并存储所述网络拓扑结构记录表。如图10所示,该网络管理设备可以部署在城域网络中,也可以部署在邻近城域网络的地方,本实施例对此不予限制。另外,可选的,所述网络管理设备可简称为网管设备。The second possible implementation is: obtaining the network topology structure record table through a network management device, and storing the network topology structure record table. As shown in FIG. 10 , the network management device may be deployed in a metropolitan area network, or may be deployed in a place adjacent to the metropolitan area network, which is not limited in this embodiment. In addition, optionally, the network management device may be referred to as a network management device for short.
网管设备,用于获得整个PCDN***架构中的每个节点的连接关系,并根据这些连接关系得到所述网络拓扑结构。例如,当ONT 1连接到OLT 1时,ONT 1将这个接入信息通告到网管设备,网管设备接收后,再将ONT 1的设备标识和OLT 1的ID信息发送给GSLB***。The network management device is used to obtain the connection relationship of each node in the entire PCDN system architecture, and obtain the network topology structure according to the connection relationship. For example, when ONT 1 is connected to OLT 1, ONT 1 advertises the access information to the network management device. After the network management device receives it, it sends the device identification of ONT 1 and the ID information of OLT 1 to the GSLB system.
在一具体示例中,如图11所示,方法包括:In a specific example, as shown in Figure 11, the method includes:
601:OLT 1当检测到ONT 1接入到网络时,OLT 1向网管设备发送OLT 1的ID信息,所述OLT 1的ID信息用于唯一标识OLT1的身份。601: When the OLT 1 detects that the ONT 1 is connected to the network, the OLT 1 sends the ID information of the OLT 1 to the network management device, where the ID information of the OLT 1 is used to uniquely identify the identity of the OLT 1.
602:ONT 1将所述ONT 1的设备标识发送给所述网管设备。602: The ONT 1 sends the device identification of the ONT 1 to the network management device.
对应的,所述网管设备接收所述OLT 1的ID信息和所述ONT 1的设备标识。Correspondingly, the network management device receives the ID information of the OLT 1 and the device identifier of the ONT 1.
603:网管设备接收其他网络设备,比如ONT 2至ONT 4、OLT 2和BRAS各自发送自己的接入信息。603: The network management device receives other network devices, such as ONT 2 to ONT 4, OLT 2 and BRAS respectively sending their own access information.
604:所述网管设备根据至少一个ONT的设备标识和每个OLT的ID信息,以及BRAS的接入信息获得网络拓扑结构,并生成所述网络拓扑结构记录表,如下表4所示。604: The network management device obtains a network topology structure according to the device identifier of at least one ONT, the ID information of each OLT, and the access information of the BRAS, and generates the network topology structure record table, as shown in Table 4 below.
表4、网络拓扑结构记录表Table 4. Network topology structure record table
节点的设备标识Device ID of the node 上游节点的设备标识Device ID of the upstream node 下游节点的设备标识Device ID of the downstream node
OLT 1OLT 1 BRAS 1 BRAS 1 ONT 1、ONT 2 ONT 1, ONT 2
OLT 2 OLT 2 BRAS 1 BRAS 1 ONT 3、ONT 4 ONT 3, ONT 4
605:所述网管设备将所述网络拓扑结构记录表发送给GSLB***。对应的,GSLB***接收网络设备发送的当前网络的拓扑结构记录表。605: The network management device sends the network topology structure record table to the GSLB system. Correspondingly, the GSLB system receives the topology structure record table of the current network sent by the network device.
例如,ONT 1连接到OLT 1时,ONT 1将这个接入信息通告到网管设备,网管设备接收后再将ONT1与OLT1连接的接入信息通告到GSLB***。For example, when ONT 1 is connected to OLT 1, ONT 1 advertises the access information to the network management device, and the network management device then advertises the access information connected between ONT1 and OLT1 to the GSLB system after receiving it.
此外,还包括:当检测有新的ONT接入到网络时,网络管理设备还会更新所述网络拓扑结构,生成新的网络拓扑结构记录表。In addition, the method further includes: when detecting that a new ONT is connected to the network, the network management device also updates the network topology structure, and generates a new network topology structure record table.
本实施例中,GSLB***通过网络管理设备上报的方式获得网络拓扑结构记录表,从而为查找与请求端路径最短的目标节点提供便捷。In this embodiment, the GSLB system obtains the network topology structure record table in the manner of reporting by the network management device, thereby providing convenience for finding the target node with the shortest path to the requester.
另外,利用网管设备动态地获取网络拓扑结构,避免在GSLB***侧统计和处理所有节点上报的接入信息,节约了GSLB***侧的运算负担,减少了各个节点向GSLB***发送接入信息的传输开销。In addition, the network topology structure is dynamically obtained by the network management device, which avoids collecting and processing the access information reported by all nodes on the GSLB system side, saving the computational burden on the GSLB system side, and reducing the transmission of access information sent by each node to the GSLB system. overhead.
下面对上述步骤202中,获得所述各节点存储数据记录表的过程进行说明。The process of obtaining the storage data record table of each node in the above step 202 will be described below.
在上述步骤404或步骤605中,获取网络拓扑结构记录表之后,方法还包括:In the above step 404 or step 605, after acquiring the network topology structure record table, the method further includes:
202-1:根据所述网络拓扑结构记录表获取网络中的所有接入设备,以及每个接入设备下游连接的PCDN节点。202-1: Acquire all access devices in the network and PCDN nodes connected downstream of each access device according to the network topology structure record table.
其中,每个接入设备下游连接的PCDN节点的数量可以是一个或者多个。The number of PCDN nodes connected downstream of each access device may be one or more.
具体地,当GSLB***接收到OLT 1的接入信息时,根据所述网络拓扑结构记录表确定与所述ONT 1连接的接入设备是OLT 1,并获取与该OLT 1下游连接的所有ONT。Specifically, when the GSLB system receives the access information of the OLT 1, it determines that the access device connected to the ONT 1 is the OLT 1 according to the network topology structure record table, and acquires all the ONTs connected downstream of the OLT 1 .
202-2:将所述第一数据存储在每个接入设备所连接的PCDN节点上。202-2: Store the first data on the PCDN node connected to each access device.
具体地,启动所述预设算法的计算功能,并选择OLT 1下游连接的一个或多个ONT来存储第一数据标识所对应的第一数据。所述第一数据标识可用“数据ID1”表示。Specifically, the calculation function of the preset algorithm is activated, and one or more ONTs connected downstream of the OLT 1 are selected to store the first data corresponding to the first data identifier. The first data identifier can be represented by "data ID1".
可选的,GSLB***将第一数据存储在每个接入设备所连接的一个PCDN节点上,比如上表4所示,网络拓扑结构记录表中包括OLT 1和OLT 2两个接入设备,则将节目1所对应的第一数据分别存储在ONT 2和ONT 4中。或者,可选的,还可以将所述第一数据存储在每个接入设备所连接的多个PCDN节点上。比如将所述第一数据存储在OLT 2下游连接的ONT3和ONT 4中。Optionally, the GSLB system stores the first data on a PCDN node connected to each access device. For example, as shown in Table 4 above, the network topology record table includes two access devices, OLT 1 and OLT 2, Then store the first data corresponding to program 1 in ONT 2 and ONT 4 respectively. Or, optionally, the first data may also be stored on multiple PCDN nodes connected to each access device. For example, the first data is stored in ONT3 and ONT 4 connected downstream of OLT 2.
202-3:建立已存储所述第一数据的节点的设备标识与所述第一数据的数据标识之间的对应关系,根据所述对应关系生成所述各节点存储数据记录表。202-3: Establish a correspondence between the device identifier of the node that has stored the first data and the data identifier of the first data, and generate the storage data record table of each node according to the correspondence.
其中,所述第一数据的数据标识可以表示为数据ID1,所述第一数据为视频节目1所对应的数据,如表5所示。The data identifier of the first data may be represented as data ID1, and the first data is the data corresponding to the video program 1, as shown in Table 5.
表5、各节点存储数据记录表Table 5. Each node stores data record table
节点设备标识Node Device ID 数据标识 data identification
ONT 2ONT 2 数据ID1 Data ID1
ONT 4ONT 4 数据ID1Data ID1
另外,当有多个数据时,可以将多个数据分别存储在不同的ONT中。具体地,如果某一节目的热点度很高,则GSLB***会将该节目所对应的数据存储在同一OLT下的两个或两个以上的ONT中。比如OLT 1下游连接3个ONT,分别是ONT 1、ONT 4和ONT 7,则可以将第一数据存储到ONT 1、ONT 4和ONT 7上。且不同数据可以通过不同的数据ID来表示,得到各节点存储数据记录表,如表6所示。In addition, when there are multiple pieces of data, the multiple pieces of data can be stored in different ONTs respectively. Specifically, if the popularity of a certain program is very high, the GSLB system will store the data corresponding to the program in two or more ONTs under the same OLT. For example, the downstream of OLT 1 is connected to 3 ONTs, namely ONT 1, ONT 4 and ONT 7, the first data can be stored on ONT 1, ONT 4 and ONT 7. And different data can be represented by different data IDs, and the storage data record table of each node is obtained, as shown in Table 6.
表6、各节点存储数据记录表Table 6, each node storage data record table
节点设备标识Node Device ID 数据标识 data identification
ONT 1、ONT 4、ONT 7ONT 1, ONT 4, ONT 7 数据ID1 Data ID1
ONT 2、ONT 5、ONT 8ONT 2, ONT 5, ONT 8 数据ID2 Data ID2
ONT 3、ONT 6、ONT 9ONT 3, ONT 6, ONT 9 数据ID3Data ID3
……... ……...
本实施例对每个数据所存储的ONT数量不予限制。This embodiment does not limit the number of ONTs stored in each data.
另外,上述202-2中还包括:将所述第一数据存储在一个或多个OLT上,比如存储在OLT1和OLT2上。In addition, the above-mentioned 202-2 further includes: storing the first data on one or more OLTs, for example, on OLT1 and OLT2.
上述各节点存储数据记录表配置完成后,可执行前述实施例中步骤201至步骤203所述的方法。After the configuration of the storage data record table of each node is completed, the methods described in steps 201 to 203 in the foregoing embodiments can be executed.
例如,在一示例中,当接收到ONT 1发送的第一请求消息时,根据第一请求消息中的第一数据标识,比如数据ID1,在所述各节点存储数据记录表中查找存储有所述第一数据的节点的设备标识。如上表5所示,存储所述数据ID1的设备有ONT 2和ONT 4。然后根据第一 请求消息中携带的ONT 1的设备标识在所述网络拓扑结构记录表中查找,OLT 1下游连接的所有ONT,如上表3或表4所示,在OLT 1下游连接的设备有ONT 2和ONT 1,没有ONT4,所以确定的目标节点为所述ONT 2。最后,将ONT 2的IP地址发送给ONT 1,以便ONT1建立与ONT 2之间的传输路径,并且ONT 2与ONT 1建立的传输路径为最短传输路径。For example, in an example, when receiving the first request message sent by ONT 1, according to the first data identifier in the first request message, such as data ID1, look up the stored data in the storage data record table of each node. The device identifier of the node that describes the first data. As shown in Table 5 above, the devices that store the data ID1 include ONT 2 and ONT 4. Then according to the device identification of the ONT 1 carried in the first request message, look up in the network topology structure record table, all the ONTs connected downstream of the OLT 1, as shown in Table 3 or Table 4 above, the devices connected downstream of the OLT 1 have ONT 2 and ONT 1 do not have ONT4, so the determined target node is the ONT 2. Finally, the IP address of ONT 2 is sent to ONT 1, so that ONT 1 establishes a transmission path with ONT 2, and the transmission path established between ONT 2 and ONT 1 is the shortest transmission path.
可选的,如果在网络拓扑结构记录表中查找,OLT 1下游连接的PCDN节点除了包括ONT 2之外,还包括ONT 5,且ONT 5中也存储所述第一数据,则***可以按照预设规则选择ONT2或ONT 5作为所述目标节点,所述预设规则包括但不限于随机、轮询均衡、权重轮询、地址最近优先等原则,本实施例对具体的选择原则和选择方法不予限制。Optionally, if looking up in the network topology record table, the PCDN node connected downstream of OLT 1 includes ONT 5 in addition to ONT 2, and the first data is also stored in ONT 5, then the system can Suppose that the rules select ONT2 or ONT 5 as the target node, and the preset rules include but are not limited to principles such as randomness, polling balance, weight polling, and address nearest priority. be restricted.
下面介绍与上述方法实施例对应的装置实施例。Apparatus embodiments corresponding to the foregoing method embodiments are introduced below.
图12为本申请实施例提供的一种设备连接装置的结构示意图。所述装置可以是一种电子设备,比如一个GSLB***、或服务器、或OLT,或位于前述设备中的一个部件,例如处理芯片或处理电路。并且该装置可以实现前述实施例中的设备连接方法。FIG. 12 is a schematic structural diagram of an apparatus for connecting devices according to an embodiment of the present application. The apparatus may be an electronic device, such as a GSLB system, or a server, or an OLT, or a component located in the aforementioned device, such as a processing chip or a processing circuit. And the device can implement the device connection method in the foregoing embodiments.
具体地,如图12所示,该装置可以包括:接收单元1201、处理单元1202和发送单元1203。此外,所述装置还可以包括存储单元等其他的单元或模块。Specifically, as shown in FIG. 12 , the apparatus may include: a receiving unit 1201 , a processing unit 1202 and a sending unit 1203 . In addition, the apparatus may also include other units or modules such as a storage unit.
其中,接收单元1201,用于接收第一终端设备发送的第一请求消息,所述第一请求消息包括所述第一终端设备请求的设备标识和第一数据标识,所述第一数据标识指示所述第一终端设备请求的第一数据;处理单元1202,用于根据所述第一数据标识和所述第一设备标识,以及网络中各个设备的连接关系在存储数据记录表中查找目标节点;发送单元1203,用于将所述目标节点的IP地址发送给所述第一终端设备,所述目标节点存储有所述第一数据,且所述第一数据从所述目标节点到所述第一终端设备之间的传输路径最短。The receiving unit 1201 is configured to receive a first request message sent by a first terminal device, where the first request message includes a device identifier and a first data identifier requested by the first terminal device, and the first data identifier indicates that The first data requested by the first terminal device; the processing unit 1202 is configured to search for the target node in the stored data record table according to the first data identifier, the first device identifier, and the connection relationship of each device in the network ; Sending unit 1203, configured to send the IP address of the target node to the first terminal device, where the target node stores the first data, and the first data is sent from the target node to the first terminal device The transmission path between the first terminal devices is the shortest.
此外,所述存储数据记录表中包括至少一个存储有所述第一数据的节点的设备标识,和所述第一数据标识的对应关系。In addition, the stored data record table includes a device identifier of at least one node that stores the first data, and a corresponding relationship between the first data identifier.
可选的,所述网络中各个设备的连接关系可通过网络拓扑结构记录表来表示。Optionally, the connection relationship of each device in the network may be represented by a network topology structure record table.
可选的,所述第一数据从所述目标节点到所述第一终端设备之间的传输路径最短,包括:所述目标节点与所述第一终端设备直接或间接通过同一接入设备连接至网络,换句话说,所述目标节点连接的接入设备的ID信息,与所述第一终端设备连接的接入设备的ID信息相同。Optionally, the shortest transmission path of the first data from the target node to the first terminal device includes: the target node and the first terminal device are directly or indirectly connected through the same access device To the network, in other words, the ID information of the access device connected to the target node is the same as the ID information of the access device connected to the first terminal device.
此外,所述目标节点可以是与所述第一终端设备相连接的第一接入设备,比如OLT 1。In addition, the target node may be a first access device connected to the first terminal device, such as OLT 1.
可选的,在本实施例的一种具体的实现方式中,接收单元1201,还用于在接收第一终端设备发送的第一请求消息之前,接收至少一个终端设备发送的设备标识,以及与每个所述终端设备连接的接入设备的ID信息。处理单元1202,还用于根据所述至少一个终端设备的设备标识和每个所述接入设备的ID信息获得所述网络中各个设备的连接关系。Optionally, in a specific implementation manner of this embodiment, the receiving unit 1201 is further configured to receive, before receiving the first request message sent by the first terminal device, a device identifier sent by at least one terminal device, and a ID information of the access device connected to each terminal device. The processing unit 1202 is further configured to obtain the connection relationship of each device in the network according to the device identifier of the at least one terminal device and the ID information of each of the access devices.
可选的,在本实施例的另一种具体的实现方式中,处理单元1202,还用于根据所述网络中各个设备的连接关系确定与所述第一终端设备连接的第一接入设备,获取与所述第一接入设备连接的至少一个节点,选择与所述至少一个节点中的一个或多个节点存储所述第一数据;以及,建立已存储所述第一数据的节点的设备标识与所述第一数据标识之间的对应关系,并根据所述对应关系生成所述存储数据记录表。Optionally, in another specific implementation manner of this embodiment, the processing unit 1202 is further configured to determine the first access device connected to the first terminal device according to the connection relationship of each device in the network , acquiring at least one node connected to the first access device, selecting and storing the first data with one or more nodes in the at least one node; The corresponding relationship between the device identification and the first data identification, and the stored data record table is generated according to the corresponding relationship.
可选的,所述接入设备的ID信息包括:接入设备的设备名称、设备编号、IP地址和MAC地址等中的一种或多种。Optionally, the ID information of the access device includes: one or more of the device name, device number, IP address, and MAC address of the access device.
另外,在具体的硬件实现中,本申请实施例还提供了一种网络设备,该网络设备可以是一个GSLB***、或服务器、或OLT,或者是集成在所述网络设备中的一个部件。In addition, in a specific hardware implementation, an embodiment of the present application further provides a network device, and the network device may be a GSLB system, a server, or an OLT, or a component integrated in the network device.
图13示出了一种网络设备的结构示意图,该网络设备是GSLB***,可以包括:处理器131、存储器132、至少一个通信接口133。其中,处理器131、存储器132和至少一个通信接口133通过通信总线耦合。FIG. 13 shows a schematic structural diagram of a network device. The network device is a GSLB system, which may include: a processor 131 , a memory 132 , and at least one communication interface 133 . Wherein, the processor 131, the memory 132 and the at least one communication interface 133 are coupled through a communication bus.
其中,处理器131为网络设备的控制中心,可协同通信接口133用于设备间的通信,例如包括与各个OLT、ONT、BRAS、网管设备、城域网络等设备间的信息交互。The processor 131 is the control center of the network device, and can cooperate with the communication interface 133 for communication between devices, for example, including information exchange with each OLT, ONT, BRAS, network management device, metropolitan area network and other devices.
处理器131可以由集成电路(Integrated Circuit,IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器131可以包括中央处理器(Central Processing Unit,CPU)或数字信号处理器(Digital Signal Processor,DSP)等。The processor 131 may be composed of an integrated circuit (Integrated Circuit, IC), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs connected with the same function or different functions. For example, the processor 131 may include a central processing unit (Central Processing Unit, CPU) or a digital signal processor (Digital Signal Processor, DSP) or the like.
此外,处理器131还可以包括硬件芯片,所述该硬件芯片可以是专用集成电路(application specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。可选的,所述硬件芯片为一种处理芯片或处理电路。In addition, the processor 131 may further include a hardware chip, and the hardware chip may be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general-purpose array logic (generic array logic, GAL) or any combination thereof. Optionally, the hardware chip is a processing chip or a processing circuit.
存储器132用于存储和交换各类数据或软件,包括存储网络拓扑结构记录表、各节点存储数据记录表、ONT的设备标识和OLT的ID信息,第一请求消息、第一指示信息等。此外,存储器132中还存储有计算机程序和代码。The memory 132 is used for storing and exchanging various data or software, including storage network topology structure record table, storage data record table of each node, ONT device identification and OLT ID information, first request message, first instruction information, etc. In addition, computer programs and codes are also stored in the memory 132 .
具体地,存储器132可以包括易失性存储器(volatile memory),例如随机存取内存(Random Access Memory,RAM);还可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(Hard Sisk Drive,HDD)或固态硬盘(Solid-State Drive,SSD),存储器132还可以包括上述种类的存储器的组合。Specifically, the memory 132 may include volatile memory (volatile memory), such as random access memory (Random Access Memory, RAM); may also include non-volatile memory (non-volatile memory), such as flash memory (flash memory) memory), hard disk (Hard Sisk Drive, HDD) or solid-state drive (Solid-State Drive, SSD), the memory 132 may also include a combination of the above-mentioned types of memory.
通信接口133,使用任何收发器一类的装置,用于与其它设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(Wireless Local Area Network,WLAN)、虚拟可扩展局域网(Virtual Extensible Local Area Network,VXLAN)等。本实施例,所述通信接口133包括至少一个接口。The communication interface 133, using any device such as a transceiver, is used to communicate with other devices or communication networks, such as Ethernet, radio access network (RAN), Wireless Local Area Network (WLAN), Virtual Extensible Local Area Network (VXLAN), etc. In this embodiment, the communication interface 133 includes at least one interface.
此外,该网络设备中还包括移动通信模块、无线通信模块等。所述移动通信模块包括:2G/3G/4G/5G等无线通信功能的模块。此外,还可以包括滤波器、开关、功率放大器、低噪声放大器(low noise amplifier,LNA)等。所述无线通信模块可以提供应用在网络设备上的包括无线局域网(Wireless Local Area Network,WLAN)、蓝牙(bluetooth),全球导航卫星***(global navigation satellite system,GNSS),调频(frequency modulation,FM)等无线通信的解决方案。In addition, the network device also includes a mobile communication module, a wireless communication module, and the like. The mobile communication module includes modules with wireless communication functions such as 2G/3G/4G/5G. In addition, filters, switches, power amplifiers, low noise amplifiers (LNAs), etc. may also be included. The wireless communication module can provide applications on network equipment including wireless local area network (Wireless Local Area Network, WLAN), Bluetooth (bluetooth), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM) and other wireless communication solutions.
应理解,上述网络设备中还可以包括其他更多或更少的部件,本申请实施例示意的结构并不构成对网络设备的具体限定。并且图13所示的部件可以以硬件,软件、固件或者其任意组合的方式来实现。It should be understood that the above-mentioned network device may also include other more or less components, and the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the network device. And the components shown in FIG. 13 can be implemented in hardware, software, firmware or any combination thereof.
当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。例如,在前述图12所示的装置中的接收单元1201和发送单元1203可以通过通信接口133来实现,所述处理单元1202的功能可以由处理器131来实现,所述存储单元的功能可以由存储器132实现。When implemented in software, it can be implemented in whole or in part in the form of a computer program product. For example, the receiving unit 1201 and the sending unit 1203 in the aforementioned apparatus shown in FIG. 12 can be implemented by the communication interface 133, the function of the processing unit 1202 can be implemented by the processor 131, and the function of the storage unit can be implemented by The memory 132 is implemented.
具体地,所述网络设备的通信接口133接收第一终端设备发送的第一请求消息,所述第一请求消息包括所述第一终端设备的设备标识和第一数据标识,所述第一数据标识指示所述第一终端设备请求的第一数据;处理器131根据所述第一数据标识和所述第一设备标识,以 及网络中各个设备的连接关系在与存储数据记录表中查找目标节点,然后通过通信接口133将所述目标节点的IP地址发送给所述第一终端设备。Specifically, the communication interface 133 of the network device receives a first request message sent by a first terminal device, where the first request message includes a device identifier of the first terminal device and a first data identifier, and the first data The identifier indicates the first data requested by the first terminal device; the processor 131 searches for the target node in the storage data record table according to the first data identifier and the first device identifier, as well as the connection relationship of each device in the network , and then send the IP address of the target node to the first terminal device through the communication interface 133 .
其中,所述存储数据记录表中包括至少一个存储有所述第一数据的节点的设备标识和所述第一数据标识的对应关系,所述目标节点存储有所述第一数据,且所述第一数据从所述目标节点到所述第一终端设备之间的传输路径最短。Wherein, the storage data record table includes at least one device identifier of the node storing the first data and the first data identifier corresponding relationship, the target node stores the first data, and the target node stores the first data, and the The transmission path of the first data from the target node to the first terminal device is the shortest.
此外,本申请实施例还提供了一种网络***,该网络***的结构可以与前述图3至图7,图9至图10所示的任意一个网络架构相同,包括以下网络设备:GSLB***、BRAS、网管设备、服务器、至少一个OLT和至少一个ONT等。其中,所述GSLB***、服务器或者OLT是图13对应实施例的网络设备,可以实现前述实施例中的设备连接方法。In addition, an embodiment of the present application also provides a network system, and the structure of the network system may be the same as any one of the network architectures shown in FIG. 3 to FIG. 7 and FIG. 9 to FIG. 10, including the following network devices: GSLB system, BRAS, network management equipment, server, at least one OLT and at least one ONT, etc. Wherein, the GSLB system, server or OLT is the network device in the embodiment corresponding to FIG. 13 , and can implement the device connection method in the foregoing embodiment.
在该网络***中,所述至少一个ONT用于向GSLB***发送第一请求消息,所述第一请求消息包括所述第一终端设备的设备标识和第一数据标识,以及,还用于接收GSLB***发送的目标节点的IP地址;并根据所述目标节点的IP地址与目标节点建立通信连接,其中,目标节点的IP地址为所述目标节点与所述ONT之间的传输路径最短的IP地址。另外,在一种可能的实现方式中,还用于接收第一接入设备发送的ID信息,所述第一接入设备的ID信息包括第一接入设备的设备名称、设备编号、IP地址、MAC地址等;以及,还用于将所述第一接入设备的ID信息发送给所述GSLB***。In the network system, the at least one ONT is configured to send a first request message to the GSLB system, where the first request message includes the device identifier and the first data identifier of the first terminal device, and is further configured to receive The IP address of the target node sent by the GSLB system; and establish a communication connection with the target node according to the IP address of the target node, wherein the IP address of the target node is the IP address with the shortest transmission path between the target node and the ONT address. In addition, in a possible implementation manner, it is also used to receive ID information sent by the first access device, where the ID information of the first access device includes the device name, device number, and IP address of the first access device , MAC address, etc.; and also used for sending the ID information of the first access device to the GSLB system.
在另一种可能的实现方式中,所述网管设备用于获取***中至少一个OLT和ONT发送的自身设备ID信息,根据所述至少一个OLT和ONT发送的ID信息获取网络拓扑结构,生成网络拓扑结构记录表,以及将所述网络拓扑结构记录表发送给GSLB***。In another possible implementation manner, the network management device is configured to obtain its own device ID information sent by at least one OLT and ONT in the system, obtain a network topology structure according to the ID information sent by the at least one OLT and ONT, and generate a network The topology structure record table, and the network topology structure record table is sent to the GSLB system.
本***,在网络设备侧获取所有节点的网络拓扑结构,从而当***接收到某一终端设备发送的请求消息时,根据网络拓扑结构查找与请求的终端设备存在最短传输路径的目标节点,并利用该最短传输路径向请求的终端设备传输所需数据,避免在同一网段下,选择的目标节点距离较远,导致视频节目内容传输的回程流量增加,传输时延较长。本方法传输数据的路程短、所以传输数据所需的流量开销减小、传输延迟小、效率高。The system obtains the network topology structure of all nodes on the network device side, so that when the system receives a request message sent by a certain terminal device, it searches for the target node with the shortest transmission path with the requested terminal device according to the network topology structure, and uses The shortest transmission path transmits the required data to the requested terminal equipment, avoiding the long distance of the selected target nodes under the same network segment, which leads to an increase in the backhaul traffic of video program content transmission and a long transmission delay. The data transmission distance of the method is short, so the traffic overhead required for data transmission is reduced, the transmission delay is small, and the efficiency is high.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括一个或多个计算机程序指令。在计算机加载和执行所述计算机程序指令时,全部或部分地产生按照上述各个实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。Embodiments of the present application also provide a computer program product, where the computer program product includes one or more computer program instructions. When a computer loads and executes the computer program instructions, all or part of the processes or functions described in the various embodiments described above occur. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
所述计算机程序指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网络设备、计算机、服务器或数据中心通过有线或无线方式向另一个网络设备进行传输。The computer program instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from a network device, computer, server or data The hub transmits to another network device via wired or wireless means.
其中,所述计算机程序产品和所述计算机程序指令可以位于前述网络设备的存储器中,从而实现本申请实施例所述的设备连接的方法。Wherein, the computer program product and the computer program instructions may be located in the memory of the aforementioned network device, so as to implement the device connection method described in the embodiments of the present application.
此外,在本申请的描述中,除非另有说明,“多个”是指两个或多于两个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。Also, in the description of this application, unless stated otherwise, "plurality" means two or more than two. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like are not necessarily different.
以上所述的本申请实施方式并不构成对本申请保护范围的限定。The above-described embodiments of the present application do not limit the protection scope of the present application.

Claims (15)

  1. 一种设备连接方法,其特征在于,所述方法包括:A device connection method, characterized in that the method comprises:
    接收第一终端设备发送的第一请求消息,所述第一请求消息包括所述第一终端设备的设备标识和第一数据标识,所述第一数据标识指示所述第一终端设备请求的第一数据;Receive a first request message sent by a first terminal device, where the first request message includes a device identifier of the first terminal device and a first data identifier, and the first data identifier indicates the first request message requested by the first terminal device. a data;
    根据所述第一数据标识和所述第一设备标识,以及网络中各个设备的连接关系在存储数据记录表中查找目标节点,所述存储数据记录表中包括至少一个存储有所述第一数据的节点的设备标识和所述第一数据标识的对应关系,所述目标节点存储有所述第一数据,且所述第一数据从所述目标节点到所述第一终端设备之间的传输路径最短;According to the first data identifier and the first device identifier, as well as the connection relationship of each device in the network, the target node is searched in the stored data record table, where the stored data record table includes at least one node that stores the first data The corresponding relationship between the device identifier of the node and the first data identifier, the target node stores the first data, and the first data is transmitted from the target node to the first terminal device. the shortest path;
    将所述目标节点的IP地址发送给所述第一终端设备。Send the IP address of the target node to the first terminal device.
  2. 根据权利要求1所述的方法,其特征在于,所述第一数据从所述目标节点到所述第一终端设备之间的传输路径最短,包括:The method according to claim 1, wherein the transmission path of the first data from the target node to the first terminal device is the shortest, comprising:
    所述目标节点与所述第一终端设备直接或间接通过同一接入设备连接至网络。The target node and the first terminal device are directly or indirectly connected to the network through the same access device.
  3. 根据权利要求1或2所述的方法,其特征在于,所述接收第一终端设备发送的第一请求消息之前,还包括:The method according to claim 1 or 2, wherein before the receiving the first request message sent by the first terminal device, the method further comprises:
    接收至少一个终端设备的设备标识,以及与每个所述终端设备连接的接入设备的ID信息;receiving the device identification of at least one terminal device and the ID information of the access device connected to each of the terminal devices;
    根据所述至少一个终端设备的设备标识和每个所述接入设备的ID信息,获得所述网络中各个设备的连接关系。According to the device identification of the at least one terminal device and the ID information of each of the access devices, the connection relationship of each device in the network is obtained.
  4. 根据权利要求1或2所述的方法,其特征在于,所述接收第一终端设备发送的第一请求消息之前,还包括:The method according to claim 1 or 2, wherein before the receiving the first request message sent by the first terminal device, the method further comprises:
    接收网络管理设备发送的所述网络中各个设备的连接关系。The connection relationship of each device in the network sent by the network management device is received.
  5. 根据权利要求3或4所述的方法,其特征在于,还包括:The method according to claim 3 or 4, further comprising:
    根据所述网络中各个设备的连接关系确定与所述第一终端设备连接的第一接入设备;Determine the first access device connected to the first terminal device according to the connection relationship of each device in the network;
    获取与所述第一接入设备连接的至少一个节点;acquiring at least one node connected to the first access device;
    选择所述至少一个节点中的一个或多个存储所述第一数据;selecting one or more of the at least one node to store the first data;
    建立已存储所述第一数据的节点的设备标识与所述第一数据标识之间的对应关系,并根据所述对应关系生成所述存储数据记录表。A corresponding relationship between the device identifier of the node that has stored the first data and the first data identifier is established, and the stored data record table is generated according to the corresponding relationship.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述目标节点为第一接入设备。The method according to any one of claims 1-5, wherein the target node is a first access device.
  7. 根据权利要求3所述的方法,其特征在于,所述接入设备的ID信息包括:所述接入设备的设备名称、设备编号、互联网协议IP地址,和媒体访问控制MAC地址中的至少一种。The method according to claim 3, wherein the ID information of the access device comprises: at least one of the device name, device number, Internet Protocol IP address, and media access control MAC address of the access device kind.
  8. 一种设备连接装置,其特征在于,所述装置包括:A device connecting device, characterized in that the device comprises:
    接收单元,用于接收第一终端设备发送的第一请求消息,所述第一请求消息包括所述第一终端设备的设备标识和第一数据标识,所述第一数据标识指示所述第一终端设备请求的第 一数据;a receiving unit, configured to receive a first request message sent by a first terminal device, where the first request message includes a device identifier of the first terminal device and a first data identifier, and the first data identifier indicates the first the first data requested by the terminal device;
    处理单元,用于根据所述第一数据标识和所述第一设备标识,以及网络中各个设备的连接关系在存储数据记录表中查找目标节点,所述存储数据记录表中包括至少一个存储有所述第一数据的节点的设备标识和所述第一数据标识的对应关系,所述目标节点存储有所述第一数据,且所述第一数据从所述目标节点到所述第一终端设备之间的传输路径最短;The processing unit is configured to search for a target node in a stored data record table according to the first data identifier, the first device identifier, and the connection relationship of each device in the network, where the stored data record table includes at least one storage The correspondence between the device identifier of the node of the first data and the first data identifier, the target node stores the first data, and the first data is from the target node to the first terminal The transmission path between devices is the shortest;
    发送单元,用于将所述目标节点的IP地址发送给所述第一终端设备。A sending unit, configured to send the IP address of the target node to the first terminal device.
  9. 根据权利要求8所述的装置,其特征在于,所述第一数据从所述目标节点到所述第一终端设备之间的传输路径最短,包括:所述目标节点与所述第一终端设备直接或间接通过同一接入设备连接至网络。The apparatus according to claim 8, wherein the transmission path of the first data from the target node to the first terminal device is the shortest, comprising: the target node and the first terminal device Directly or indirectly connected to the network through the same access device.
  10. 根据权利要求8或9所述的装置,其特征在于,The device according to claim 8 or 9, characterized in that,
    所述接收单元,还用于在接收第一终端设备发送的第一请求消息之前,接收至少一个终端设备发送的设备标识,以及与每个所述终端设备连接的接入设备的ID信息;The receiving unit is further configured to, before receiving the first request message sent by the first terminal device, receive a device identifier sent by at least one terminal device, and ID information of an access device connected to each of the terminal devices;
    所述处理单元,还用于根据所述至少一个终端设备的设备标识和每个所述接入设备的ID信息获得所述网络中各个设备的连接关系。The processing unit is further configured to obtain the connection relationship of each device in the network according to the device identifier of the at least one terminal device and the ID information of each of the access devices.
  11. 根据权利要求8或9所述的装置,其特征在于,The device according to claim 8 or 9, characterized in that,
    所述接收单元,还用于在接收第一终端设备发送的第一请求消息之前,接收网络管理设备发送的网络中各个设备的连接关系。The receiving unit is further configured to receive, before receiving the first request message sent by the first terminal device, the connection relationship of each device in the network sent by the network management device.
  12. 根据权利要求10或11所述的装置,其特征在于,The device according to claim 10 or 11, characterized in that,
    所述处理单元,还用于根据所述网络中各个设备的连接关系确定与所述第一终端设备连接的第一接入设备,获取与所述第一接入设备连接的至少一个节点,选择所述至少一个节点中的一个或多个存储所述第一数据;以及,建立已存储所述第一数据的节点的设备标识与所述第一数据标识之间的对应关系,并根据所述对应关系生成所述存储数据记录表。The processing unit is further configured to determine a first access device connected to the first terminal device according to the connection relationship of each device in the network, acquire at least one node connected to the first access device, and select One or more of the at least one node stores the first data; and, establishing a correspondence between the device identification of the node that has stored the first data and the first data identification, and The stored data record table is generated according to the corresponding relationship.
  13. 根据权利要求8-12任一项所述的装置,其特征在于,所述目标设备为第一接入设备。The apparatus according to any one of claims 8-12, wherein the target device is a first access device.
  14. 根据权利要10所述的装置,其特征在于,所述接入设备的ID信息包括:所述接入设备的设备名称、设备编号、互联网协议IP地址,和媒体访问控制MAC地址中的至少一种。The apparatus according to claim 10, wherein the ID information of the access device comprises: at least one of a device name, a device number, an Internet Protocol IP address, and a media access control MAC address of the access device kind.
  15. 一种网络设备,其特征在于,包括处理器和存储器,A network device, comprising a processor and a memory,
    所述存储器,用于存储计算机程序指令;the memory for storing computer program instructions;
    所述处理器,用于执行所述存储器中存储的所述指令,使得所述网络设备执行如权利要求1至7中任一项所述的方法。The processor is configured to execute the instructions stored in the memory, so that the network device executes the method according to any one of claims 1 to 7.
PCT/CN2021/118639 2020-09-18 2021-09-16 Device connection method, apparatus, and device WO2022057846A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010989992.0 2020-09-18
CN202010989992.0A CN114285788B (en) 2020-09-18 2020-09-18 Equipment connection method, device and equipment

Publications (1)

Publication Number Publication Date
WO2022057846A1 true WO2022057846A1 (en) 2022-03-24

Family

ID=80776449

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/118639 WO2022057846A1 (en) 2020-09-18 2021-09-16 Device connection method, apparatus, and device

Country Status (2)

Country Link
CN (1) CN114285788B (en)
WO (1) WO2022057846A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116366499A (en) * 2023-05-26 2023-06-30 中国工商银行股份有限公司 Data transmission method, device, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102726031A (en) * 2011-07-22 2012-10-10 华为技术有限公司 Content processing method, device and system
US20140173034A1 (en) * 2011-05-03 2014-06-19 Interdigital Patent Holdings, Inc. Content identification, retrieval and routing in the internet
US20150215396A1 (en) * 2009-12-14 2015-07-30 Telefonaktiebolaget L M Ericsson (Publ) Dynamic Cache Selection Method and System
CN105897845A (en) * 2015-12-15 2016-08-24 乐视云计算有限公司 CDN (Content Delivery Network) service node dispatching method and server
CN107948677A (en) * 2016-10-13 2018-04-20 ***通信有限公司研究院 A kind of dispatching method, server and the first peer node
CN110636339A (en) * 2019-09-30 2019-12-31 北京字节跳动网络技术有限公司 Scheduling method and device based on code rate and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105871591A (en) * 2015-12-21 2016-08-17 乐视云计算有限公司 Method and device for distributing CDN (Content Delivery Network) addresses
US20170180470A1 (en) * 2015-12-21 2017-06-22 Le Holdings (Beijing) Co., Ltd. Method and electronic device for sending CDN address
CN105872002A (en) * 2015-12-22 2016-08-17 乐视云计算有限公司 Video program obtaining method and system, and device
CN105657063B (en) * 2016-03-23 2019-06-18 北京百度网讯科技有限公司 Data download method and device
CN107959704B (en) * 2016-10-18 2020-01-03 ***通信有限公司研究院 Data processing method and home gateway
CN110839006A (en) * 2018-08-17 2020-02-25 阿里巴巴集团控股有限公司 Network scheduling method and device and electronic equipment
CN109561141B (en) * 2018-11-21 2020-05-22 中国联合网络通信集团有限公司 CDN node selection method and equipment
CN109982152B (en) * 2019-01-15 2021-02-23 中国联合网络通信集团有限公司 P2P CDN service processing method, intelligent gateway and CDN platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150215396A1 (en) * 2009-12-14 2015-07-30 Telefonaktiebolaget L M Ericsson (Publ) Dynamic Cache Selection Method and System
US20140173034A1 (en) * 2011-05-03 2014-06-19 Interdigital Patent Holdings, Inc. Content identification, retrieval and routing in the internet
CN102726031A (en) * 2011-07-22 2012-10-10 华为技术有限公司 Content processing method, device and system
CN105897845A (en) * 2015-12-15 2016-08-24 乐视云计算有限公司 CDN (Content Delivery Network) service node dispatching method and server
CN107948677A (en) * 2016-10-13 2018-04-20 ***通信有限公司研究院 A kind of dispatching method, server and the first peer node
CN110636339A (en) * 2019-09-30 2019-12-31 北京字节跳动网络技术有限公司 Scheduling method and device based on code rate and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116366499A (en) * 2023-05-26 2023-06-30 中国工商银行股份有限公司 Data transmission method, device, electronic equipment and medium
CN116366499B (en) * 2023-05-26 2023-08-15 中国工商银行股份有限公司 Data transmission method, device, electronic equipment and medium

Also Published As

Publication number Publication date
CN114285788A (en) 2022-04-05
CN114285788B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
US11038751B2 (en) Information processing method, network node, authentication method, and server
JP4680866B2 (en) Packet transfer device with gateway load balancing function
US8630183B2 (en) Packet transfer system
KR101374577B1 (en) Method and apparatus for sending and receiving multicast packets
WO2015070681A1 (en) Method for virtualizing access network, and proxy node
JP2016537925A (en) Route control method, device, and system
US20160088377A1 (en) Method and apparatus for virtualizing passive optical network, and passive optical network virtualization system
WO2012171169A1 (en) Communications method and load balancer
WO2012116614A1 (en) Network traffic volume distribution method, network node, and system
US8532114B2 (en) Cluster router and cluster routing method
US9468025B2 (en) System and method for configuring device connections in an extended network environment
WO2015021595A1 (en) Service channel configuration method, optical line terminal and passive optical network
US9900100B2 (en) Optical line terminal, communication control method, and communication control program
KR20070020398A (en) DIRECTED PPPoE SESSION INITIATION OVER A SWITCHED ETHERNET
TW201914265A (en) Software Defined Network system with auto-deployment switches and auto-deploying method thereof
WO2022057846A1 (en) Device connection method, apparatus, and device
WO2017012471A1 (en) Load balance processing method and apparatus
US9900804B2 (en) Method and device for processing to share network resources, and method, device and system for sharing network resources
CN101394339A (en) Method, system and apparatus for routing implementation in peer-to-peer network
CN103188132A (en) Instant messaging method and system based on content distribution network (CDN)
US10862963B2 (en) Method and system for automatic discovery of tunnel endpoints in a broadcast network
Hwang et al. BitTorrent locality-awareness application with colorless ONUs in an enhanced EPON system
Hwang et al. Global P2P BitTorrent real-time traffic over SDN-based local-aware NG-PON2
WO2011144043A2 (en) Omci message transmission method, device and passive optical network system
Liem et al. Peer-to-peer application-aware mechanism for enhancing video streaming in enhanced EPON

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21868668

Country of ref document: EP

Kind code of ref document: A1