CN114285788B - Equipment connection method, device and equipment - Google Patents

Equipment connection method, device and equipment Download PDF

Info

Publication number
CN114285788B
CN114285788B CN202010989992.0A CN202010989992A CN114285788B CN 114285788 B CN114285788 B CN 114285788B CN 202010989992 A CN202010989992 A CN 202010989992A CN 114285788 B CN114285788 B CN 114285788B
Authority
CN
China
Prior art keywords
network
equipment
data
access
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010989992.0A
Other languages
Chinese (zh)
Other versions
CN114285788A (en
Inventor
罗勇
汪文明
汪伊明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010989992.0A priority Critical patent/CN114285788B/en
Priority to PCT/CN2021/118639 priority patent/WO2022057846A1/en
Publication of CN114285788A publication Critical patent/CN114285788A/en
Application granted granted Critical
Publication of CN114285788B publication Critical patent/CN114285788B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The application discloses a device connection method and apparatus, the method includes: receiving a first request message sent by first terminal equipment, wherein the first request message comprises an equipment identifier of the first terminal equipment and a first data identifier, and the first data identifier indicates first data requested by the first terminal equipment; searching a target node in a stored data record table according to the first data identifier, the first equipment identifier and the connection relation of each equipment in the network, wherein the stored data record table comprises at least one equipment identifier of a node storing the first data and the corresponding relation of the first data identifier, the target node stores the first data, and a transmission path of the first data from the target node to the first terminal equipment is shortest; and sending the IP address of the target node to the first terminal equipment. The method utilizes the shortest transmission path to carry out data transmission, and has the advantages of small flow cost, small transmission delay and high transmission efficiency.

Description

Equipment connection method, device and equipment
Technical Field
The present disclosure relates to the field of content distribution technologies, and in particular, to a device connection method, apparatus, and device based on a PCDN.
Background
The content delivery network (Content Delivery Network, CDN) is a strategically deployed overall system. The method aims to avoid bottlenecks and links on the Internet, which possibly affect the data transmission speed and stability, so that the content transmission is faster and more stable. Through a layer of intelligent virtual network formed by node servers placed everywhere in the network and based on the existing internet, the CDN system can redirect the user's request to the service node nearest to the user in real time according to the network flow and the comprehensive information of the connection, load condition, distance to the user and response time of each node. The user can obtain the required content nearby, the congestion condition of the Internet network is solved, and the response speed of the user for accessing the website is improved.
Peer-to-peer (P2P), also known as point-to-point technology, is an internet architecture that relies on user groups (peers) to exchange information without a central server, and serves to reduce nodes in past network transmissions to reduce the risk of data loss. Unlike the central network system with central server, each user end of the peer-to-peer network is a node and has the function of server, any node can not directly find other nodes, and the user group must be relied on to exchange information. A P2P network is a shared network in which each node is a provider and a receiver of services, each node sharing a part of its hardware resources (computing power, storage power, transmission power, etc.).
A point-to-point content delivery network (P2 PCDN, abbreviated as PCDN) is a technology combining P2P and CDN, and is based on P2P technology, and is a low-cost and high-quality content delivery network service constructed by mining and utilizing massive fragmented idle resources of an edge network. The PCDN technology downloads a video program directly to a home router, and when a user requests to watch a certain video program, the video program can be directly acquired from a nearby home router.
In the existing process of searching and distributing a video program requested by a user, a network system generally searches another terminal device which is located in the same network segment as the terminal device and stores the video program according to an address of the requested user terminal device, and then sends the video program stored on the searched another terminal device to the requesting user. However, since the distance between two terminal devices located on the same network segment may be far, for example, the requested user terminal device and the searched target terminal device are located in different optical line terminals (optical line terminal, OLT) respectively, the traffic of transmitting video program data is large, delay is easy to occur during transmission, and the transmission efficiency is low.
Disclosure of Invention
The embodiment of the application provides a device connection method and device, which are used for reducing the flow of video data transmission and improving the transmission efficiency. Specifically, the application discloses the following technical scheme:
in a first aspect, an embodiment of the present application provides a device connection method, including: receiving a first request message sent by first terminal equipment, wherein the first request message comprises an equipment identifier of the first terminal equipment and a first data identifier, and the first data identifier indicates first data requested by the first terminal equipment; searching a target node in a stored data record table according to the first data identifier, the first equipment identifier and the connection relation of all equipment in the network, and sending the IP address of the target node to the first terminal equipment.
The storage data record table comprises at least one corresponding relation between the equipment identifier of the node storing the first data and the first data identifier, the target node stores the first data, and the transmission path of the first data from the target node to the first terminal equipment is shortest. In addition, the connection relation of each device in the network includes: the device identification of the upstream node and/or the device identification of the downstream node to which each device ID is connected in the network.
Optionally, the connection relation of each device in the network is represented by a network topology record table.
According to the method provided by the invention, according to the equipment identifier and the data identifier carried in the request message sent by the terminal equipment, the target node storing the requested data is searched in the connection relation of each equipment and the data record table stored in each node in the network, and as the transmission path between the target node and the terminal equipment is shortest, the shortest transmission path is utilized to transmit the required data to the requested terminal equipment, so that the situation that the distance of the selected target node is far under the same network segment, the backhaul traffic of the data transmission is larger, and the transmission delay is longer is avoided. The method has the advantages of short data transmission path, small required flow cost, small transmission delay and high efficiency.
Optionally, a transmission path of the first data from the target node to the first terminal device is shortest, including: the target node and the first terminal device are directly or indirectly connected to a network through the same access device.
Or the target node is a first access device directly or indirectly connected with the first terminal device, and at this time, the transmission path between the first access device and the first terminal device is shortest.
According to the method, the first access device or one downstream node connected with the first access device is selected as a target node, so that the transmission path between the target node and the first terminal device is shortest, the cost of transmission flow is minimum, and the transmission efficiency is highest.
With reference to the first aspect, in a possible implementation manner of the first aspect, before receiving the first request message sent by the first terminal device, the method further includes: receiving equipment identification of at least one terminal equipment and ID information of access equipment connected with each terminal equipment; and obtaining the connection relation of each device in the network according to the device identification of the at least one terminal device and the ID information of each access device. Wherein the ID information of the access device includes: at least one of a device name, a device number, an IP address, and a MAC address of the access device.
In the implementation manner, each terminal device actively reports the device identifier of the terminal device and the ID information of the node to which the terminal device is connected, so that the receiving terminal node can obtain the topological structure of each terminal device, and a basis is provided for searching the target node of the shortest transmission path.
With reference to the first aspect, in another possible implementation manner of the first aspect, before receiving the first request message sent by the first terminal device, the method further includes: and receiving the connection relation of each device in the network, which is sent by the network management device. The network management device can determine the connection relation of each device according to the ID information reported by each device in the network and the device identification.
According to the implementation mode, the network topology structure record table is obtained in a mode of reporting by the network management equipment, so that convenience is provided for searching the target node with the shortest path with the request end. In addition, network topology structure is dynamically obtained by using network management equipment, access information reported by all nodes is prevented from being counted and processed at the GSLB system side, operation load at the GSLB system side is saved, and transmission cost for transmitting access information to the GSLB system by each node is reduced.
With reference to the first aspect, in a further possible implementation manner of the first aspect, the method further includes: determining a first access device connected with the first terminal device according to the connection relation of each device in the network, acquiring at least one node connected with the first access device, and selecting one or more of the at least one node to store the first data; and establishing a corresponding relation between the equipment identifier of the node storing the first data and the first data identifier, and generating the stored data record table according to the corresponding relation.
In this implementation, the first data is stored on the downstream node having the same access device as the requesting terminal device, so that a node having the same access device can be found as the target node, and the transmission path between this target node and the requesting first terminal device is the shortest.
In a second aspect, the present application further provides a device connection apparatus, the apparatus comprising: a receiving unit, a processing unit, a transmitting unit, etc.
The receiving unit is used for receiving a first request message sent by the first terminal equipment, wherein the first request message comprises an equipment identifier of the first terminal equipment and a first data identifier, and the first data identifier indicates first data requested by the first terminal equipment; the processing unit is used for searching the target node in the stored data record table according to the first data identifier, the first equipment identifier and the connection relation of each equipment in the network; and the sending unit is used for sending the IP address of the target node to the first terminal equipment.
The stored data record table includes at least one device identifier of a node storing the first data, and a corresponding relation of the first data identifier, and the target node stores the first data, where a transmission path of the first data from the target node to the first terminal device is shortest.
With reference to the second aspect, in a possible implementation manner of the second aspect, a transmission path of the first data from the target node to the first terminal device is shortest, including: the target node is connected to the network directly or indirectly through the same access device as the first terminal device.
With reference to the second aspect, in 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, a device identifier sent by at least one terminal device, and ID information of an access device connected to each of the terminal devices; the processing unit is further configured to obtain a 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 access device.
With reference to the second aspect, in a further 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, a connection relationship between devices in the network sent by the network management device.
With reference to the second aspect, in a further possible implementation manner of the second aspect, the processing unit is further configured to determine, according to a connection relationship of each device in the network, a first access device connected to the first terminal device, 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 first data; and establishing a corresponding relation between the equipment identifier of the node storing the first data and the first data identifier, and generating the stored data record table according to the corresponding relation.
Optionally, the target device is a first access device directly or indirectly connected to the first terminal device.
In a third aspect, the present application provides an information sending method, which is applicable to a PCDN node, such as a first terminal device, and the method includes:
the method comprises the steps that a first terminal device sends a first request message to a GSLB system, wherein the first request message comprises a device identifier of the first terminal device and a first data identifier, and the first data identifier indicates first data requested by the first terminal device;
the first terminal equipment receives an IP address of a target node sent by the GSLB system; the target node is determined by the GSLB system after searching in a storage data record table according to the first data identifier, the first equipment identifier and the connection relation of each equipment in the network;
and the first terminal equipment establishes a communication link with the target equipment according to the IP address of the target node, and receives the first data by utilizing the communication link.
With reference to the third aspect, in a possible implementation manner of the third aspect, the method further includes: the first terminal equipment receives ID information of first access equipment sent by the first access equipment, wherein the ID information of the first access equipment comprises equipment identification, equipment number, MAC address, IP address or other identifiers of the first access equipment; and the first terminal equipment sends the equipment identifier of the first terminal equipment and the ID information of the first access equipment to the GSLB system.
In a fourth aspect, the present application provides an information transmission method, which is applicable to a network device, such as a network management device, the method including:
the network management equipment receives equipment identification sent by at least one terminal equipment in a network;
the network management equipment receives ID information of at least one access equipment in the network;
the network management equipment obtains the connection relation of each equipment in the network according to the equipment identification of the at least one terminal equipment and the ID information of each access equipment in at least one access equipment;
and the network management equipment sends the connection relation of each equipment in the network to the GSLB system.
With reference to the fourth aspect, in a possible implementation manner of the fourth aspect, the method further includes: and the network management equipment receives the ID information sent by other nodes and updates the connection relation of each equipment in the network according to the ID information sent by the other nodes.
Optionally, the other nodes include 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.
Alternatively, the connection relationship of each device in the network may be represented by a network topology record table.
In a fifth aspect, the present application provides a network device comprising a processor and a memory, the processor being coupled to the memory; the memory is used for storing computer program instructions; the processor is configured to execute the instructions stored in the memory, to cause the network device to perform the method of the foregoing first aspect and various implementations of the first aspect.
In addition, the network device further comprises a communication interface, a transceiver and the like.
Optionally, the network device may implement the methods described in the foregoing third and fourth aspects using the processor and the memory. Specifically, when the network device is a terminal device, the information sending method described in the foregoing third aspect may be implemented; when the network device is a network management device, the information sending method of the fourth aspect can be implemented.
It should be appreciated that the processor and memory described above may be integrated in a single chip circuit, such as a processing chip. The processing chip comprises a storage unit and a processing unit, wherein the processing unit and the storage unit can be used for realizing all functions of the processor and the memory and realizing the methods in the first aspect and various implementation manners in the first aspect.
Optionally, the processing chip may further implement the methods described in the foregoing third and fourth aspects.
In a sixth aspect, the present application also provides a computer readable storage medium having instructions stored therein such that when the instructions are run on a computer or processor, they can be used to perform the method of the foregoing first aspect and various implementations of the first aspect.
Optionally, the instructions, when run on a computer or processor, may also be used to perform the methods of the third and fourth aspects described above.
In addition, the application also provides a computer program product comprising computer instructions which, when executed by a computer or processor, implement the method of the first aspect and the various implementations of the first aspect, and/or the method of the third and fourth aspects.
It should be noted that, the beneficial effects corresponding to the technical solutions of the foregoing second aspect to the various implementation manners of the sixth aspect are the same as the beneficial effects of the foregoing first aspect and the various implementation manners of the first aspect, and detailed descriptions of the beneficial effects of the foregoing first aspect and the various implementation manners of the first aspect are omitted.
Drawings
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 according to 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 according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of yet another shortest transmission path between nodes according to an embodiment of the present application;
fig. 7 is a schematic diagram of yet another shortest transmission path between nodes according to an embodiment of the present application;
fig. 8 is a signaling flow chart for obtaining a network topology 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;
fig. 11 is a signaling flow chart for obtaining a network topology record table according to another embodiment of the present application;
fig. 12 is a schematic structural diagram of a device connection apparatus according to an embodiment of the present application;
Fig. 13 is a schematic structural diagram of a network device according to an embodiment of the present application.
Detailed Description
In order to better understand the technical solution in the embodiments of the present application and make the above objects, features and advantages of the embodiments of the present application more obvious, the technical solution in the embodiments of the present application is described in further detail below with reference to the accompanying drawings.
Before the technical scheme of the embodiment of the application is described, an application scenario of the embodiment of the application is described with reference to the accompanying drawings.
The technical scheme of the application can be applied to a network system comprising CDN and P2P technology, such as PCDN. The PCDN may employ an upper CDN and a lower P2P network architecture. On the basis of CDN (still sent to the edge server by the central server), a manageable P2P autonomous region is introduced into the edge server, and the edge server consists of at least one edge server and a plurality of users, so that the content of video distribution can be monitored, and the pressure of a backbone network can be reduced.
The CDN is an overall system of strategic deployment, has functions of distributed storage, load balancing, network request redirection, content management and the like, selects video content for users through judging principles of user proximity, server load and the like, and provides services for the users. In addition, each CDN node in the CDN may include a load balancing device and a cache server. Specifically, the load balancing device is used for balancing the load of each Cache in each node, so as to ensure the working efficiency of the node. In addition, the load balancing device is also responsible for collecting information of nodes and surrounding environments, maintaining communication with a global load domain name system (Domain Name System, DNS) and realizing load balancing of the whole system.
A P2P network is a shared network in which each node is a provider and a receiver of services, each node sharing a part of its hardware resources (computing power, storage power, transmission power, etc.).
Referring to fig. 1, a schematic diagram of a PCDN architecture according to an embodiment of the present application is shown. The PCDN incorporates a passive optical network (passive optical network, PON) and a CDN. Among them, PON is a point-to-multipoint optical access technology, as shown in fig. 1, an optical line terminal (optical line terminal, OLT) is used to provide a network-side interface for an optical access network (optical access network, OAN), where the OLT is connected to an upstream network-side device (such as a switch, a router, etc.), and is connected to one or more optical distribution networks (optical distribution network, ODN) downstream.
Wherein the ODN includes a passive optical splitter (shown in fig. 1) for optical power distribution, a trunk fiber connected between the passive optical splitter and the OLT, and a branch fiber connected between the passive optical splitter and an optical network unit (optical network unit, ONU), and transmits data downstream of the OLT to each ONU through the splitter when transmitting the data downstream. When data is transmitted in the uplink direction, the ODN converges the uplink data of the ONU and transmits the converged uplink data to the OLT.
The OLT is a core component of the optical access network, which is equivalent to a switch or a router in a conventional communication network, and is also a multi-service providing platform. Is typically placed at the office and provides a fiber interface to the customer's passive fiber network. The main functions of the method are as follows: the upper network is connected upwards to finish the uplink access of a wide area network or the Internet (comprising a BRAS and a GSLB system); and the user terminal equipment is connected downwards, so that the functions of controlling, managing, ranging and the like of the user terminal equipment are realized.
The ONU provides a user side interface for the OAN and is connected with the ODN. If the ONU simultaneously provides a subscriber port function, such as the ONU provides an Ethernet (Ethernet) subscriber port or a conventional telephone service (plain old telephone service, POTS) subscriber port, it is called an optical network terminal (optical network termination, ONT), which can also be colloquially called an optical cat. The device is equipment for providing network for home users in an access network, is directly positioned at a user side, and can provide services such as high-speed internet surfing, internet Protocol Television (IPTV), voice, wiFi and the like.
It should be understood that in this embodiment, the OLT and the customer premise equipment are connected through a PON interface, and the OLT may connect a plurality of ONTs through one PON interface. That is, among the plurality of PON interfaces of the OLT downstream-connected to the customer premise equipment, each PON interface may correspond to a plurality of customer premise equipment.
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 in the embodiments of the present application is a terminal device, which includes but is not limited to an ONT or a home router. In addition, the PCDN node may be a network node inside the user's home.
In addition, as shown in fig. 1, a metropolitan area network is also included, where at least one network device, or network node, is typically included, such as a broadband remote access server (Broadband Remote Access Server, BRAS), a switch, and the like. Alternatively, the OLT may be deployed in a metropolitan area network or in a region closer to the metropolitan area network.
The BRAS is a novel access gateway for broadband network application, is positioned at the edge layer of a backbone network, can finish the application of data access of an IP/asynchronous transfer mode (asynchronous transfer mode, ATM) network of a user bandwidth (the current access means is mainly based on xDSL, cable Modem (CM), high-speed Ethernet technology (such as local area network Local Area Network, LAN)/wireless broadband data access (WLAN) and the like, realizes the broadband internet surfing of commercial buildings and cell households, IP virtual private network (Virtual Private Network, VPN) service based on Internet security protocol (IP Security Protocol, IPSec), constructs an Intranet, supports Internet service provider (Internet Service Provider, ISP) to wholesale service of the user and the like, wherein xDSL is various types of digital user lines (Digital Subscribe Line, DSL).
Alternatively, the BRAS may act as a network sink node in the PCDN architecture.
The BRAS and the OLT are connected by an ethernet interface (ethernet interface), which communicates in a point-to-point manner. When there are multiple OLTs, the BRAS needs to be connected to different OLTs through different ethernet interfaces respectively. That is, among the multiple ethernet interfaces of the BRAS connection OLT, 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-described PCDN architecture, the PCDN node and the CDN node are collectively referred to as nodes.
In addition, the network device connected to the metropolitan area network further includes: global load balancing (Global Server Load Balance, GSLB) system. The GSLB system is used for realizing flow allocation among servers in different regions on a wide area network (including the Internet), and ensuring that the best server is used for serving the nearest clients, thereby ensuring the access quality. In addition, the GSLB system also has all functions of the load balancing equipment.
In the network architecture shown in fig. 1, at least two OLTs, such as OLT 1 and OLT 2, may be included in the same network segment, wherein each OLT is connected to the GSLB system by a BRAS upwards and a plurality of ONTs downwards. Such as ONT 1 to ONT 4, where ONT 1 and ONT 2 access the PCDN through OLT 1 and ONT 3 and ONT 4 access the PCDN through OLT 2. The ONT 1 to ONT 4 are 4 PCDN nodes.
Each PCDN node may store a plurality of video programs in advance, and a certain hot program x is stored in advance in any one ONT under the network segment, for example, in the ONT 4. When ONT 1 or ONT 2 sends a DNS message to request to watch the hot spot program x, OLT 1 receives and sends the DNS message to GSLB, after GSLB receives the DNS message, the requested hot spot program x is found to be stored on ONT 4, then indication information is sent to ONT 4, after ONT 4 receives the indication information sent by GSLB, the data of the hot spot program x is transmitted to request terminal ONT 1 or ONT 2 through OLT 2, BRAS and OLT 1 in sequence.
In the above transmission process, the data of the hot program x needs to be transmitted back to the requested ONT 1 through the BRAS, which results in an increase of data backhaul traffic, and the two ONTs under different OLTs may be separated by a long distance, so the current scheme of obtaining the hot program data from the ONT 4 by the ONT 1 or the ONT 2 under the same network segment is not the optimal scheme. The embodiment of the application provides a better distribution scheme, which aims to solve the technical problems, improve the efficiency of content distribution in a PCDN architecture and reduce the transmission delay of traffic.
In this embodiment, the terminal device storing the video program is referred to as a PCDN node having a PCDN function, or as an enabled PCDN node, and the access device storing the video program is referred to as an enabled CDN node. And, the enabled PCDN node or CDN node comprises a storage medium which can be used for storing data corresponding to the video program. In addition, the data corresponding to the video program may be represented by a data identifier, such as a data ID.
As shown in fig. 2, the present embodiment provides a device connection method, which is applicable to the GSLB system, the server, or the OLT, or is integrated in a component in the network device, where the method includes:
201: and receiving a first request message sent by first terminal equipment, wherein the first request message comprises an equipment identifier and a first data identifier of the first terminal equipment.
Wherein the first data identification indicates first data requested by the first terminal device. For example, when the first data is a video content, the first data is identified as an identification of the video content, for example, program x, where x represents a program number. Optionally, the video content may also be video on demand, live video, and large file download, in particular, the video on demand includes long video on demand, short video on demand in a hot set. The video live broadcast comprises live broadcast of a large-scale evening event, live broadcast of a local network station and interactive live broadcast of a show field. The large file downloads include file distribution that exceeds 1MB and is hot concentrated, such as application market distribution, online audio distribution, and the like.
Since the video program content is finally 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 file, and the data identifier refers to indication information for identifying the data, such as a data ID.
The first terminal device is a PCDN node, such as an ONT, and the ONT may be connected to the network through a first access device, which is a CDN node, such as an OLT. In this embodiment, the first terminal device is taken as ONT 1, and the first access device is taken as OLT 1 for example.
Optionally, the device identifier of the first terminal device includes, but is not limited to, a device name, a device number, an IP address, a media access control (Media Access Control, MAC) address, and the like of the first terminal device.
In addition, optionally, the device identifier of the first terminal device may be represented by a character string, where the character string includes, but is not limited to, a number, a letter, a symbol, a letter, and so on. The device identification of the terminal device may be represented by a device ID.
202: searching a target node in a data record table stored in each node according to the first data identifier, the first equipment identifier and the connection relation of each equipment in the network, wherein the target node stores first data, and the transmission path of the target node reaching the first terminal equipment is shortest relative to other nodes storing the first data.
The connection relation of each device in the network comprises the following steps: the device identification of the upstream node and/or the device identification of the downstream node to which each device ID is connected in the network. The upstream node refers to a node that is connected upstream to the current device, for example, for an ONT, an OLT connected to the upstream node is an upstream node of the ONT, and a device ID of the OLT is a device identifier of the upstream node. Similarly, the downstream node refers to a node to which the current device is connected downstream, for example, for an OLT, all ONTs connected to the node are downstream nodes of the OLT, for example, ONT 1, and then ONT 1 is the device identifier of the downstream node of the OLT. In addition, for the OLT, the upstream node may be a BRAS, such as BRAS 1, and thus BRAS 1 is a device identifier of the upstream node of the OLT.
It should be appreciated that for some nodes, there may be only upstream nodes connected to it, such as ONTs; or may only have downstream nodes, such as BRAS, connected thereto, which the present embodiment does not limit.
Optionally, in this embodiment, the connection relationship of each device in the network is represented by a network topology record table. The network topology record table comprises the equipment ID of each node, the equipment identifier of the upstream node connected with each equipment ID and the equipment identifier of the downstream node connected with each equipment ID. Such as shown in table 1, is a network topology record table. The device identification of the node connected upstream and the device identification of the node connected downstream of each of the device ID1, the device ID2, and the device ID3 are shown in this table 1. For example, device ID1 is connected upstream to device ID4, and downstream to device ID5 and device ID7.
Table 1, network topology record table
Figure BDA0002690548240000081
Of course, the connection relationship of each device in the network and the network topology may be represented in other manners, which are not limited in this embodiment.
In this embodiment, the device identifier (or device ID) is a character string for describing the unique identifier of the device, where the character string includes, but is not limited to, a number, a letter, a symbol, a word, and other characters. When the node is an OLT, the device ID of the node may be a device name, a device number, an IP address, and/or a MAC address of the OLT, etc.
Each node stores the data record table and includes: and the corresponding relation between the equipment identifier and the data identifier of each node storing the 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 data identifications stored in each of the downstream node device ID5, device ID7 to device ID9, for example, data corresponding to data ID1 and data ID2 is stored in device ID5, and data corresponding to data ID3 is stored in device ID 7. In this embodiment, the first data identifier may be any one of data ID1 to data ID4 in table 2.
Table 2, each node stores a data record table
Device identification Stored data identification
Device ID5 Data ID1, data ID2
Device ID7 Data ID3
Device ID8 Data ID4, data ID2
Device ID9 Data ID1
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 downstream of the same access device; i.e. they access the network directly or indirectly through the same access device, such as an OLT, so that the requested data can be forwarded by the access device to the first terminal device only after having been sent to the same access device, in which case the transmission path has only two hops. Wherein, the indirect access to the network through an access device means that the access device is connected to the access network after passing through other devices, and the access device is used for accessing the network.
In a specific example, the target node and the first terminal device are directly connected to the same access device, as shown in fig. 3, the target node is an ONT2, and the ONT2 and the ONT1 access the network through the OLT1, and in the case that the local switching function is started on the OLT1, the shortest transmission path is the ONT2, the first data is transmitted to the OLT1, and then the OLT1 sends the first data to the requested ONT1, where the transmission path is the ONT2→olt1→ont1, and the first data reaches the first terminal device ONT1 after two hops occur through the two nodes of the OLT1 and the ONT 1.
Optionally, in the case that the OLT1 closes the local switching function, the first data to be transmitted between the ONT1 and the ONT2 cannot be exchanged on the OLT1, and needs to be forwarded through the BRAS. As shown in fig. 4, the shortest transmission path is that the OLT1 transmits the first data to the BRAS first, and then the BRAS transmits the first data to the ONT1 through the OLT1, and at this time, the transmission path is ONT2→olt1→bras OLT1→ont1. The first data arrives at ONT1 after 4 hops after being sent out from ONT 2.
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 ONT2, and the first access device is OLT 1', where ONT1 is indirectly connected to OLT 1' through OLT1, ONT2 is also indirectly connected to OLT 1' through OLT2, and then the first data sent by ONT2 needs to pass through OLT2, OLT 1', BRAS, OLT 1', and OLT1 in sequence, and finally reaches ONT1. At this time, the transmission path is ONT2→olt 1'→bras→olt 1' →olt1→olt1, and after 6 hops, the transmission path finally reaches ONT1.
It should be noted that, if no node downstream of the access device of the first terminal device stores the requested first data, in this case, the node storing the requested first data is searched under the other access device, and transmission paths of the nodes reaching the first terminal device are compared, so as to finally determine the target node.
For example, in one example shown in fig. 6, the first data is not stored in the ONT 2, and only the first data is stored in the ONT4 out of the ONTs 3 and 4, the target node is determined to be the ONT 4. The access device OLT2 connected to the ONT4 is different from the access device OLT1 connected to the ONT1, and the shortest transmission path is that the first data arrives at the ONT1 after being forwarded by the OLT2 and the OLT 1. At this time, the transmission path is ONT4 → OLT2 → BRAS OLT1 → ONT1, and the first data is sent out from ONT 2 and finally reaches ONT1 after 4 hops.
In addition, the step 202 further includes: according to the network topology record table and the data record table stored in each node, it is determined that the target node is an access device, such as OLT1, as shown in fig. 7, the shortest transmission path is a path from OLT1 to ONT1, that is, OLT1→ont1, and at this time, the first data is sent from OLT1 and reaches ONT1 through one hop.
203: and sending the IP address of the target node to the first terminal equipment.
Specifically, the determined IP address of the target node is sent to the first terminal equipment through the first access equipment, after the first terminal equipment receives the IP address, a communication link between the first terminal equipment and the target node is established according to the IP address, and the first data is received by utilizing the communication link. For example, in any of the above examples of fig. 3 to 5, after determining that the target node is ONT 2, the IP address of the ONT 2 is sent to ONT1, and the ONT1 establishes a communication link with the ONT 2, and then receives the first data from the ONT 2 using the communication link.
Similarly, when the target node is OLT 1, the ONT 1 receives the first data transmitted by the OLT 1 according to the communication link with the OLT 1.
According to the method, according to the equipment identifier and the data identifier carried in the request message sent by the terminal equipment, the target node storing the requested data is searched in the network topology structure record table and each node storing data record table, and as the transmission path between the target node and the terminal equipment is shortest, the shortest transmission path is utilized to transmit the required data to the requested terminal equipment, so that the situation that the distance between the target node selected under the same network segment is far, the backhaul traffic of the data transmission is large, and the transmission delay is long is avoided. The method has the advantages of short data transmission path, small required flow cost, small transmission delay and high efficiency.
In the following, a specific process of searching the target node according to the connection relation of each device in the network and the data record table stored in each node in the above step 202 is described. First, a procedure of acquiring the network topology record table will be described.
A first possible implementation manner is that the GSLB system receives device identifiers sent by all terminal devices in a network, and ID information of access devices connected to each of the terminal devices (i.e. device identifiers of upstream nodes), obtains the network topology record table according to the device identifier of at least one of the terminal devices and the ID information of each of the access devices, and stores the network topology record table.
Specifically, as shown in fig. 8, a method for obtaining the network topology record table includes:
401: the OLT 1 transmits the ID information of the OLT 1 to the ONT 1 when detecting that the ONT 1 is connected to the network through the OLT 1. Wherein 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 a device identifier, a device number, a MAC address, an IP address, or other identifier of the OLT 1, etc.
Alternatively, the ID information of the OLT 1 may be sent to the ONT 1 by means of a first information carrying manner.
Correspondingly, the ONT 1 receives the first information sent by the OLT 1, where the first information includes ID information of the OLT 1.
402: the ONT 1 transmits the ID information of the OLT 1 to the GSLB system.
Specifically, when the ONT 1 is registered in the GSLB system, a communication connection is automatically established with the GSLB system, and then the ID information of the OLT 1 is transmitted using the communication connection.
Furthermore, the method further comprises: the ONT 1 sends the device identification of the ONT 1 to the GSLB system. Specifically, the ONT 1 may send the ID information of the OLT 1 and the device identifier of the ONT 1 separately by means of two message reporting, or may also send the ID information of the OLT 1 and the device identifier of the ONT 1 to the GSLB system once by means of a one-time transmission.
Alternatively, 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.
It should be noted that if a terminal device is connected to a network through two or more access devices, the terminal device also reports ID information of all the access devices connected thereto. For example, the ONT 1 is connected to the OLT 1 'through the OLT 1, and the upstream of the OLT 1' is connected to the metropolitan area network. Wherein the OLT 1' and the OLT 1 are two access devices in cascade, and the OLT 1' is a parent access device, and the OLT 1 is a child access device, in which case the ONT 1 transmits both the ID information of the OLT 1 and the ID information of the OLT 1' to the GSLB system or the network management device after acquiring these ID information. The ID information of the OLT 1 'includes a device name, a device number, a MAC address, an IP address, or other identifiers of the OLT 1'.
Similarly, the method further comprises:
403: other ONTs, such as ONT 2, ONT 3 and ONT 4, respectively send their own access information to the GSLB system when accessing the network.
For example, the ONT 2 sends access information of the ONT 2 to the GSLB system, where the access information of the ONT 2 includes: the device identification of the ONT 2 and the ID information of the OLT 1 to which it has access. Similarly, the access information reported by the ONT 3 includes: the device identification of the ONT 3 and the ID information of the accessed OLT 2; the access information reported by the ONT 4 comprises the following steps: the device identification of the ONT 4 and the ID information of the OLT 2 to which it has access. As shown by the dotted line in fig. 9, access information transmission links are reported to the GSLB system for each ONT. Each ONT can periodically report various access information, and the GSLB system periodically acquires the access information reported by each ONT.
404: the GSLB system receives the ID information of the access equipment and the equipment identification of each terminal equipment sent by each terminal equipment, and obtains the network topology structure according to the information to generate the network topology structure record list.
For example, at time t1, after receiving the device identifier of the ONT 1 and the ID information of the OLT 1 sent by the ONT 1, the GSLB system obtains the following information: OLT 1 associates ONT 1 downstream, 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 from the ONTs 2 to 4, as shown in the following table 3.
Table 3, network topology record table
Device identification of a node Device identification of downstream nodes
OLT
1 ONT 1、ONT 2
OLT 2 ONT 3、ONT 4
Optionally, since table 3 only includes the device identifiers of the ONTs and the topological structure relationships between each ONT device and the device identifier of the OLT, where the topological structure relationships are obtained by reporting by the PCDN node of each terminal, the network topology record table may also be referred to as a PCDN node list.
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 the ONTs, thereby preparing for searching for a target node connected under the same OLT, and helping to quickly find a target ONT having the shortest transmission path with the requested ONT.
A second possible implementation is: and obtaining the network topology structure record table through network management equipment, 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 in a vicinity of the metropolitan area network, which is not limited in this embodiment. In addition, alternatively, the network management device may be simply referred to as a network management device.
And the network management equipment is used for obtaining the connection relation of each node in the whole PCDN system architecture and obtaining the network topology structure according to the connection relation. For example, when the ONT 1 is connected to the OLT1, the ONT 1 notifies the network management device of the access information, and after the network management device receives the access information, the network management device sends the device identifier of the ONT 1 and the ID information of the OLT1 to the GSLB system.
In a specific example, as shown in fig. 11, the method includes:
601: when the OLT1 detects that the ONT 1 is connected to the network, the OLT1 transmits ID information of the OLT1 to the network management device, where the ID information of the OLT1 is used to uniquely identify the identity of the OLT 1.
602: and the ONT 1 sends the equipment identifier of the ONT 1 to the network management equipment.
Correspondingly, the network management device receives the ID information of the OLT1 and the device identifier of the ONT 1.
603: the network management device receives access information of other network devices, such as ONT 2 to ONT 4, OLT 2 and BRAS, and sends the access information of the network devices.
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.
Table 4, network topology record table
Device identification of a node Device identification of upstream nodes Device identification of downstream nodes
OLT
1 BRAS 1 ONT 1、ONT 2
OLT 2 BRAS 1 ONT 3、ONT 4
605: and the network management equipment sends the network topology structure record table to a GSLB system. Correspondingly, the GSLB system receives a topology structure record table of the current network sent by the network equipment.
For example, when the ONT1 is connected to the OLT1, the ONT1 notifies the network management device of the access information, and the network management device notifies the GSLB system of the access information of the connection between the ONT1 and the OLT1 after receiving the access information.
Furthermore, the method further comprises: when detecting that a new ONT is accessed to the network, the network management equipment also updates the network topology structure to generate a new network topology structure record table.
In this embodiment, the GSLB system obtains the network topology record table in a manner of reporting by the network management device, thereby providing convenience for searching the target node with the shortest path with the request end.
In addition, network topology structure is dynamically obtained by using network management equipment, access information reported by all nodes is prevented from being counted and processed at the GSLB system side, operation load at the GSLB system side is saved, and transmission cost for transmitting access information to the GSLB system by each node is reduced.
The process of obtaining the node storage data record table in step 202 is described below.
After obtaining the network topology record table in step 404 or step 605, the method further includes:
202-1: and acquiring all access devices in the network and PCDN nodes connected with the downstream of each access device according to the network topology structure record table.
Wherein the number of PCDN nodes connected downstream of each access device may be one or more.
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 record table, and acquires all ONTs connected downstream of the OLT 1.
202-2: the first data is stored on the PCDN node to which each access device is connected.
Specifically, the computing function of the preset algorithm is started, and one or more ONTs connected downstream of the OLT 1 are selected to store first data corresponding to the first data identifier. The first data identification may be represented by "data ID 1".
Optionally, the GSLB system stores the first data on a PCDN node to which each access device is connected, for example, as shown in table 4 above, where the network topology record table includes two access devices, OLT 1 and OLT 2, and stores the first data corresponding to the program 1 in the ONT 2 and the ONT 4 respectively. Alternatively, the first data may also be stored on a plurality of PCDN nodes to which each access device is connected. Such as storing said first data in ONT3 and ONT 4 connected downstream of the OLT 2.
202-3: and establishing a corresponding relation between the equipment identifier of the node storing the first data and the data identifier of the first data, and generating a data record table stored by each node according to the corresponding relation.
The data identifier of the first data may be represented as data ID1, where the first data is data corresponding to video program 1, as shown in table 5.
Table 5, each node stores data record table
Node device identification Data identification
ONT
2 Data ID1
ONT
4 Data ID1
In addition, when there are a plurality of data, the plurality of data may be stored in different ONTs, respectively. Specifically, if the hot spot of a program is high, the GSLB system stores the data corresponding to the program in two or more ONTs under the same OLT. For example, 3 ONTs, namely, ONT 1, ONT 4 and ONT 7, are connected downstream of the OLT 1, and the first data can be stored in the ONT 1, the ONT 4 and the ONT 7. And different data can be represented by different data IDs, resulting in a data record table stored by each node, as shown in table 6.
Table 6, each node stores data record table
Node device identification Data identification
ONT
1、ONT 4、ONT 7 Data ID1
ONT
2、ONT 5、ONT 8 Data ID2
ONT
3、ONT 6、ONT 9 Data ID3
…… ……
The present embodiment does not limit the number of ONTs stored per data.
In addition, the above 202-2 further includes: the first data is stored on one or more OLTs, such as on OLT1 and OLT 2.
After the configuration of the data record table stored in each node is completed, the method described in steps 201 to 203 in the foregoing embodiment may be performed.
For example, in an example, when a first request message sent by the ONT1 is received, according to a first data identifier in the first request message, such as data ID1, the device identifier of the node storing the first data is searched in the node storing data record table. As shown in table 5 above, the devices storing the data ID1 have ONT 2 and ONT 4. And then searching all ONTs connected downstream of the OLT1 in the network topology structure record table according to the device identifier of the ONT1 carried in the first request message, wherein as shown in the table 3 or the table 4, the devices connected downstream of the OLT1 have ONT 2 and ONT1 and have no ONT4, so that the determined target node is the ONT 2. Finally, the IP address of the ONT 2 is transmitted to the ONT1 so that the ONT1 establishes a transmission path with the ONT 2 and the transmission path established by the ONT 2 and the ONT1 is the shortest transmission path.
Optionally, if the PCDN node connected downstream of the OLT 1 includes an ONT 5 in addition to the ONT2 and stores the first data in the ONT 5, which is found in the network topology record table, the system may select the ONT2 or the ONT 5 as the target node according to a preset rule, where the preset rule includes, but is not limited to, a random rule, a polling rule, a weight poll rule, an address nearest priority rule, and the specific selection rule and the specific selection method are not limited in this embodiment.
Embodiments of the apparatus corresponding to the above-described method embodiments are described below.
Fig. 12 is a schematic structural diagram of a device connection apparatus 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, e.g. a processing chip or a processing circuit. And the apparatus can implement the device connection method in the foregoing embodiment.
Specifically, as shown in fig. 12, the apparatus may include: a receiving unit 1201, a processing unit 1202, and a transmitting unit 1203. In addition, the apparatus may further include a storage unit or other unit or module.
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 requested by the first terminal device and a first data identifier, and the first data identifier indicates first data requested by the first terminal device; a processing unit 1202, configured to search a target node in a stored data record table according to the first data identifier, the first device identifier, and a connection relationship between devices in a network; a 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 a transmission path of the first data from the target node to the first terminal device is shortest.
In addition, the stored data record table includes at least one corresponding relation between the device identifier of the node storing the first data and the identifier of the first data.
Alternatively, the connection relationship of each device in the network may be represented by a network topology record table.
Optionally, a transmission path of the first data from the target node to the first terminal device is shortest, including: the target node and the first terminal device are directly or indirectly connected to the network through the same access device, in other words, ID information of the access device to which the target node is connected is the same as ID information of the access device to which the first terminal device is connected.
Furthermore, the target node may be a first access device, such as OLT 1, connected to the first terminal device.
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 ID information of an access device connected to each of the terminal devices. The processing unit 1202 is further configured to obtain a 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 access device.
Optionally, in another specific implementation manner of this embodiment, the processing unit 1202 is further configured to determine a first access device connected to the first terminal device according to a connection relationship of each device in the network, 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; and establishing a corresponding relation between the equipment identifier of the node storing the first data and the first data identifier, and generating the stored data record table according to the corresponding relation.
Optionally, the ID information of the access device includes: one or more of a device name, a device number, an IP address, a MAC address, etc. of the access device.
In addition, in a specific hardware implementation, the embodiment of the application further provides a network device, which may be a GSLB system, or a server, or an OLT, or a component integrated in the network device.
Fig. 13 shows a schematic structural diagram of a network device, which is a GSLB system, and may include: a processor 131, a memory 132, at least one communication interface 133. Wherein the processor 131, the memory 132, and the at least one communication interface 133 are coupled via a communication bus.
The processor 131 is a control center of the network device, and may cooperate with the communication interface 133 to communicate with devices, for example, including information interaction with each OLT, ONT, BRAS device, network management device, metropolitan area network, and other devices.
The processor 131 may be comprised of integrated circuits (Integrated Circuit, ICs), such as a single packaged IC, or may be comprised of packaged ICs that are connected to multiple identical 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), etc.
In addition, the processor 131 may also include a hardware chip, which may be an application specific integrated circuit (application specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD), or a combination thereof. The PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), general-purpose array logic (generic array logic, GAL), or any combination thereof. Optionally, 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 storing a network topology record table, storing data record tables for each node, device identification of the ONT, and ID information of the OLT, a first request message, a first indication message, and the like. In addition, the memory 132 has stored therein computer programs and code.
In particular, the memory 132 may include volatile memory (RAM), such as random access memory (Random Access Memory); non-volatile memory (non-volatile memory) may also be included, such as flash memory (flash memory), hard disk (HDD) or Solid State Drive (SSD), and memory 132 may also include a combination of the above types of memory.
The communication interface 133 uses any transceiver-like device for communicating with other devices or communication networks, such as ethernet, radio access network (radio access network, RAN), wireless local area network (Wireless Local Area Network, WLAN), virtual extensible local area network (Virtual Extensible Local Area Network, VXLAN), etc. In this embodiment, the communication interface 133 includes at least one interface.
In addition, the network device further comprises a mobile communication module, a wireless communication module and the like. The mobile communication module includes: and a module with wireless communication functions such as 2G/3G/4G/5G and the like. Further, filters, switches, power amplifiers, low noise amplifiers (low noise amplifier, LNA), etc. may also be included. The wireless communication module may provide solutions for wireless communication including wireless local area network (Wireless Local Area Network, WLAN), bluetooth (blue), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), etc. applied on network devices.
It should be understood that other more or fewer components may be included in the network device, 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 may be implemented in hardware, software, firmware, or any combination thereof.
When implemented in software, may be implemented in whole or in part in the form of a computer program product. For example, the receiving unit 1201 and the transmitting unit 1203 in the foregoing apparatus shown in fig. 12 may be implemented by the communication interface 133, the functions of the processing unit 1202 may be implemented by the processor 131, and the functions of the storage unit may be implemented by the memory 132.
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 identifier indicates first data requested by the first terminal device; the processor 131 searches for a target node in the data record table according to the first data identifier, the first device identifier and the connection relation between each device in the network, and then sends the IP address of the target node to the first terminal device through the communication interface 133.
The storage data record table comprises at least one corresponding relation between the equipment identifier of the node storing the first data and the first data identifier, the target node stores the first data, and the transmission path of the first data from the target node to the first terminal equipment is shortest.
In addition, the embodiment of the present application further provides a network system, which may have the same structure as any one of the network architectures shown in fig. 3 to 7 and fig. 9 to 10, and includes the following network devices: GSLB system, BRAS, network management equipment, servers, at least one OLT and at least one ONT, etc. The GSLB system, the server or the OLT is a network device according to the corresponding embodiment of fig. 13, and the device connection method in the foregoing embodiment may be implemented.
In the network system, the at least one ONT is used for sending a first request message to the GSLB system, wherein the first request message comprises a device identifier and a first data identifier of the first terminal device, and is also used for receiving an IP address of a target node sent by the GSLB system; and establishing 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. In addition, in a possible implementation manner, the method is further used for receiving ID information sent by the first access device, where the ID information of the first access device includes a device name, a device number, an IP address, a MAC address, and the like of the first access device; and the method is also used for sending the ID information of the first access equipment to the GSLB system.
In another possible implementation manner, the network management device is configured to obtain self device ID information sent by at least one OLT and an ONT in the system, obtain a network topology according to the ID information sent by the at least one OLT and the ONT, generate a network topology record table, and send the network topology record table to the GSLB system.
According to the system, network topology structures of all nodes are acquired at a network device side, so that when the system receives a request message sent by a certain terminal device, a target node with the shortest transmission path with the requested terminal device is searched according to the network topology structure, required data is transmitted to the requested terminal device by utilizing the shortest transmission path, and the situation that the backhaul traffic of video program content transmission is increased and the transmission delay is long due to the fact that the selected target node is far in the same network segment is avoided. The method has short data transmission path, so that the flow cost required by 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 comprising one or more computer program instructions. When loaded and executed by a computer, produces, in whole or in part, a flow or function as described in the various embodiments above. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus.
The computer program instructions may be stored in or transmitted from one computer readable storage medium to another, for example, by wired or wireless means from one network device, computer, server, or data center.
Wherein the computer program product and the computer program instructions may be located in a memory of the foregoing network device, so as to implement the method for device connection described in the embodiments of the present application.
Furthermore, in the description of the present application, unless otherwise indicated, "a 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, the words "first", "second", and the like are used to distinguish the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
The above-described embodiments of the present application are not intended to limit the scope of the present application.

Claims (11)

1. A method of device connection, the method comprising:
receiving a first request message sent by first terminal equipment, wherein the first request message comprises an equipment identifier of the first terminal equipment and a first data identifier, and the first data identifier indicates first data requested by the first terminal equipment;
searching a target node in a stored data record table according to the first data identifier, the device identifier of the first terminal device and the connection relation of each device in the network, wherein the stored data record table comprises the corresponding relation between the device identifier of at least one node storing the first data and the first data identifier, the target node stores the first data, and the transmission path of the first data from the target node to the first terminal device is shortest;
transmitting the IP address of the target node to the first terminal equipment;
before receiving the first request message sent by the first terminal device, the method further includes:
determining a first access device connected with the first terminal device according to the connection relation of each device in the network;
acquiring at least one node connected with the first access equipment;
Selecting one or more of the at least one node to store the first data;
establishing a corresponding relation between the equipment identifier of the node storing the first data and the first data identifier, and generating the stored data record table according to the corresponding relation;
the connection relation of each device in the network is represented by a network topology structure record table;
the network topology record table is obtained according to the following mode:
when the first access equipment detects that the first terminal equipment is accessed to a network, the ID information of the first access equipment is sent to network management equipment through the first access equipment, and the ID information of the first access equipment is used for uniquely identifying the identity of the first access equipment;
transmitting the equipment identifier of the first terminal equipment to the network management equipment through the first terminal equipment;
receiving access information of each network device sent by other network devices through the network management device;
generating the network topology structure record table through the network management equipment according to the equipment identification of at least one terminal equipment, the ID information of each access equipment and the access information of a broadband remote access server BRAS;
Receiving the network topology structure record table sent by the network management equipment;
the method further comprises the steps of: and when detecting that the new network equipment is accessed to the network, updating the network topology structure record table through the network management equipment.
2. The method of 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 a network through the same access device.
3. The method according to claim 1 or 2, wherein before receiving the first request message sent by the first terminal device, further comprises:
receiving equipment identification of at least one terminal equipment and ID information of access equipment connected with each terminal equipment;
and obtaining the connection relation of each device in the network according to the device identification of the at least one terminal device and the ID information of each access device.
4. A method according to any of claims 1-3, wherein the target node is a first access device.
5. A method according to claim 3, 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.
6. A device connection apparatus, the apparatus comprising:
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 first data requested by the first terminal device;
the processing unit is used for searching a target node in a stored data record table according to the first data identifier, the device identifier of the first terminal device and the connection relation of each device in the network, wherein the stored data record table comprises the corresponding relation between the device identifier of at least one node storing the first data and the first data identifier, the target node stores the first data, and the transmission path of the first data from the target node to the first terminal device is shortest;
a sending unit, configured to send an IP address of the target node to the first terminal device;
the processing unit is further configured to determine, before receiving a first request message sent by a first terminal device, a first access device connected to the first terminal device according to a connection relationship between devices in the network, obtain at least one node connected to the first access device, and select one or more of the at least one node to store the first data; establishing a corresponding relation between the equipment identifier of the node storing the first data and the first data identifier, and generating the stored data record table according to the corresponding relation;
The connection relation of each device in the network is represented by a network topology structure record table;
the receiving unit is further configured to obtain the network topology record table, specifically: the receiving unit is adapted to receive the received signal,
when the first access equipment detects that the first terminal equipment is accessed to a network, the ID information of the first access equipment is sent to network management equipment through the first access equipment, and the ID information of the first access equipment is used for uniquely identifying the identity of the first access equipment;
transmitting the equipment identifier of the first terminal equipment to the network management equipment through the first terminal equipment;
receiving access information of each network device sent by other network devices through the network management device;
generating the network topology structure record table through the network management equipment according to the equipment identification of at least one terminal equipment, the ID information of each access equipment and the access information of a broadband remote access server BRAS;
receiving the network topology structure record table sent by the network management equipment;
when detecting that a new network device accesses to a network, the receiving unit is further configured to update the network topology record table through the network management device.
7. The apparatus of claim 6, wherein a 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 a network through the same access device.
8. The apparatus according to claim 6 or 7, wherein,
the receiving unit 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 ID information of an access device connected to each terminal device;
the processing unit is further configured to obtain a 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 access device.
9. The apparatus according to any of claims 6-8, wherein the target node is a first access device.
10. The apparatus of claim 8, 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.
11. A network device comprising a processor and a memory,
the memory is used for storing computer program instructions;
the processor configured to execute the instructions stored in the memory, to cause the network device to perform the method of any one of claims 1 to 5.
CN202010989992.0A 2020-09-18 2020-09-18 Equipment connection method, device and equipment Active CN114285788B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010989992.0A CN114285788B (en) 2020-09-18 2020-09-18 Equipment connection method, device and equipment
PCT/CN2021/118639 WO2022057846A1 (en) 2020-09-18 2021-09-16 Device connection method, apparatus, and device

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN114285788A CN114285788A (en) 2022-04-05
CN114285788B true CN114285788B (en) 2023-06-20

Family

ID=80776449

Family Applications (1)

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

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116366499B (en) * 2023-05-26 2023-08-15 中国工商银行股份有限公司 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
CN105871591A (en) * 2015-12-21 2016-08-17 乐视云计算有限公司 Method and device for distributing CDN (Content Delivery Network) addresses
WO2017107542A1 (en) * 2015-12-22 2017-06-29 乐视控股(北京)有限公司 Video program obtaining method, device and system
WO2018068635A1 (en) * 2016-10-13 2018-04-19 中国移动通信有限公司研究院 Scheduling method, server, first peer node and computer-readable storage medium
CN107959704A (en) * 2016-10-18 2018-04-24 中国移动通信有限公司研究院 A kind of data processing method and home gateway
CN109561141A (en) * 2018-11-21 2019-04-02 中国联合网络通信集团有限公司 A kind of selection method and equipment of CDN node
CN109982152A (en) * 2019-01-15 2019-07-05 中国联合网络通信集团有限公司 P2P CDN method for processing business, intelligent gateway and CDN platform

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102640472B (en) * 2009-12-14 2016-09-14 瑞典爱立信有限公司 dynamic cache selection method and system
TW201312980A (en) * 2011-05-03 2013-03-16 Interdigital Patent Holdings 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
US20170180470A1 (en) * 2015-12-21 2017-06-22 Le Holdings (Beijing) Co., Ltd. Method and electronic device for sending CDN address
CN105657063B (en) * 2016-03-23 2019-06-18 北京百度网讯科技有限公司 Data download method and device
CN110839006A (en) * 2018-08-17 2020-02-25 阿里巴巴集团控股有限公司 Network scheduling method and device and electronic equipment
CN110636339B (en) * 2019-09-30 2022-11-15 北京字节跳动网络技术有限公司 Scheduling method and device based on code rate and electronic equipment

Patent Citations (6)

* 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
WO2017107542A1 (en) * 2015-12-22 2017-06-29 乐视控股(北京)有限公司 Video program obtaining method, device and system
WO2018068635A1 (en) * 2016-10-13 2018-04-19 中国移动通信有限公司研究院 Scheduling method, server, first peer node and computer-readable storage medium
CN107959704A (en) * 2016-10-18 2018-04-24 中国移动通信有限公司研究院 A kind of data processing method and home gateway
CN109561141A (en) * 2018-11-21 2019-04-02 中国联合网络通信集团有限公司 A kind of selection method and equipment of CDN node
CN109982152A (en) * 2019-01-15 2019-07-05 中国联合网络通信集团有限公司 P2P CDN method for processing business, intelligent gateway and CDN platform

Also Published As

Publication number Publication date
CN114285788A (en) 2022-04-05
WO2022057846A1 (en) 2022-03-24

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
KR101374577B1 (en) Method and apparatus for sending and receiving multicast packets
US8630183B2 (en) Packet transfer system
CN103873366A (en) Aggregation network with centralized control
CN104521189B (en) The network terminal obtains method, equipment, the system of business
US8649375B2 (en) Method and devices for multicast distribution optimization
CN111510365B (en) Wi-Fi data packet-based device bridging cloud method, device and medium
US9468025B2 (en) System and method for configuring device connections in an extended network environment
CN101674139A (en) Method, device and system for perceiving service provider from optical network device
CN110089146A (en) Device shaping in communication network
CN114285788B (en) Equipment connection method, device and equipment
US9900804B2 (en) Method and device for processing to share network resources, and method, device and system for sharing network resources
US9497076B2 (en) Dual-stack support for demarc auto configuration (DAC) mechanism in DOCSIS provisioning of EPON (DPOE) network
CN111935697B (en) eSIM discovery service method, discovery server and eSIM terminal
CN103188132A (en) Instant messaging method and system based on content distribution network (CDN)
CN101394339A (en) Method, system and apparatus for routing implementation in peer-to-peer network
CN102487396A (en) User position determining method and system
US10862963B2 (en) Method and system for automatic discovery of tunnel endpoints in a broadcast network
JP2020155888A (en) Subscriber line aggregation device, pon station side device, pon system and subscriber line aggregation device control method
CN109936603B (en) Non-direct connection network communication method based on HTTP
SG178407A1 (en) Method and apparatus for constructing seed group in peer-to-peer application and method for using seed group
Sah et al. Gnutella-based P2P applications for SDN over TWDM-PON architecture
Liem et al. Peer-to-peer application-aware mechanism for enhancing video streaming in enhanced EPON
WO2022206391A1 (en) Path subscription method, apparatus and system, and storage medium

Legal Events

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