CN110022250B - Service processing method, terminal and computer storage medium - Google Patents

Service processing method, terminal and computer storage medium Download PDF

Info

Publication number
CN110022250B
CN110022250B CN201810024352.9A CN201810024352A CN110022250B CN 110022250 B CN110022250 B CN 110022250B CN 201810024352 A CN201810024352 A CN 201810024352A CN 110022250 B CN110022250 B CN 110022250B
Authority
CN
China
Prior art keywords
virtual machine
top box
service
service request
sending
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
CN201810024352.9A
Other languages
Chinese (zh)
Other versions
CN110022250A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201810024352.9A priority Critical patent/CN110022250B/en
Publication of CN110022250A publication Critical patent/CN110022250A/en
Application granted granted Critical
Publication of CN110022250B publication Critical patent/CN110022250B/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/43615Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals

Abstract

The embodiment of the invention discloses a service processing method, which comprises the following steps: sending a first registration request to a router virtual machine; sending a second registration request to the set-top box virtual machine, wherein the first registration request is different from the second registration request; receiving first registration information fed back by a router virtual machine and second registration information fed back by a set-top box virtual machine; acquiring a first service request from user equipment; if the first service request is determined to contain the first service identifier, the first service request is sent to the router virtual machine based on the first service identifier and the first registration information; or, if the first service request is determined to contain the second service identifier, the first service request is sent to the set top box virtual machine based on the second service identifier and the second registration information. The embodiment of the invention also discloses a terminal and a computer storage medium.

Description

Service processing method, terminal and computer storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a service processing method, a terminal, and a computer storage medium.
Background
The home network is also called an intelligent home network system, and can be used for networking various household appliances and equipment in a home by means of a computer network technology and providing diversified, personalized, convenient, comfortable, safe and efficient services for people through the network system.
In order to improve the intelligence of the intelligent home network system, more devices with different functions are adopted in the prior art to form the network system. However, there is no connection between the devices constituting the network system, and the devices are used to implement their own functions. For example, the network system includes a set-top box and a home gateway, which are independent from each other, and a user needs to operate different devices to implement functions of each device. As can be seen from the above, the networking manner that only increases the number of devices increases the complexity of the networking system.
Disclosure of Invention
In view of this, embodiments of the present invention are intended to provide a service processing method, a terminal, and a computer storage medium, so as to solve the problem that networking of a home gateway is complex in the prior art, and reduce networking complexity of the home gateway.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, a method for processing a service is provided, where the method includes:
sending a first registration request to a router virtual machine;
sending a second registration request to the set-top box virtual machine, wherein the first registration request is different from the second registration request;
receiving first registration information fed back by the router virtual machine and second registration information fed back by the set top box virtual machine;
acquiring a first service request from user equipment;
if the first service request is determined to contain a first service identifier, sending the first service request to the router virtual machine based on the first service identifier and the first registration information; or, if it is determined that the first service request includes a second service identifier, the first service request is sent to the set-top box virtual machine based on the second service identifier and the second registration information.
In a second aspect, a terminal is provided, which includes: a processor and a storage medium configured to store executable instructions, wherein:
the processor is configured to execute stored executable instructions, the executable instructions comprising:
sending a first registration request to a router virtual machine; sending a second registration request to the set-top box virtual machine, wherein the first registration request is different from the second registration request;
receiving first registration information fed back by the router virtual machine and second registration information fed back by the set top box virtual machine;
acquiring a first service request from user equipment; if the first service request is determined to contain a first service identifier, sending the first service request to the router virtual machine based on the first service identifier and the first registration information; or, if it is determined that the first service request includes a second service identifier, the first service request is sent to the set-top box virtual machine based on the second service identifier and the second registration information.
In a third aspect, a computer storage medium is provided, which stores one or more programs executable by one or more processors to implement the steps of the business processing method according to the first aspect.
The service processing method, the terminal and the computer storage medium provided by the embodiment of the invention send the first registration request to the router virtual machine; sending a second registration request to the set-top box virtual machine, wherein the first registration request is different from the second registration request; then, receiving first registration information fed back by the router virtual machine and second registration information fed back by the set-top box virtual machine; then, a first service request from the user equipment is obtained; if the first service request is determined to contain the first service identifier, the first service request is sent to the router virtual machine based on the first service identifier and the first registration information; or, if the first service request is determined to contain the second service identifier, the first service request is sent to the set top box virtual machine based on the second service identifier and the second registration information. That is to say, the service processing method provided by the embodiment of the present invention may be applied to a two-in-one device of a home gateway and a set top box, where the device integrates functions of an originally independent home gateway and functions of a set top box, and realizes interaction with a router virtual machine or a set top box virtual machine based on a first service identifier and first registration information in a first service request. Therefore, the number of devices in the home gateway networking is obviously reduced, the problem of complex home gateway networking in the prior art is solved, and the purpose of reducing the complexity of home gateway networking is realized.
Drawings
Fig. 1 is a schematic structural diagram of a virtual gateway system composed of a home gateway portion and a virtual machine portion according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a service processing method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a message structure provided in the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The embodiment of the invention provides a service processing method, the execution main body of the service processing method is home gateway equipment, and the home gateway equipment comprises a home gateway interface and a set top box interface and can also be called as two-in-one equipment of a home gateway and a set top box. The home gateway device not only has the home gateway function, namely, the home gateway device is used as all external access networks to be connected to the inside of a home, but also is used for connecting the inside network of the home to an external physical interface and a platform for enabling a residential user to obtain various home services; and the set-top box function, namely, the functions of receiving analog television and digital television programs in a broadcasting mode, video on demand and music on demand, electronic shopping, electronic games, connecting fire-fighting electronic products such as VCRs, VCDs and the like, meeting televisions, video telephones and the like.
In an embodiment of the present invention, the home gateway device and the virtual machine are grouped into a virtual gateway system, and the home gateway device and the virtual machine are in one-to-many correspondence. Illustratively, taking the example that the virtual machine part includes a router virtual machine and a set-top box virtual machine, referring to fig. 1, the home gateway part 1 on the user side includes a home gateway device 11; the user equipment on the user side comprises first user equipment 12 and second user equipment 13; the user equipment 12 and the user equipment 13 may be the same or different. The virtual machine part 2 includes a router virtual machine 21, a set-top box virtual machine 22, and a server 23. In this embodiment of the present invention, the first user equipment 12 may obtain the first service resource from the router virtual machine, for example, the first user equipment 12 may be a smart phone, and the smart phone may obtain the first service resource through the home gateway device 11 to implement a function of surfing the internet. The second user equipment 13 may obtain the second service resource from the set-top box virtual machine, for example, the second user equipment 13 may be a digital television, and the digital television may obtain the second service resource through the home gateway device 11 to implement a function of viewing a digital television program. The server 23 in the virtual machine part 2 is used for configuring the services requested by the home gateway device 11 to ensure the normal operation of each service of the home gateway.
In practical application, when the service processing method provided by the embodiment of the present invention is applied to the home gateway device, i.e., a two-in-one device of a home gateway and a set top box, a family member may select to experience the home gateway function and the set top box function at the same time, or only experience the home gateway function, or only experience the set top box function, as required. For example, a family member may access the World Wide Web (Web) via a home gateway interface while watching a digital television program received via a set-top box interface. In this way, family members can only operate aiming at the family gateway equipment, and do not need to respectively operate aiming at the existing family gateway module and the existing set top box module; therefore, the operation of the user is simplified, the intelligent degree of the home gateway equipment is improved, and the networking complexity of the home gateway is reduced.
Based on the foregoing embodiment, the following describes in detail a service processing method provided in an embodiment of the present invention, where the method includes:
s201: a first registration request is sent to the router virtual machine.
Here, the first registration request may be a request to register the binding router virtual machine. When the home gateway device is powered on and enters a working state, the home gateway device may send the first registration request to the router virtual machine, so as to implement binding with the router virtual machine. The home gateway device comprises a plurality of home gateway interfaces, and each home gateway interface can be used for sending the first registration request to the router virtual machine. The plurality of home gateway interfaces have different first interface identifications, which can also be called as first interface addresses. And binding each home gateway interface and the router virtual machine, namely establishing a first communication link between each home gateway interface and the router virtual machine.
S202: and sending a second registration request to the set-top box virtual machine, wherein the first registration request is different from the second registration request.
Here, the second registration request may be a request to register a bound set-top box virtual machine. When the home gateway device is powered on and enters a working state, the home gateway device may send the second registration request to the set-top box virtual machine to implement binding with the set-top box virtual machine. The home gateway device comprises a plurality of set top box interfaces, and each set top box interface can be used for sending the second registration request to the set top box virtual machine. The plurality of set top box interfaces have different second interface identifications, which can also be called second interface addresses. And binding each set top box interface and the set top box virtual machine, namely establishing a second communication link between each set top box interface and the set top box virtual machine. The second registration request is different from the first registration request, and is mainly embodied in that the service resource requested by the second registration request is different from the service resource requested by the first registration request.
S203: and receiving first registration information fed back by the router virtual machine and second registration information fed back by the set-top box virtual machine.
Here, the first registration information may include a plurality of first paths corresponding to a plurality of home gateway interfaces on the home gateway device, that is, the first communication link; the plurality of home gateway interfaces may include each home gateway interface on the home gateway device, and correspondingly, the plurality of first paths may include a first path corresponding to each home gateway interface.
The second registration information may include a plurality of second paths, that is, the second communication links, corresponding to a plurality of set top box interfaces on the home gateway device; the plurality of set-top box interfaces may include each set-top box interface on the home gateway device; correspondingly, the plurality of second paths may include a second path corresponding to each set top box interface.
Then, after the home gateway device sends the first registration request to the router virtual machine and sends the second registration request to the set-top box virtual machine, the binding between the plurality of home gateway interfaces on the home gateway device and the router virtual machine and the binding between the plurality of set-top box interfaces and the set-top box virtual machine can be realized. Then, the router virtual machine issues binding information, namely first registration information to a home gateway interface; the router virtual machine sends binding information, namely first registration information to the set top box interface. In this way, the home gateway device can obtain the first registration information and the second registration information.
S204: a first service request from a user equipment is obtained.
Here, the first service request may be a request initiated to acquire a first service resource from the router virtual machine; or may be a request initiated to obtain the second service resource from the set-top box virtual machine. Here, when the first service request is a request initiated to obtain a first service resource from a router virtual machine, the first service request may be initiated by the first user equipment on the user side; accordingly, the home gateway device may obtain the first service request from the first user equipment. When the first service request is initiated to obtain a second service resource from the set-top box virtual machine, the second service request may be initiated by the second user equipment on the user side; accordingly, the home gateway device may obtain the first service request from the second user equipment.
S205: and if the first service request is determined to contain the first service identifier, sending the first service request to the router virtual machine based on the first service identifier and the first registration information.
Here, the first service identifier is used to characterize that the service requested by the first service belongs to a first class of service. The first type of service may be a service implemented by a home gateway function. Specifically, the home gateway function may be a function as a physical interface for connecting all external access networks to the inside of the home while connecting the inside of the home network to the outside, and a platform for making various home services available to the residential user. In this embodiment of the present invention, the first service identifier may be a first-class device identifier, and the user equipment having the first-class device identifier may be capable of connecting with the home gateway interface to request the router virtual machine to allocate a first service resource to the router virtual machine. In this embodiment, after a family member uses a first class device to initiate a first service request to the home gateway device, the home gateway device receives the first service request, and then the home gateway device strips a service identifier carried by the first service request, so that it can be determined that the service identifier is the first service identifier, that is, the device identifier of the first class device. For example, the device identifier of the first type device may be a mobile phone identifier, a camera identifier, a personal computer identifier, or the like.
S206: and if the first service request is determined to contain the second service identifier, sending the first service request to the set top box virtual machine based on the second service identifier and the second registration information.
Here, the second service identifier is used to characterize that the service requested by the first service belongs to the second service class. The second service may be a service implemented by the set-top box correspondingly. Specifically, the set-top box function may be functions of receiving analog tv and digital tv programs in a broadcast manner, Video on demand and music on demand, electronic shopping, electronic games, Video Cassette Recorder (VCR), Video Compact Disc (VCD), and other electronic products, as well as a Video conference and a Video telephone. In this embodiment of the present invention, the second service identifier may be a second type device identifier, and the user equipment having the second type device identifier may be connected to the set-top box interface to request the set-top box virtual machine to allocate a second service resource to the set-top box virtual machine. In this embodiment, after a family member uses a second type of device to initiate a first service request to the home gateway device, the home gateway device receives the first service request, and then strips a service identifier carried by the first service request, and further determines that the service identifier is a second service identifier, that is, a device identifier of the second type of device. For example, the device identifier of the second type of device may be a digital television identifier, a videophone identifier, or the like.
As can be seen from the above, the service processing method provided in the embodiment of the present invention is applied to a home gateway device, where the home gateway device includes a home gateway interface and a set top box interface, and the method includes: the home gateway equipment sends a first registration request to the router virtual machine; sending a second registration request to the set-top box virtual machine, wherein the first registration request is different from the second registration request; then, the home gateway equipment receives first registration information fed back by the router virtual machine and second registration information fed back by the set-top box virtual machine; then, the home gateway device obtains a first service request from the user equipment; if the first service request is determined to contain the first service identifier, the first service request is sent to the router virtual machine based on the first service identifier and the first registration information; or, if the first service request is determined to contain the second service identifier, the first service request is sent to the set top box virtual machine based on the second service identifier and the second registration information. That is to say, the service processing method provided by the embodiment of the present invention may be applied to a two-in-one device of a home gateway and a set top box, where the device integrates functions of an originally independent home gateway and functions of a set top box, and realizes interaction with a router virtual machine or a set top box virtual machine based on a first service identifier and first registration information in a first service request. Therefore, the number of devices in the home gateway networking is obviously reduced, the problem of complex home gateway networking in the prior art is solved, and the purpose of reducing the complexity of home gateway networking is realized.
Based on the foregoing embodiment, optionally, in another embodiment of the present invention, the step of sending the first service request to the router virtual machine based on the first service identifier and the first registration information in S205 may include the following steps:
the first step, according to the first service identification, determining a first home gateway interface for receiving a first service request;
here, after the home gateway device receives the first service request from the user equipment, the first home gateway interface receiving the first service request may be determined according to the first service identifier in the first service request. The first home gateway interface may be identified by a Media Access Control (MAC) address.
And secondly, searching a first path corresponding to the first home gateway interface from the first registration information, and sending a first service request to the router virtual machine through the first path.
Here, the first registration information is the same as the first registration information in S203, and the first registration information may further include a first correspondence between the plurality of first home gateway interfaces and the plurality of first paths. After the home gateway device determines the current first home gateway interface receiving the first service request, the current first path corresponding to the current first home gateway interface may be searched based on the first corresponding relationship. And then, the home gateway equipment sends a first service request to the router virtual machine through the searched current first path. Therefore, interaction between the home gateway interface on the home gateway device and the router virtual machine is realized.
Based on the foregoing embodiment, optionally, in other embodiments of the present invention, after determining that the first service request includes the first service identifier in S205, and based on the first service identifier and the first registration information, sending the first service request to the router virtual machine, the method may further include the following steps: and receiving a first service resource allocated by the router virtual machine aiming at the first service request. Here, after the home gateway device receives the first service resource allocated by the router virtual machine for the first service request, normal deployment of the service is performed between the home gateway interface and the router virtual machine. For example, the mobile phone of the family member may receive the first service resource forwarded by the first home gateway interface, thereby implementing normal internet access. And after the first home gateway interface is offline, the corresponding router virtual machine can release the link with the first home gateway interface and quit binding.
Based on the foregoing embodiment, optionally, in another embodiment of the present invention, the process of sending the first service request to the set-top box virtual machine based on the second service identifier and the second registration information in S206 may include the following steps:
the first step, according to the second service identification, determining a first set top box interface for receiving the first service request;
here, after the home gateway device receives the first service request from the user equipment, the first set top box interface for receiving the first service request may be determined according to the second service identifier in the first service request. The first set-top box interface may be identified by a Media Access Control (MAC) address. Here, the MAC address of the first set-top box interface is different from the MAC address of the first home gateway interface.
And secondly, searching a second path corresponding to the first set top box interface from the second registration information, and sending the first service request to the set top box virtual machine through the second path.
Here, the second registration information is the same as the second registration information in S203, and the second registration information may further include a second correspondence between the plurality of first set-top box interfaces and the plurality of second paths. After the home gateway device determines the current first set top box interface receiving the first service request, the current second path corresponding to the current first set top box interface may be searched based on the second correspondence. And then, the home gateway equipment sends the first service request to the set top box virtual machine through the searched current second path. Therefore, interaction between the set top box interface on the home gateway device and the set top box virtual machine is achieved.
Based on the foregoing embodiment, optionally, in other embodiments of the present invention, if it is determined that the first service request includes the second service identifier at S206, after sending the first service request to the set top box virtual machine based on the second service identifier and the second registration information, the method may further include the following steps: and receiving a second service resource distributed by the set top box virtual machine aiming at the first service request. Here, after the home gateway device receives the second service resource allocated by the set-top box virtual machine for the second service request, normal expansion of the service is performed between the set-top box interface and the set-top box virtual machine. For example, the digital television of the family member may receive the second service resource forwarded by the first set top box interface at this time, and further receive a television program, and normally watch the television program. And after the first set top box interface is offline, the corresponding set top box virtual machine can release the link with the first set top box interface and exit from binding.
Based on the foregoing embodiment, optionally, in another embodiment of the present invention, the step of sending the first service request to the router virtual machine based on the first service identifier and the first registration information in S205 may include the following steps:
firstly, determining a first home gateway interface for receiving a first service request according to a first service identifier;
here, the first home gateway interface may be an interface of the home gateway device for receiving the first service request including the first service identification by default.
Secondly, if the path between the first home gateway interface and the router virtual machine is determined to be unreachable, determining a second home gateway interface based on the first forwarding table, wherein the second home gateway interface is different from the first home gateway interface;
here, the home gateway device determines that the path between the first home gateway interface and the router virtual machine is not reachable, that is, the first service request cannot be sent to the router virtual machine through the first home gateway interface at this time. Then, the home gateway device may determine, based on the first forwarding table, a second home gateway interface different from the first home gateway interface, the second home gateway interface being used for sending the first service request. The first transfer table includes the first correspondence relationship in S205; namely, the first forwarding table includes a first correspondence between a plurality of first home gateway interfaces and a plurality of first paths. The second home gateway interface is another first home gateway interface different from the default first home gateway interface among the plurality of first home gateway interfaces. For example, the interface identifier of the default first home gateway interface is G01And the interface identifier of the second home gateway interface is G02
And finally, sending the first service request to the router virtual machine through the second home gateway interface.
Here, in determining the secondThe interface identifier of the two-family gateway interface is G02And then, the home gateway equipment searches a first path corresponding to the second home gateway interface from the first forwarding table and sends a first service request to the router virtual machine through the first path.
Based on the foregoing embodiment, optionally, in another embodiment of the present invention, the process of sending the first service request to the set-top box virtual machine based on the second service identifier and the second registration information in S206 may include the following steps:
firstly, determining a first set top box interface for receiving a first service request according to a second service identifier;
here, the first set-top box interface may be a default interface of the home gateway device for receiving the first service request including the second service identification.
Secondly, if the path between the first set top box interface and the set top box virtual machine is determined to be unreachable, a second set top box interface is determined based on a second forwarding table, and the second set top box interface is different from the first set top box interface;
here, the home gateway device determines that the path between the first set top box interface and the set top box virtual machine is unreachable, that is, the first service request cannot be sent to the set top box virtual machine through the first set top box interface at this time. Then, the home gateway device may determine, based on the second forwarding table, a second set top box interface different from the first set top box interface, the second set top box interface being used for sending the first service request. It should be noted that the second forwarding table includes a second corresponding relationship in S206; that is, the second forwarding table includes a second corresponding relationship between the plurality of first set top box interfaces and the plurality of second paths. The second set top box interface is other first set top box interfaces different from the default first set top box interface in the plurality of first set top box interfaces. For example, the default interface identification of the first set-top box interface is G11The interface identifier of the second set-top box interface is G12
And finally, sending the first service request to the set-top box virtual machine through the second set-top box interface.
Here, in determining the secondThe interface identifier of the two set-top box interfaces is G12And then, the home gateway equipment searches a second path corresponding to the second set top box interface from a second forwarding table, and sends the first service request to the set top box virtual machine through the second path.
Based on the foregoing embodiment, optionally, in another embodiment of the present invention, the step of sending the first service request to the router virtual machine based on the first service identifier and the first registration information in S205 may include the following steps: packaging the first service request according to a preset message format to obtain a target message;
here, the first service request includes data information and a first device identification of the user equipment; the preset message format may be an IP message format. For example, the destination packet format obtained by encapsulating according to the IP packet format may be as shown in fig. 3, where the destination packet is encapsulated with the data information, the first device identifier, and an IP packet header. And, the data information of the different user equipments corresponds to the first equipment identity. In practical applications, the data information may include package data, Led information and Key information, wired Eth0 interface communication data, and Universal Serial Bus (USB) communication data. Accordingly, the first device identifier may include: the first peripheral equipment identification, the LEDKEY identification, the Eth0 interface identification and the USB interface identification.
In practical application, the destination packet obtained by encapsulation may include an IP packet header, a first peripheral identifier, and encapsulation data; or the IP message header, the LEDKEY identifier, the Led information and the Key information are included; or the communication message comprises an IP message header, an Eth0 interface identifier and an Eth0 interface communication message; or the IP message header, the USB interface identifier, the USB communication data and the like.
And sending the destination message to the router virtual machine based on the first service identifier and the first registration information.
Here, after obtaining the destination packet, the home gateway device can determine a current first path from the first registration information based on the first service identifier and the first registration information, and send the destination packet to the router virtual machine through the first path.
Based on the foregoing embodiment, in another embodiment of the present invention, the process of sending the first service request to the set-top box virtual machine based on the second service identifier and the second registration information in S206 may include the following steps: packaging the first service request according to a preset message format to obtain a target message;
here, the first service request includes data information and a second device identification of the user equipment; the preset message format may be an IP message format, and specifically, the data information and the second device identifier of the user equipment are encapsulated in the target message. Furthermore, the data information corresponds to a second device identification of a different user device. The destination message may include an IP layer, a second peripheral identification layer, and encapsulated data. Of course, the destination message may also include other contents, and the embodiment of the present invention is not particularly limited.
And sending the target message to the set top box virtual machine based on the first service identifier and the second registration information.
Here, after obtaining the destination packet, the home gateway device may determine a current second path from the second registration information based on the second service identifier and the second registration information, and send the destination packet to the set-top box virtual machine through the second path.
Based on the foregoing embodiments, an embodiment of the present invention provides a terminal 40, as shown in fig. 4, where the terminal at least includes: a processor 41 and a storage medium 42 configured to store executable instructions, wherein:
processor 41 is configured to execute stored executable instructions for implementing the following steps:
sending a first registration request to a router virtual machine;
sending a second registration request to the set-top box virtual machine, wherein the first registration request is different from the second registration request;
receiving first registration information fed back by a router virtual machine and second registration information fed back by a set-top box virtual machine;
acquiring a first service request from user equipment;
if the first service request is determined to contain the first service identifier, the first service request is sent to the router virtual machine based on the first service identifier and the first registration information; or, if the first service request is determined to contain the second service identifier, the first service request is sent to the set top box virtual machine based on the second service identifier and the second registration information.
Further, when the processor performs the step of sending the first service request to the router virtual machine based on the first service identifier and the first registration information, the following steps may be implemented:
determining a first home gateway interface for receiving a first service request according to the first service identifier;
and searching a first path corresponding to the first home gateway interface from the first registration information, and sending a first service request to the router virtual machine through the first path.
Further, the executable instructions are also for implementing the steps of:
and receiving a first service resource allocated by the router virtual machine aiming at the first service request.
Further, when the processor executes the step of sending the first service request to the set-top box virtual machine based on the second service identifier and the second registration information, the following steps may be implemented:
determining a first set top box interface for receiving a first service request according to the first service identifier;
and searching a second path corresponding to the first set top box interface from the first registration information, and sending the first service request to the set top box virtual machine through the second path.
Further, the executable instructions are also for implementing the steps of:
and receiving a second service resource distributed by the set top box virtual machine aiming at the first service request.
Further, when the processor executes the step of sending the first service request to the router virtual machine based on the first service identifier and the first registration information, the following steps may be implemented:
determining a first home gateway interface for receiving a first service request according to the first service identifier;
if the path between the first home gateway interface and the router virtual machine is determined to be unreachable, determining a second home gateway interface based on the first forwarding table, wherein the second home gateway interface is different from the first home gateway interface; and sending the first service request to the router virtual machine through the second home gateway interface.
Further, when the processor executes the step of sending the first service request to the set-top box virtual machine based on the second service identifier and the second registration information, the following steps may be implemented:
determining a first set top box interface for receiving the first service request according to the second service identifier;
if the path between the first set top box interface and the set top box virtual machine is determined to be unreachable, determining a second set top box interface based on a second forwarding table, wherein the second set top box interface is different from the first set top box interface; and sending the first service request to the set-top box virtual machine through the second set-top box interface.
Further, when the processor executes the step of sending the first service request to the router virtual machine based on the first service identifier and the first registration information, the following steps may be implemented:
packaging the first service request according to a preset message format to obtain a target message;
and sending the destination message to the router virtual machine based on the first service identifier and the first registration information.
Further, when the processor executes the step of sending the first service request to the set-top box virtual machine based on the second service identifier and the second registration information, the following steps may be implemented:
packaging the first service request according to a preset message format to obtain a target message;
and sending the target message to the set top box virtual machine based on the first service identifier and the second registration information.
The terminal provided by the embodiment of the invention at least comprises: a processor 41 and a storage medium 42 configured to store executable instructions, wherein the processor 41 is configured to execute the stored executable instructions for implementing the steps of: sending a first registration request to a router virtual machine; sending a second registration request to the set-top box virtual machine, wherein the first registration request is different from the second registration request; receiving first registration information fed back by a router virtual machine and second registration information fed back by a set-top box virtual machine; acquiring a first service request from user equipment; if the first service request is determined to contain the first service identifier, the first service request is sent to the router virtual machine based on the first service identifier and the first registration information; or, if the first service request is determined to contain the second service identifier, the first service request is sent to the set top box virtual machine based on the second service identifier and the second registration information. That is to say, the terminal provided in the embodiment of the present invention may integrate the functions of the originally independent home gateway and the functions of the set-top box into a whole, and implement interaction with the router virtual machine or the set-top box virtual machine based on the first service identifier and the first registration information in the first service request. Therefore, the number of devices in the home gateway networking is obviously reduced, the problem of complex home gateway networking in the prior art is solved, and the purpose of reducing the complexity of home gateway networking is realized.
Here, it should be noted that: the description of the terminal embodiment is similar to the description of the method, and has the same beneficial effects as the method embodiment, and therefore, the description is omitted. For technical details that are not disclosed in the terminal embodiment of the present invention, those skilled in the art should refer to the description of the method embodiment of the present invention to understand that, for brevity, detailed description is omitted here.
It should be appreciated that reference throughout this specification to "an embodiment of the present invention" or "an embodiment described previously" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrase "in an embodiment of the present invention" or "in the foregoing embodiments" in various places throughout the 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. It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components in the business process or discussion may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other.
The units described as separate parts may or may not be physically separate, and the parts processed as unit services may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A method for processing a service, the method comprising:
sending a first registration request to a router virtual machine;
sending a second registration request to the set-top box virtual machine, wherein the first registration request is different from the second registration request;
receiving first registration information fed back by the router virtual machine and second registration information fed back by the set top box virtual machine;
acquiring a first service request from user equipment;
if it is determined that the first service request includes a first service identifier, sending the first service request to the router virtual machine based on the first service identifier and the first registration information, including: determining a first home gateway interface for receiving the first service request according to the first service identifier; searching a first path corresponding to the first home gateway interface from the first registration information, and sending the first service request to the router virtual machine through the first path; or, if it is determined that the first service request includes a second service identifier, based on the second service identifier and the second registration information, sending the first service request to the set-top box virtual machine, including: determining a first set top box interface for receiving the first service request according to the second service identifier; and searching a second path corresponding to the first set top box interface from the second registration information, and sending the first service request to the set top box virtual machine through the second path.
2. The method of claim 1, wherein after sending the first service request to the router virtual machine based on the first service identifier and the first registration information, the method comprises:
and receiving a first service resource allocated by the router virtual machine aiming at the first service request.
3. The method according to claim 1, wherein after sending the first service request to the set-top box virtual machine based on the second service identifier and the second registration information, the method comprises:
and receiving a second service resource distributed by the set top box virtual machine aiming at the first service request.
4. The method of claim 1, wherein sending the first service request to the router virtual machine based on the first service identifier and the first registration information comprises:
determining a first home gateway interface for receiving the first service request according to the first service identifier;
if the path between the first home gateway interface and the router virtual machine is determined to be unreachable, determining a second home gateway interface based on a first forwarding table, wherein the second home gateway interface is different from the first home gateway interface;
and sending the first service request to the router virtual machine through the second home gateway interface.
5. The method according to claim 1, wherein the sending the first service request to the set-top box virtual machine based on the second service identifier and the second registration information comprises:
determining a first set top box interface for receiving the first service request according to the second service identifier;
if the path between the first set top box interface and the set top box virtual machine is determined to be unreachable, determining a second set top box interface based on a second forwarding table, wherein the second set top box interface is different from the first set top box interface;
and sending the first service request to the set-top box virtual machine through the second set-top box interface.
6. The method of claim 1, wherein sending the first service request to the router virtual machine based on the first service identifier and the first registration information comprises:
packaging the first service request according to a preset message format to obtain a target message;
and sending the target message to the router virtual machine based on the first service identifier and the first registration information.
7. The method according to claim 1, wherein the sending the first service request to the set-top box virtual machine based on the second service identifier and the second registration information comprises:
packaging the first service request according to a preset message format to obtain a target message;
and sending the target message to the set top box virtual machine based on the second service identifier and the second registration information.
8. A terminal, characterized in that the terminal comprises at least: a processor and a storage medium configured to store executable instructions, wherein:
the processor is configured to execute stored executable instructions, the executable instructions comprising:
sending a first registration request to a router virtual machine; sending a second registration request to the set-top box virtual machine, wherein the first registration request is different from the second registration request;
receiving first registration information fed back by the router virtual machine and second registration information fed back by the set top box virtual machine;
acquiring a first service request from user equipment; if it is determined that the first service request includes a first service identifier, sending the first service request to the router virtual machine based on the first service identifier and the first registration information, including: determining a first home gateway interface for receiving the first service request according to the first service identifier; searching a first path corresponding to the first home gateway interface from the first registration information, and sending the first service request to the router virtual machine through the first path; or, if it is determined that the first service request includes a second service identifier, based on the second service identifier and the second registration information, sending the first service request to the set-top box virtual machine, including: determining a first set top box interface for receiving the first service request according to the second service identifier; and searching a second path corresponding to the first set top box interface from the second registration information, and sending the first service request to the set top box virtual machine through the second path.
9. The terminal of claim 8, wherein the executable instructions further comprise:
and receiving a first service resource allocated by the router virtual machine aiming at the first service request.
10. A computer storage medium having stored therein computer-executable instructions configured to perform the business process method provided by any one of claims 1 to 7.
CN201810024352.9A 2018-01-10 2018-01-10 Service processing method, terminal and computer storage medium Active CN110022250B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810024352.9A CN110022250B (en) 2018-01-10 2018-01-10 Service processing method, terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810024352.9A CN110022250B (en) 2018-01-10 2018-01-10 Service processing method, terminal and computer storage medium

Publications (2)

Publication Number Publication Date
CN110022250A CN110022250A (en) 2019-07-16
CN110022250B true CN110022250B (en) 2021-11-12

Family

ID=67188187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810024352.9A Active CN110022250B (en) 2018-01-10 2018-01-10 Service processing method, terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN110022250B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7720654B2 (en) * 2005-10-15 2010-05-18 Micron Technology, Inc. Generation and manipulation of realistic signals for circuit and system verification
CN102104528B (en) * 2009-12-21 2012-10-10 中国移动通信集团山西有限公司 Network system applied in rural area and service message transmission method
CN102215275B (en) * 2011-03-10 2014-07-30 华为技术有限公司 Service processing method and system as well as set top box
CN103051535B (en) * 2012-12-18 2016-01-27 华为技术有限公司 A kind of data cut-in method, device and data insertion system
CN103986948A (en) * 2014-05-15 2014-08-13 广西师范大学 Three-network integrated dual-mode intelligent set top box
CN106936947A (en) * 2017-05-11 2017-07-07 深圳市茁壮网络股份有限公司 A kind of gateway communication method, routing device and gateway communication system
CN107154887B (en) * 2017-05-16 2021-02-09 深圳市茁壮网络股份有限公司 Method and device for determining VLAN (virtual local area network) identification number

Also Published As

Publication number Publication date
CN110022250A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
US10439862B2 (en) Communication terminal with multiple virtual network interfaces
CN108093011B (en) A kind of view networked terminals control method and system
CN101753976B (en) Method for controlling interactive web TV business as well as equipment and system thereof
CN110830333A (en) Intelligent household equipment access authentication method, device, gateway and storage medium
CN106059994B (en) Data transmission method and network equipment
CN109547417B (en) Code stream transmission method and device
US8254305B1 (en) System and method for bridging media local area networks
CN102130900A (en) Method and device for realizing three-screen interaction
US20030126239A1 (en) Mobile communication terminal, network access system and method thereof using the same
US7907213B1 (en) Wireless multimedia content at television host device
US9998298B2 (en) Data transmission method, apparatus, and computer storage medium
CN106911676A (en) Multimedia network data processing system
CN110677345B (en) User message transmission method and communication equipment
CN105430482A (en) Multi-screen interaction method and terminal equipment
CN110035005B (en) Data processing method and device
US20220408332A1 (en) Method for advertising route, network element, system, and device
CN109862437B (en) Forwarding table item creating method and BRAS
CN109743522B (en) Communication method and device based on video networking
CN108111883A (en) A kind of method for accessing radio data system
WO2017219852A1 (en) Data information sharing method and apparatus, and terminal
US20230164234A1 (en) Service continuity event notification method, and apparatus
CN102638382A (en) Method for realizing DLNA (Digital Living Network Alliance) and DLNA agent equipment
KR20050043772A (en) Module and process for inter-user communication
CN111615004A (en) OTT-TV transmission system and transmission method
US20140043430A1 (en) Apparatus and method for providing group communication service

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