CN112291103B - Network scheduling method, device, electronic equipment and storage medium - Google Patents

Network scheduling method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112291103B
CN112291103B CN202011260375.3A CN202011260375A CN112291103B CN 112291103 B CN112291103 B CN 112291103B CN 202011260375 A CN202011260375 A CN 202011260375A CN 112291103 B CN112291103 B CN 112291103B
Authority
CN
China
Prior art keywords
equipment
service
network
service equipment
determining
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
CN202011260375.3A
Other languages
Chinese (zh)
Other versions
CN112291103A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011260375.3A priority Critical patent/CN112291103B/en
Publication of CN112291103A publication Critical patent/CN112291103A/en
Application granted granted Critical
Publication of CN112291103B publication Critical patent/CN112291103B/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
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/253Routing or path finding in a switch fabric using establishment or release of connections between ports
    • H04L49/254Centralised controller, i.e. arbitration or scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/28Restricting access to network management systems or functions, e.g. using authorisation function to access network configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/54Store-and-forward switching systems 
    • H04L12/56Packet switching systems
    • H04L12/5601Transfer mode dependent, e.g. ATM
    • H04L2012/5678Traffic aspects, e.g. arbitration, load balancing, smoothing, buffer management
    • H04L2012/5679Arbitration or scheduling

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a network scheduling method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving an access request sent by first equipment, wherein the access request comprises first identification information of the first equipment; determining identity attributes of the first equipment in the media service according to the first identification information; determining target service equipment in a network node pool corresponding to the identity attribute, wherein the service equipment of different network node types belong to different network node pools; and sending the access request to the target service equipment for processing. By implementing the embodiment of the application, the search range of the service equipment can be reduced, the search times are effectively reduced, and the scheduling process of the network node is simplified, so that the service equipment meeting the requirements can be faster hit, and the scheduling response speed is improved.

Description

Network scheduling method, device, electronic equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a network scheduling method, a device, a service device, and a storage medium.
Background
The content delivery network (Content Delivery Network, CDN) is an intelligent virtual network built on top of an existing network, generally comprising a central node and edge nodes deployed around the site. The CDN network can dispatch the user request to a proper network node for processing, so that the user can obtain the required content nearby, the network congestion is reduced, and the access response speed and the hit rate of the user are improved.
Existing CDN scheduling algorithms generally include two methods: an IP matching method for performing a longest match based on an internet protocol (Internet Protocol, IP) address of the user equipment; and a URL matching method for regular matching based on the user uniform resource locator (Uniform Resource Locator, URL). However, the IP matching method requires a large number of accurate IP matching correspondences to be preconfigured, resulting in lower matching efficiency, thereby reducing the scheduling response speed. The complexity of the algorithm of the URL matching method is high, and the dispatching response speed is also easy to influence.
Disclosure of Invention
The embodiment of the application discloses a network scheduling method, a network scheduling device, electronic equipment and a storage medium, which can improve the scheduling response speed.
The embodiment of the application discloses a network scheduling method, which comprises the following steps: receiving an access request sent by first equipment, wherein the access request comprises first identification information of the first equipment; determining identity attributes of the first equipment in the media service according to the first identification information; determining target service equipment in a network node pool corresponding to the identity attribute, wherein the service equipment of different network node types belong to different network node pools; and sending the access request to the target service equipment for processing.
The embodiment of the application discloses a network scheduling device, which comprises: the receiving module is used for receiving an access request sent by the first equipment; the access request comprises first identification information, wherein the first identification information is used for identifying identity attributes of the first equipment in a media service; a first determining module, configured to determine an identity attribute of the first device in a media service according to the first identification information; a second determining module, configured to determine, in a network node pool corresponding to the identity attribute, a target service device, where service devices of different network node types belong to different network node pools; and the sending module is used for sending the access request to the target service equipment for processing.
The embodiment of the application discloses electronic equipment, which comprises: the system comprises a memory and a processor, wherein the memory stores a computer program, and the computer program is executed by the processor to enable the processor to realize any method disclosed in the embodiment of the application.
A fourth aspect of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to perform any of the methods disclosed in the first aspect of the embodiments of the present application.
Compared with the prior art, the embodiment of the application has the following beneficial effects:
in the embodiment of the application, when the access request sent by the first device is received, the identity attribute of the first device in the media service can be determined according to the first identification information carried in the access request, and the network node pool corresponding to the identity attribute of the first device is determined, so that the target service device for processing the access request can be determined in the corresponding network node pool. After the access request is received, searching the target service equipment in the network node pool corresponding to the identity attribute of the first equipment instead of searching in all the service equipment included in the CDN network, the range of searching can be reduced, the searching times are effectively reduced, the scheduling process of the network node is simplified, and therefore the service equipment meeting the requirements can be faster hit, and the scheduling response speed of the service equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a network architecture diagram of a CDN network disclosed in an embodiment of the present application;
fig. 2 is a schematic flow chart of a network scheduling method disclosed in an embodiment of the present application;
FIG. 3 is a flow chart of another method of network scheduling disclosed in an embodiment of the present application;
fig. 4 is a flow chart of a method for updating a network node pool according to an embodiment of the present application;
FIG. 5 is a flow chart of another method of network scheduling disclosed in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a network scheduling device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be noted that the terms "comprising" and "having" and any variations thereof in the embodiments and figures herein are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
The embodiment of the application discloses a network scheduling method, a network scheduling device, electronic equipment and a storage medium, which can improve the scheduling response speed. The following will describe in detail.
Referring to fig. 1, fig. 1 is a network architecture diagram of a CDN network according to an embodiment of the present disclosure. As shown in fig. 1, the CDN network may include one or more central nodes 10, each central node 10 may be communicatively connected to one or more edge nodes 20, and a plurality of central nodes 10 included in the CDN network may constitute a central node cluster. Both the central node 10 and the edge node 20 are service devices in the CDN network, where the edge node 20 may be Cache service devices distributed in different regions, such as a Cache server (Cache), and may be used to Cache data.
Each of the central node 10 and the edge node 20 included in the CDN network may be communicatively connected to the scheduling device 30. The scheduling device 30 may be a service device such as a cloud server, and is configured to receive an access request sent by a terminal device 40 such as a personal computer and a smart phone, and schedule a center node and an edge node included in the CDN network according to the received access request. As shown in fig. 1, the scheduling device 30 may be set up independent of the CDN network. In an embodiment, the CDN network may also include a scheduling device 30, where the scheduling device 30 may be a service device that performs operations such as node scheduling, content delivery, and the like in the CDN network, and is not limited in particular. Furthermore, the terminal device 40 can also be connected in communication with the central node 10 and the edge node 20, respectively, for data transmission based on the communication connection.
Referring to fig. 2, fig. 2 is a flow chart of a network scheduling method according to an embodiment of the present application, and the method may be applied to the foregoing scheduling device. As shown in fig. 2, the method may include the steps of:
210. and receiving an access request sent by the first equipment.
In the embodiment of the present application, the first device may be a terminal device such as a personal computer, a smart phone, a smart tablet, but is not limited thereto. The first device may send the access request when requesting to transmit the media content to the CDN network, or may send the access request when requesting to obtain the media content from the CDN network. Wherein, when the first device requests to transmit the media content to the CDN network, the identity attribute of the first device in the media service may be a content provider (or producer) of the media service, such as a hosting client of a live platform, a teacher client in a net lesson system, and the like; when the first device requests to obtain media content from the CDN network, the identity attribute of the first device in the media service may be a content demander (or consumer) of the media service, such as a client of the streaming media playing platform, a student client in the online class system, and the like.
The first device may identify an identity attribute in the media service by the currently logged-in user account, such that first identification information characterizing the identity attribute is written in the access request. Alternatively, the client running on the first device may itself be provided with an identity attribute, e.g. the identity attribute of the anchor client is the content provider and the identity attribute of the viewer client is the content demander. The first device may determine an identity attribute of the first device in the media service according to an identity attribute corresponding to a client running on the first device, so as to write first identification information for characterizing the identity attribute into the access request. The identity attribute of the first device in the media service may also be determined by the first device in other possible manners, which are not limited in the embodiments of the present application.
It should be noted that, the access request sent by the first device may further include an identifier related to the request of the first device for transmitting to the CDN network or for requesting the media content acquired from the CDN network. When the identity attribute of the first device in the media service is the content provider, the access request should include the identifier such as the media content file or the access address that the first device requests to transmit to the CDN network, but is not limited to this. When the identity attribute of the first device in the media service is a content demander, the access request should include an identifier such as a content Identifier (ID) or an access address of the media content acquired from the CDN network by the first device, but is not limited thereto.
The first device may provide a man-machine interaction interface for accessing the media resource, and the first device may detect a user operation input through the man-machine interaction interface and send an access request under the trigger of the user operation. For example, a play connection for a video file may be displayed on the first device, and when the user selects the play connection, the first device sends an access request to the scheduling device. Alternatively, the first device may also send the access request to the scheduling device according to a preset update policy, which may include, but is not limited to, a timed transmission, etc. For example, a teacher client in the net lesson system may send access requests to the dispatch device every 30 minutes.
220. And determining the identity attribute of the first equipment in the media service according to the first identification information carried by the access request.
In the embodiment of the application, after receiving the access request, the scheduling device may analyze the access request to obtain the first identification information carried in the access request, so as to determine the identity attribute of the first device in the media service according to the first identification information. Alternatively, the identity attribute may include a content provider, a content demander, and the like.
230. And determining the target service equipment in the network node pool corresponding to the identity attribute.
In this embodiment of the present application, the scheduling device may maintain at least two different network node pools, where the network node pools may be a set formed by one or more service devices, each node pool may include at least one service device, service devices of different network node types belong to different network node pools, and each service device included in the same network node pool belongs to the same network node type. For example, a central node pool and an edge node pool may be maintained, where the service devices included in the central node pool are all central nodes in the CDN network, and the service devices included in the edge node pool are all edge nodes in the CDN network.
In one embodiment, the scheduling device may obtain device information sent by each service device, which may include, but is not limited to, the network node type, operating status, geographic location, load, etc. of the service device. When receiving the equipment information sent by one service equipment to be classified, the scheduling equipment can maintain the service equipment to be classified into a network node pool corresponding to the network node type. For example, when the type of the network node reported by the service equipment to be classified is a central node, the service equipment to be classified is maintained in a central node pool; and when the type of the network node reported by the service equipment to be classified is an edge node, maintaining the service equipment to be classified into an edge node pool. Optionally, after determining the network node type of the service device to be classified and before maintaining the service device to be classified in the network node pool corresponding to the network node type, whether the service device to be classified is an available service device may be further determined, and when the service device to be classified is an available service device, the service device to be classified is maintained in the network node pool corresponding to the network node type. The available service devices may refer to service devices that report that the running state is normal and/or the load does not reach the full load, but are not limited thereto.
In one embodiment, when the identity attribute of the first device is a content provider, the scheduling device may determine a target service device from the service devices included in the central node pool, that is, the target service device is a central node in the CDN network.
In one embodiment, when the identity attribute of the first device is a content demander, the scheduling device may determine a target service device from the service devices included in the edge node pool, that is, the target service device is an edge node in the CDN network.
240. And sending the access request to the target service equipment for processing.
In an embodiment of the present application, when the identity attribute of the first device is a content provider, the processing, by the target service device, of the access request may include, but is not limited to: and acquiring corresponding media content from the first device according to the media content identifier carried by the access request, so that the first device can upload the media content to the service device. When the identity attribute of the first device is a content demander, the target service device processing the access request may include, but is not limited to: and transmitting the corresponding media content to the first device according to the media content identifier carried by the access request, so that the service device can transmit the media content to the first device.
For example, taking a net class scenario as an example, when the first device is a teacher client, the teacher client is used as a media content provider, and needs to upload the collected video stream data to the service device, and then the teacher client sends an access request to the scheduling device. After receiving the access request sent by the teacher client, the scheduling device determines a certain service device (center node) from the center node pool as a target service device according to first identification information carried in the access request and used for indicating the teacher client as a content provider, and sends the access request sent by the teacher client to the target service device for processing, so that the target service device (center node) obtains video stream data uploaded by the teacher client. The central node in the CDN has a distribution function, and can distribute the acquired video stream data to each edge node of the CDN. When the first device is a student client, the student client can access the CDN network. And the student client is used as a media content demander and needs to request to acquire video stream data from the service equipment, and then the student client sends an access request to the scheduling equipment. After receiving an access request sent by a student client, the scheduling device determines a certain service device (edge node) from an edge node pool as a target service device according to first identification information which is carried in the access request and is used for indicating that the student client is a content demander, and sends the access request sent by the student client to the target service device for processing, so that the target service device (edge node) sends video stream data to the student client.
Therefore, in the embodiment of the application, the operation of searching the service equipment according to the access request can be preprocessed by maintaining the network node pool, after the access request is received, the range of searching can be narrowed, the searching times are effectively reduced, the scheduling process of the network node is simplified, and therefore the service equipment meeting the requirements can be faster hit, and the scheduling response speed is improved. In addition, the access requests sent by the content provider can be distributed to the service devices included in the central node pool for processing, the access requests sent by the content demander are distributed to the service devices included in the edge node pool for processing, the access requests sent by the devices with different identity attributes can be accurately distributed to different service devices for processing, and the accuracy of processing the access requests is ensured.
Referring to fig. 3, fig. 3 is a flow chart illustrating another network scheduling method according to an embodiment of the present application, and the method may be applied to the foregoing scheduling device. As shown in fig. 3, the network scheduling method may include the steps of:
310. and receiving an access request sent by the first equipment.
320. And determining the identity attribute of the first equipment in the media service according to the first identification information carried by the access request.
In the embodiment of the present application, the implementation manners of step 310 to step 320 may refer to the foregoing embodiments, and the following descriptions are omitted.
330. And when the identity attribute of the first equipment is a content demander, determining a network virtual room where the first equipment is positioned according to the second identification information carried by the access request.
In an embodiment of the present application, the access request sent by the first device may further include second identification information for identifying a network virtual room in which the first device is located. A network virtual Room may refer to an instance established on a Server device such as a Room Server (Room Server), where data is visible to devices in the same network virtual Room, and where data in the network virtual Room is shared among the devices. Content requesters may be included within the same network virtual room, as well as content providers. For example, in a live scenario, one live room may be one network virtual room. The anchor client that establishes the live room and the one or more spectator clients that enter the live room are within the same network virtual room. Each network virtual room may be provided with a unique room identification so as to distinguish different network virtual rooms, and the second identification information carried in the access request may be the room identification.
340. And acquiring a historical scheduling result corresponding to the second equipment in the network virtual room.
In the embodiment of the application, the scheduling device may record a historical scheduling result of each device in the network virtual room where the first device is located, where the historical scheduling result of each device includes related information of a service device allocated for the device. The second device and the first device are the same as the content demander.
350. And determining the service equipment pointed by the historical scheduling result corresponding to the second equipment from the service equipment included in the edge node pool as target service equipment.
In the embodiment of the application, the service equipment which is allocated to the content demander (namely the second equipment) in the same network virtual room at the last time can be directly used as the target service equipment, the step of screening the service equipment included in the edge node pool one by one is not required to be executed, and the efficiency of determining the target service equipment from the edge node pool is improved. In addition, the second device and the first device are the same as the content demander, and the service device distributed to the second device is used as the target service device of the first device, so that the success rate of the target service device for processing the access request can be improved.
By way of example, taking a net class scenario as an example, a teacher client and a plurality of student clients which access the same virtual class form a network virtual room, the teacher client is a content provider of media content, and the student clients are content requesters. At time T1, the student client B1 has accessed the network virtual room, and the service device allocated by the scheduling device for the student client B1 is an edge node N1 in the edge node pool. At the time T2, the student client B2 sends an access request to the scheduling device, the scheduling device determines that the student client B2 and the student client B1 are in the same network virtual room according to second identification information carried by the access request, and determines that the student client B2 is a content demander according to first identification information carried by the access request, and then the scheduling result of the student client B1 is obtained. And the dispatching result of the student client B1 shows that the distributed service equipment is the edge node N1, and the dispatching equipment determines the edge node N1 as the target service equipment of the student client B2.
360. And sending the access request to the target service equipment for processing.
In the embodiment of the application, when the identity attribute of the first device is determined to be the content demander according to the first identification information carried by the access request, the network virtual room where the first device is located can be determined according to the second identification information at the same time of the access request, so that the target service device is determined from the edge node pool by using the historical scheduling results of other devices included in the network virtual room where the first device is located, the service devices included in the edge node pool do not need to be screened one by one, and the efficiency of determining the target service device from the edge node pool is improved.
In one embodiment, the edge node pool maintained by the scheduling device may further include at least two geographic area groups, where different geographic area groups correspond to different geographic areas. That is, the service devices included in the pool of edge nodes may be grouped by geographic region. The area range corresponding to each geographical area group can be set according to actual service requirements. For example, the service devices included in the pool of edge nodes may be grouped by province, one province for each geographic region group.
Illustratively, a method for updating a pool of network nodes disclosed in an embodiment of the present application will now be described with reference to fig. 4. As shown in fig. 4, the method for updating the network node pool may include the following steps:
410. and receiving the equipment information sent by the service equipment to be classified.
In embodiments of the present application, the device information may include, but is not limited to: network node type, operational status, geographic location, load, etc.
420. Classifying according to the type of the network node included in the equipment information; if the network node type is the center node, then execute step 430; if the network node type is edge node, then step 450 is performed.
430. Judging whether the service equipment to be classified is available or not; if so, go to step 440; if not, the process is ended.
In the embodiment of the application, the information such as the running state and the load of the service equipment to be classified can be read from the equipment information, and when the running state is normal and/or the load does not reach the full load, the service equipment to be classified can be determined to be available; when the operation state is abnormal or the load has reached the full load, it may be determined that the service device to be classified is not available. In the embodiment of the present application, whether the service device to be classified is available may be determined by an operation state or a load, but is not limited thereto.
440. And maintaining the service equipment to be classified to a central node pool.
In the embodiment of the present application, maintaining the service device to be classified to the central node pool may refer to adding the device information of the service device to be classified to a data set corresponding to the central node pool.
450. Judging whether the service equipment to be classified is available or not; if available, steps 460-470 are performed; if not, the process is ended.
In the embodiment of the present application, the implementation of step 450 may refer to step 430, and the following description is omitted.
460. And reading out the geographic position of the service equipment to be classified from the equipment information, and determining geographic area groups corresponding to the geographic position of the service equipment to be classified.
In an embodiment of the present application, the geographic area group corresponding to the geographic location of the service device to be classified may refer to that the geographic location of the service device to be classified is within the geographic area of the geographic area group. For example, the geographic location of the service device to be classified is guangzhou, and the geographic region group corresponding to the geographic location of the service device to be classified is a group of guangdong province.
470. And maintaining the service equipment to be classified into geographic area groups corresponding to the geographic positions of the service equipment to be classified.
In the embodiment of the application, the service equipment to be classified is maintained in the corresponding geographical area group, and the equipment information of the service equipment to be classified can be added into the data set pointed by the corresponding geographical area group.
By receiving the device information reported by the service device, the edge node and the center node can be effectively divided into two different types of network node pools, so that the range to be searched when an access request is received can be reduced. In addition, for the service devices in the edge node pool, the service devices can be further grouped according to the geographic position, so that the search range is further narrowed when an access request is received, and the service devices which are closer to the first device can be quickly searched in the group.
Based on the description of the network node pool in the foregoing embodiment, please refer to fig. 5, fig. 5 is a schematic flow chart of another network scheduling method disclosed in the embodiment of the present application, and the method may be applicable to the foregoing scheduling device. As shown in fig. 5, the method may include the steps of:
501. and receiving an access request sent by the first equipment.
503. Determining identity attribute of the first equipment in the media service according to the first identification information carried by the access request; executing step 505 when the identity attribute is a content provider; when the identity attribute is the content demander, step 507 is executed.
505. The least loaded service device in the central node pool is determined to be the target service device and step 523 is performed.
In the embodiment of the application, the service equipment with the least load in the central node pool is determined as the target service equipment, so that the CDN network can achieve the effect of load balancing, and the response speed of the CDN network to the access request is improved.
It should be noted that, when determining the target service device from the service devices included in the central node pool, the target service device may be selected according to the load of each service device. The service device with the least load may be determined as the target service device as shown in step 505, or the service device with the load lower than the preset threshold in the central node pool may be determined as the target service device, but is not limited thereto.
507. And determining the network virtual room where the first equipment is located according to the second identification information carried by the access request.
509. Judging whether a history scheduling result corresponding to the second device in the network virtual room is obtained, if yes, executing step 511; if not, go to step 517.
In the embodiment of the application, when the first device is the first content demander in the network virtual room where the first device sends the access request to the scheduling device, the historical scheduling result of the second device does not exist, so that the scheduling device cannot acquire the historical scheduling result of the second device.
511. And determining the service equipment pointed by the second scheduling result from the service equipment included in the edge node pool.
513. Judging whether service equipment pointed by a scheduling result of the second equipment is available or not; if available, then step 515 is performed; if not, step 517 is performed.
In the embodiment of the application, the scheduling device may read the load and/or the running state of the service device pointed by the scheduling result of the second device from the device information included in the edge node pool, and determine whether the pointed service device is available according to the load and/or the running state. For example, when the operating state is normal or the load does not reach full load, it may be determined that the service device pointed to is available.
When the service device pointed by the scheduling result of the second device is available, the scheduling device may directly execute step 515 described below, so that when it is verified that the service device is available, the service device allocated to the content demander in the same network virtual room last time is directly used as the target service device, without screening the service devices included in the edge node pool one by one, and efficiency of determining the target service device from the edge node pool is improved.
When the service device pointed to by the scheduling result of the second device is not available, the scheduling device may perform the following steps 517-521, so that the disaster recovery capability of the CDN system may be increased, and the access request may still be processed when a part of the service devices are not available.
It should be noted that the operation of determining whether the pointed service device is available in step 513 is not necessary. In some embodiments, after determining the service device to which the second scheduling result points from the service devices included in the edge node pool, step 515 described below may be directly performed.
515. The service device to which the scheduling result of the second device is directed is determined as the target service device, and step 523 is performed.
517. And determining the geographic position of the first equipment according to the third identification information of the first equipment carried by the access request.
In the embodiment of the application, the third identification information of the first device may be used to identify the geographic location of the first device. For example, the third identification information may be a network address such as an IP address, and the scheduling device may maintain an IP address database, where the IP address database may include a correspondence between IP addresses and geographic locations, and the scheduling device may find out the geographic location corresponding to the IP address of the first device from the IP address database.
519. A target geographical area group corresponding to the geographical location of the first device is determined from the respective geographical area groups included in the pool of edge nodes.
In the embodiment of the present application, the geographic location of the first device is located in a geographic area corresponding to the target geographic area group. For example, the geographic location of the first device is Beijing, and the corresponding target geographic area group is Beijing group of the geographic area groups included in the edge node pool.
521. The least loaded service device is determined as the target service device among the service devices included in the target geographical area group, and step 523 is performed.
In the embodiment of the application, when the target service device is determined from the service devices included in the target geographic area group, the service device with the load meeting the condition can be selected from the service devices as the target service device. The service device with the load meeting the condition may be the service device with the least load as shown in step 521, or may be a service device with a load lower than a preset threshold, but is not limited thereto.
In the embodiment of the application, the target service equipment is determined in the target geographic area group, so that the range of the service equipment to be searched can be further reduced, and the service equipment which is nearer to the first equipment can be searched more quickly. In addition, the service equipment with the least load in the central node pool is determined as the target service equipment, so that the CDN network can achieve the effect of load balancing, and the response speed of the CDN network to the access request is improved.
523. And sending the access request to the target service equipment for processing.
In the embodiment of the application, by maintaining two network node pools of different types, which is equivalent to preprocessing before searching the service equipment according to the access request, the range of searching is reduced, the searching times can be effectively reduced, and the scheduling process of the network nodes is simplified. In addition, for the content demander, the target service equipment allocated to the first equipment can be determined according to the scheduling results of other content demander in the same network virtual room, and the efficiency of determining the target service equipment from the edge node pool can be improved. And if the scheduled service equipment is unavailable or the scheduling result of other content demanders does not exist, the service equipment which is closer to the user and has less load can be searched from the edge node pool as the target service equipment, so that the disaster recovery capability of the CDN system is improved, and the access request can be still processed when part of the service equipment is unavailable.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a network scheduling apparatus according to an embodiment of the present disclosure. As shown in fig. 6, the network scheduling apparatus 600 may include: a receiving module 610, a first determining module 620, a second determining module 630, and a transmitting module 640. It should be noted that the foregoing scheduling apparatus may include a network scheduling device 600 as shown in fig. 6.
The receiving module 610 may be configured to receive an access request sent by a first device, where the access request may include first identification information, and the first identification information is used to identify an identity attribute of the first device in a media service.
The first determining module 620 is configured to determine an identity attribute of the first device in the media service according to the first identification information.
The second determining module 630 is configured to determine, from the network node pools corresponding to the identity attribute, a target service device, where service devices of different network node types belong to different network node pools.
The sending module 640 may be configured to send the access request to the target service device for processing.
In the embodiment of the application, the network node pool is maintained, which is equivalent to preprocessing the operation of searching the service equipment according to the access request, and after the access request is received, the service equipment is searched from the corresponding network node pool, so that the range of searching is reduced, the searching times is effectively reduced, the scheduling process of the network node is simplified, the service equipment meeting the requirements can be faster hit, and the scheduling response speed is improved.
In one embodiment, the pool of network nodes may include: and the network node types of the service equipment included in the central node pool are all central nodes of the network. The second determining module 630 is further configured to determine, when the identity attribute of the first device is the content provider, a target service device from the service devices included in the central node pool.
In one embodiment, the pool of network nodes may include: and the network node types of the service equipment included in the edge node pool are all edge nodes of the network. The second determining module 630 is further configured to determine, when the identity attribute is a content requester, a target service device from the service devices included in the edge node pool.
In the foregoing embodiment, the access request sent by the content provider is distributed to the service devices included in the central node pool for processing, and the access request sent by the content demander is distributed to the service devices included in the edge node pool for processing, so that the access requests sent by the devices with different identity attributes can be accurately distributed to different service devices for processing, and the accuracy of processing the access requests is ensured.
In one embodiment, the access request may further include a second identification identifying a network virtual room in which the first device is located. The second determining module 630 may include: room determining unit, obtaining unit, node determining unit.
And the room determining unit is used for determining the network virtual room where the first equipment is located according to the second identification information carried by the access request when the identity attribute is the content demander.
The acquisition unit can be used for acquiring a history scheduling result corresponding to the second equipment in the network virtual room; the identity attribute of the second device is the content demander;
the node determining unit is configured to determine, from the service devices included in the edge node pool, a service device to which the history scheduling result corresponding to the second device points as a target service device.
In one embodiment, the node determining unit may be further configured to obtain a load and/or an operation state of the service device to which the historical scheduling result corresponding to the second device points; and when the service device pointed by the historical scheduling result is determined to be the available service device according to the load and/or the running state, executing the operation of determining the service device pointed by the historical scheduling result as the target service device.
In one embodiment, the access request may further include: third identification information of the first device; the pool of edge nodes may include at least two groupings of geographic areas, with different groupings of geographic areas corresponding to different geographic areas. The node determining unit is further configured to determine, when a historical scheduling result corresponding to a second device in the network virtual room is obtained, a geographic location of the first device according to third identification information of the first device, where an identity attribute of the second device is a content demander. And is further configured to determine a target geographical area group corresponding to the geographical location of the first device from the respective geographical area groups included in the edge node pool; and determining the service equipment with the load meeting the condition from the service equipment included in the target geographic area group as target service equipment.
In one embodiment, the network scheduling apparatus may further include: and a preprocessing module.
The preprocessing module may be configured to receive, before the second determining module 630 determines, in the network node pool corresponding to the identity attribute of the first device, device information sent by the service device to be classified, where the device information includes a network node type of the service device to be classified; and maintaining the service equipment to be classified into a network node pool corresponding to the network node type of the service equipment to be classified.
In one embodiment, the device information further includes a geographic location of the service device to be classified, the network node pool including an edge node pool including at least two geographic region groupings;
the preprocessing module is further configured to maintain the service device to be classified into a geographical area group corresponding to a geographical location of the service device to be classified when the network node type of the service device to be classified is an edge node.
In the foregoing embodiment, the network scheduling device maintains two network node pools of different types, which is equivalent to preprocessing before searching the service device according to the access request, so as to reduce the range to be searched, effectively reduce the searching times, simplify the scheduling process of the network nodes, and improve the scheduling response speed. In addition, for the content demander, the target service equipment allocated to the first equipment can be determined according to the scheduling results of other content demander in the same network virtual room, and the efficiency of determining the target service equipment from the edge node pool can be improved. And if the scheduled service equipment is unavailable or the scheduling result of other content demanders does not exist, the service equipment which is closer to the user and has less load can be searched from the edge node pool as the target service equipment, so that the disaster recovery capability of the CDN system is improved, and the access request can be still processed when part of the service equipment is unavailable.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 7, an electronic device 700 may include: memory 710, wireless communication modules, processor 720, and the like. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 7 is not limiting of the electronic device and that the electronic device may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. The electronic device 700 may be the aforementioned scheduling device, but is not limited thereto.
The memory 710 may be used to store software programs and modules, and the processor 720 may execute various functional applications and data processing of the electronic device by executing the software programs and modules stored in the memory 710. The memory 710 may mainly include a storage program area that may store an operating system, application programs required for at least one function, and the like, and a storage data area; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 710 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
Processor 720 is a control center of the electronic device that utilizes various interfaces and lines to connect various portions of the overall electronic device, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in memory 710, and invoking data stored in memory 710, thereby performing overall monitoring of the electronic device. Optionally, processor 720 may include one or more processing units; preferably, the processor 720 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 720.
In one embodiment, the computer programs stored in memory 710, when executed by processor 720, cause processor 720 to implement the methods described in the embodiments above.
The present embodiment discloses a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute the method described in the above embodiments.
The present application discloses a computer program product comprising a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the methods described in the above embodiments.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art will also appreciate that the embodiments described in the specification are all alternative embodiments and that the acts and modules referred to are not necessarily required in the present application.
In various embodiments of the present application, it should be understood that the size of the sequence numbers of the above processes does not mean that the execution sequence of the processes is necessarily sequential, and the execution sequence of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-accessible memory. Based on such understanding, the technical solution of the present application, or a part contributing to the prior art or all or part of the technical solution, may be embodied in the form of a software product stored in a memory, including several requests for a computer device (which may be a personal computer, a server or a network device, etc., in particular may be a processor in the computer device) to perform part or all of the steps of the above-mentioned method of the various embodiments of the present application.
Those of ordinary skill in the art will appreciate that all or part of the steps of the various methods of the above embodiments may be implemented by a program that instructs associated hardware, the program may be stored in a computer readable storage medium including Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disk Memory, magnetic disk Memory, tape Memory, or any other medium that can be used for carrying or storing data that is readable by a computer.
The foregoing describes in detail a network scheduling method, apparatus, electronic device and storage medium disclosed in the embodiments of the present application, and specific examples are applied to illustrate the principles and implementation manners of the present application, where the foregoing description of the embodiments is only used to help understand the method and core idea of the present application. Meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present application, the contents of the present specification should not be construed as limiting the present application in summary.

Claims (9)

1. A method of network scheduling, the method comprising:
receiving an access request sent by first equipment, wherein the access request comprises first identification information of the first equipment and second identification information of a network virtual room where the first equipment is located, and all equipment of the same network virtual room share data in the network virtual room;
determining identity attributes of the first equipment in the media service according to the first identification information;
determining target service equipment in a network node pool corresponding to the identity attribute, wherein the service equipment of different network node types belong to different network node pools, the network node pools comprise edge node pools, and the network node types of the service equipment included in the edge node pools are all edge nodes of a network;
Sending the access request to the target service equipment for processing;
the determining the target service equipment in the network node pool corresponding to the identity attribute comprises the following steps:
when the identity attribute is a content demander, determining a network virtual room where the first equipment is located according to second identification information carried by the access request; acquiring a history scheduling result corresponding to second equipment in the network virtual room, wherein the identity attribute of the second equipment is a content demander; and determining the service equipment pointed by the history scheduling result corresponding to the second equipment from all the service equipment included in the edge node pool as target service equipment.
2. The method of claim 1, wherein the pool of network nodes further comprises a pool of central nodes, the pool of central nodes comprising network nodes of each service device of which the type is a central node of the network; the determining the target service equipment in the network node pool corresponding to the identity attribute comprises the following steps:
and when the identity attribute is a content provider, determining target service equipment from the service equipment included in the central node pool.
3. The method of claim 1, wherein before determining, from the respective service devices included in the edge node pool, that the service device to which the historical scheduling result corresponding to the second device points is a target service device, the method further comprises:
acquiring the load and/or the running state of the service equipment pointed by the historical scheduling result;
and when the service equipment pointed by the historical dispatching result is determined to be available service equipment according to the load and/or the running state, executing the step of determining the service equipment pointed by the historical dispatching result as target service equipment.
4. The method of claim 1, wherein the access request further comprises third identification information of the first device; the edge node pool comprises at least two geographical area groups, and geographical areas corresponding to different geographical area groups are different;
and when the identity attribute is a content demander, after determining the network virtual room where the first device is located according to the second identification information carried by the access request, the method further comprises:
when a historical scheduling result corresponding to the second equipment in the network virtual room is not acquired, determining the geographic position of the first equipment according to the third identification information of the first equipment; the identity attribute of the second equipment is a content demander;
Determining a target geographical area group corresponding to the geographical position of the first device from the geographical area groups included in the edge node pool;
and determining the service equipment with the load meeting the condition from the service equipment included in the target geographic area group as target service equipment.
5. The method according to any of claims 1 to 4, wherein before determining the target service device in the pool of network nodes corresponding to the identity attribute, the method further comprises:
receiving equipment information sent by service equipment to be classified, wherein the equipment information comprises the network node type of the service equipment to be classified;
and maintaining the service equipment to be classified into a network node pool corresponding to the network node type of the service equipment to be classified.
6. The method of claim 5, wherein the device information further comprises a geographic location of the service device to be classified, the pool of edge nodes comprising at least two geographic area groupings;
the maintaining the service equipment to be classified in the network node pool corresponding to the network node type of the service equipment to be classified comprises the following steps:
And when the network node type of the service equipment to be classified is an edge node, maintaining the service equipment to be classified into a geographic region group which is included in the edge node pool and corresponds to the geographic position of the service equipment to be classified.
7. A network scheduling apparatus, comprising:
the receiving module is used for receiving an access request sent by the first equipment; the access request comprises first identification information and second identification information of a network virtual room where the first equipment is located, wherein the first identification information is used for identifying identity attributes of the first equipment in media service, and all equipment of the same network virtual room share data in the network virtual room;
a first determining module, configured to determine an identity attribute of the first device in a media service according to the first identification information;
a second determining module, configured to determine a target service device in a network node pool corresponding to the identity attribute, where service devices of different network node types belong to different network node pools, where the network node pools include an edge node pool, and network node types of each service device included in the edge node pool are all edge nodes of a network;
The sending module is used for sending the access request to the target service equipment for processing;
the second determining module includes:
the room determining unit is used for determining a network virtual room where the first equipment is located according to the second identification information carried by the access request when the identity attribute is a content demander;
the acquisition unit is used for acquiring a history scheduling result corresponding to second equipment in the network virtual room, wherein the identity attribute of the second equipment is a content demander;
and the node determining unit is used for determining the service equipment pointed by the history scheduling result corresponding to the second equipment from the service equipment included in the edge node pool as target service equipment.
8. An electronic device, comprising: a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to implement the method of any of claims 1 to 6.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method according to any of claims 1 to 6.
CN202011260375.3A 2020-11-12 2020-11-12 Network scheduling method, device, electronic equipment and storage medium Active CN112291103B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011260375.3A CN112291103B (en) 2020-11-12 2020-11-12 Network scheduling method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011260375.3A CN112291103B (en) 2020-11-12 2020-11-12 Network scheduling method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112291103A CN112291103A (en) 2021-01-29
CN112291103B true CN112291103B (en) 2023-06-13

Family

ID=74397892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011260375.3A Active CN112291103B (en) 2020-11-12 2020-11-12 Network scheduling method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112291103B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005099201A2 (en) * 2004-04-03 2005-10-20 Troika Networks, Inc. System and method of providing network node services
CN101217534A (en) * 2007-12-27 2008-07-09 腾讯科技(深圳)有限公司 Network game communication method, system and network game realization method, system
CN109194972A (en) * 2018-09-10 2019-01-11 广州酷狗计算机科技有限公司 Live stream acquisition methods, device, computer equipment and storage medium
CN110287019A (en) * 2018-03-19 2019-09-27 埃森哲环球解决方案有限公司 The system based on resources control stack that multiple domain for cloud computing resources control indicates

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426795B (en) * 2013-09-09 2017-09-12 中国电信股份有限公司 Method, node scheduling server and system for load balancing
WO2015074270A1 (en) * 2013-11-25 2015-05-28 华为技术有限公司 Resource scheduling, user equipment coordination scheduling method, device and system
CN105959433B (en) * 2016-07-22 2019-02-19 无锡华云数据技术服务有限公司 A kind of domain name analytic method and its domain name analysis system
CN111200649B (en) * 2019-12-30 2023-03-24 北京知道创宇信息技术股份有限公司 Scheduling method and device and scheduling model generation method and device
CN111314293A (en) * 2020-01-15 2020-06-19 安徽文香信息技术有限公司 Media resource service system, method, device, storage medium and processor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005099201A2 (en) * 2004-04-03 2005-10-20 Troika Networks, Inc. System and method of providing network node services
CN101217534A (en) * 2007-12-27 2008-07-09 腾讯科技(深圳)有限公司 Network game communication method, system and network game realization method, system
CN110287019A (en) * 2018-03-19 2019-09-27 埃森哲环球解决方案有限公司 The system based on resources control stack that multiple domain for cloud computing resources control indicates
CN109194972A (en) * 2018-09-10 2019-01-11 广州酷狗计算机科技有限公司 Live stream acquisition methods, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112291103A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
US11201929B2 (en) On-line browsing preference management
US20170142177A1 (en) Method and system for network dispatching
CN109729131B (en) Application request processing method and device and router
CN110830564B (en) CDN scheduling method, device, system and computer readable storage medium
CN109768879B (en) Method and device for determining target service server and server
CN109995859A (en) A kind of dispatching method, dispatch server and computer readable storage medium
CN107801086A (en) The dispatching method and system of more caching servers
CN111459986B (en) Data computing system and method
CN107835437B (en) Dispatching method based on more cache servers and device
CN104640114B (en) A kind of verification method and device of access request
US11889133B2 (en) Burst traffic processing method, computer device and readable storage medium
CN109756584B (en) Domain name resolution method, domain name resolution device and computer readable storage medium
CN103109511A (en) Partial object distribution in content delivery network
CN105610869B (en) Method and device for scheduling streaming media
CN109618003B (en) Server planning method, server and storage medium
CN113781119B (en) Virtual resource sending method and device, electronic equipment and storage medium
CN108282668B (en) Video acquisition method and system
CN107004003B (en) Model parameter fusion method and device
CN113453025A (en) Data acquisition method and device
CN112511868B (en) Video playing method and device, electronic equipment and computer storage medium
CN112291103B (en) Network scheduling method, device, electronic equipment and storage medium
CN112231481A (en) Website classification method and device, computer equipment and storage medium
CN107046581A (en) A kind of monitoring method, device and the server of service operation state
CN112035760B (en) Task allocation method and computer equipment
CN114003496A (en) Data processing method, device, system, storage medium and program product

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