CN109672613B - Self-adaptive access method and device and electronic equipment - Google Patents

Self-adaptive access method and device and electronic equipment Download PDF

Info

Publication number
CN109672613B
CN109672613B CN201811522058.7A CN201811522058A CN109672613B CN 109672613 B CN109672613 B CN 109672613B CN 201811522058 A CN201811522058 A CN 201811522058A CN 109672613 B CN109672613 B CN 109672613B
Authority
CN
China
Prior art keywords
target
address
network
internet access
access
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
CN201811522058.7A
Other languages
Chinese (zh)
Other versions
CN109672613A (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.)
Sumavision Technologies Co Ltd
Original Assignee
Sumavision Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sumavision Technologies Co Ltd filed Critical Sumavision Technologies Co Ltd
Priority to CN201811522058.7A priority Critical patent/CN109672613B/en
Publication of CN109672613A publication Critical patent/CN109672613A/en
Application granted granted Critical
Publication of CN109672613B publication Critical patent/CN109672613B/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/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • 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

Abstract

The invention provides a self-adaptive access method, a device and electronic equipment, which relate to the technical field of network access, wherein the method is applied to a gateway and comprises the following steps: receiving an access request sent by a client; wherein, the access request carries a target IP address; determining a target internet access corresponding to the target IP address through a preset self-adaptive routing engine; the self-adaptive routing engine comprises a plurality of network ports; each network port corresponds to a plurality of IP addresses; and forwarding the access request of the client to the target internet access so that the client accesses the network service corresponding to the target internet access. The invention can effectively improve the experience of the user.

Description

Self-adaptive access method and device and electronic equipment
Technical Field
The present invention relates to the field of network access technologies, and in particular, to a method and an apparatus for adaptive access, and an electronic device.
Background
With the development of internet technology, the broadcasting and television operation industry develops not only traditional broadcasting and television digital television services, but also value-added services such as intelligent families, video communication and the like, of internet services and third-party network services, achieves multi-network integration of services, is limited by industry special network structures, and does not support users to simultaneously access various types of network services through one address path.
At present, a user selects a network service corresponding to a current address path for access at a client by manually switching the address path. For users who access different network services frequently, frequent switching operations are required. Such a method is cumbersome and the user experience is not good.
Disclosure of Invention
In view of this, the present invention provides a self-adaptive access method, a self-adaptive access device and an electronic device, so as to improve user experience.
In a first aspect, an embodiment of the present invention provides an adaptive access method, applied to a gateway, including: receiving an access request sent by a client; wherein, the access request carries a target IP (Internet Protocol) address; determining a target internet access corresponding to the target IP address through a preset self-adaptive routing engine; the self-adaptive routing engine comprises a plurality of network ports; each network port corresponds to a plurality of IP addresses; and forwarding the access request of the client to the target internet access so that the client accesses the network service corresponding to the target internet access.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where a plurality of IP aggregation lists are set in an adaptive routing engine; each IP set list corresponds to one of the plurality of network ports; each IP set list stores a plurality of IP address sets; a dynamic routing table is also arranged in the self-adaptive routing engine; the dynamic routing table stores a plurality of IP addresses and the corresponding relation between each IP address and the network port.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the step of determining, by using a preset adaptive routing engine, a target portal corresponding to a target IP address includes: judging whether the target IP address exists in a dynamic routing table or not; if yes, finding out the network port corresponding to the target IP address from the dynamic routing table, and determining the found network port as the target network port; if not, determining the target internet access corresponding to the target IP address based on the multiple IP set lists.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the network port includes a first network port, a second network port, and a third network port; the IP set list comprises a radio and television intranet IP set list corresponding to the first internet access and a third-party network IP set list corresponding to the second internet access; the radio and television intranet IP set list and the third-party network IP set list are established based on a server associated with the gateway.
With reference to the third possible implementation manner of the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the step of determining, based on multiple IP aggregation lists, a target portal corresponding to a target IP address includes: judging whether the target IP address is matched with one of a plurality of IP address sets in a radio and television intranet IP set list or not; if yes, determining the first internet access as a target internet access corresponding to the target IP address; if not, judging whether the target IP address is matched with one of a plurality of IP address sets in the third-party network IP set list or not; if yes, determining the second internet access as a target internet access corresponding to the target IP address; if not, determining the third internet access as a target internet access corresponding to the target IP address; and the network service corresponding to the third network port is an internet service.
With reference to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where after determining a target portal corresponding to a target IP address, the method further includes: judging whether the memory of the dynamic routing table is smaller than a preset memory threshold value or not; if yes, loading the target IP address and the corresponding relation between the target IP address and the corresponding target internet access into the dynamic routing table so as to update the dynamic routing table; if not, after deleting the first IP address and the corresponding relation between the first IP address and the corresponding network port from the dynamic routing table, loading the target IP address and the corresponding relation between the target IP address and the corresponding target network port into the dynamic routing table so as to update the dynamic routing table.
With reference to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where before determining whether the target IP address matches one of multiple IP address sets in an intranet IP set list, the method further includes: and sending an updating request to a server associated with the gateway so as to update and save the radio and television intranet IP set list and the third-party network IP set list through the server.
In a second aspect, an embodiment of the present invention provides an adaptive access apparatus, which is disposed in a gateway, and includes: the access request receiving module is used for receiving an access request sent by a client; wherein, the access request carries a target IP address; the target internet access determining module is used for determining a target internet access corresponding to the target IP address through a preset self-adaptive routing engine; the self-adaptive routing engine comprises a plurality of network ports; each network port corresponds to a plurality of IP addresses; and the access module is used for forwarding the access request of the client to the target internet access so that the client accesses the network service corresponding to the target internet access.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory and a processor, where the memory stores a computer program that is executable on the processor, and the processor implements the steps of the method according to any one of the first to sixth possible implementation manners of the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs the steps of the method according to any one of the first to sixth possible implementation manners of the first aspect.
The embodiment of the invention provides a self-adaptive access method, a self-adaptive access device and electronic equipment, wherein the method is applied to a gateway and comprises the steps of firstly receiving an access request which is sent by a client and carries a target IP address; then, determining a target internet access corresponding to the target IP address through a preset self-adaptive routing engine; the self-adaptive routing engine comprises a plurality of network ports; each network port corresponds to a plurality of IP addresses; and further forwarding the access request of the client to the target internet access so that the client accesses the network service corresponding to the target internet access. The method provided by the embodiment of the invention can determine the target internet access corresponding to the target IP address carried in the access request initiated by the client through the self-adaptive routing engine q, and provides the client with the network service corresponding to the target internet access to be accessed.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an adaptive access method according to an embodiment of the present invention;
fig. 2 is a flowchart of another adaptive access method according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for updating an IP aggregation list of a radio and television intranet according to an embodiment of the present invention;
fig. 4 is a schematic view of an interaction structure between a client and a gateway according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a data flow according to an embodiment of the present invention;
fig. 6 is a block diagram of an adaptive access apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
With the development of internet technology, the broadcasting and television operation industry develops traditional broadcasting and television digital television services, such as standard definition programs, high definition programs, television review and on-demand broadcasting; the internet service and the third-party network service such as value-added services of intelligent families, video communication and the like are also developed, the multi-network integration of the services is desired, but the service is limited by an industry special network structure and the existing terminal equipment (such as a digital television set top box, a family intelligent device and the like), and the user is not supported to access multiple types of network services simultaneously through one address path. At present, a user selects a network service corresponding to a current address path for access at a client by manually switching the address path. For users who access different network services frequently, frequent switching operations are required. Such a method is cumbersome and makes the user experience poor.
For example, when a radio and television operator wants to simultaneously develop traditional radio and television services and other value-added services such as internet or communication, three networks must be accessed: broadcasting and TV intranet, internet and third party network. Due to the special security and confidentiality nature of the radio and television industry, a radio and television intranet needs to be an independent network system, and is required not to be directly accessed to the internet and a third-party network. Based on the particularity of the broadcasting and television industry, broadcasting and television operators must operate on the premise of ensuring the safety of a broadcasting and television intranet when developing various new value-added services. In the existing radio and television operation network architecture, generally, SSIDs (Service Set identifiers) respectively corresponding to a radio and television intranet, the internet and a third-party network are Set in a radio and television Set-top box or a gateway; when a user wants to access services in different networks, the user can access different SSIDs by accessing a WIreless FIdelity (WIFI) of a client such as a mobile phone, a television, a tablet computer and the like to the different SSIDs, for example, the user wants to watch internet news and the like, and can access corresponding services by manually switching the WIFI of the client to access a set top box or an internet service SSID in a gateway; when a user wants to watch live television or on-demand programs of broadcasting and TV, the user can access the corresponding service only by manually switching WIFI access set top boxes of client sides or 'broadcasting and TV service SSIDs' of gateways; when a user wants to open a third-party network service using radio and television, such as video communication, smart home and the like, the service can be accessed only by manually switching the 'communication service SSID' of the WIFI access set-top box/gateway of the client. When the mode is used for simultaneously developing services in different network environments, great inconvenience and trouble are brought to users, especially children and old people are difficult to master the related network environment switching operation, and meanwhile, great popularization obstacles are brought to radio and television operators to operate related services.
Based on this, the self-adaptive access method, the self-adaptive access device and the electronic equipment provided by the embodiment of the invention can effectively improve the experience of the user.
In order to understand the embodiment, first, a detailed description is given to an adaptive access method disclosed in the embodiment of the present invention, which is applied to a gateway, and when the method is actually applied, the method can also be applied to a broadcast and television bidirectional access network device such as a digital television set-top box, a TVOS smart set-top box, and the method includes:
step S102, receiving an access request sent by a client; wherein, the access request carries a target IP address; the target IP address is the address of the network service to be accessed by the client.
Step S104, determining a target internet access corresponding to the target IP address through a preset self-adaptive routing engine;
the self-adaptive routing engine comprises a plurality of network ports; each network port corresponds to a plurality of IP addresses.
Step S106, the access request of the client is forwarded to the target network port, so that the client accesses the network service corresponding to the target network port.
The embodiment of the invention provides a self-adaptive access method, which comprises the steps of firstly receiving an access request which is sent by a client and carries a target IP address; then, determining a target internet access corresponding to the target IP address through a preset self-adaptive routing engine; the self-adaptive routing engine comprises a plurality of network ports; each network port corresponds to a plurality of IP addresses; and further forwarding the access request of the client to the target internet access so that the client accesses the network service corresponding to the target internet access. The method provided by the embodiment of the invention can determine the target internet access corresponding to the target IP address carried in the access request initiated by the client through the self-adaptive routing engine, and provides the client with the network service corresponding to the target internet access to be accessed.
Specifically, the adaptive routing engine is provided with a plurality of IP set lists; each IP set list corresponds to one of the plurality of network ports; each IP set list stores a plurality of IP address sets; in order to save space and improve transmission and storage efficiency, the IP address sets in the IP set list can be preferably represented by IP address intervals. For example: 192.168.1.1 ~ 192.168.1.255 or 192.168.1.0/24.
A dynamic routing table is also arranged in the self-adaptive routing engine; the dynamic routing table stores a plurality of IP addresses and the corresponding relation between each IP address and the network port. In practical application, the dynamic routing table may be constructed based on the multiple IP aggregation lists, that is, the data in the dynamic routing table is derived from the multiple IP aggregation lists, and the multiple IP addresses stored in the dynamic routing table are the IP addresses corresponding to the history records of the network services accessed by the client.
Based on this, another adaptive access method is provided in the embodiment of the present invention, a specific implementation manner of step S104 is shown in detail on the basis of fig. 1, that is, determining, by using a preset adaptive routing engine, a target portal corresponding to a target IP address is shown in fig. 2, where the method includes:
step S202, receiving an access request sent by a client; wherein, the access request carries the target IP address.
Step S204, judging whether the target IP address exists in a dynamic routing table; if yes, go to step S206, if no, go to step S208.
Step S206, finding out the internet access corresponding to the target IP address from the dynamic routing table, and determining the found internet access as the target internet access.
And step S208, determining a target internet access corresponding to the target IP address based on the multiple IP set lists.
Step S210, forwarding the access request of the client to the target portal, so that the client accesses the network service corresponding to the target portal.
In the above manner provided by the embodiment of the present invention, when determining the target gateway corresponding to the target IP address, the dynamic routing table corresponding to the history record of the visited network service is first searched, and if the dynamic routing table does not exist, the dynamic routing table is searched from a plurality of IP aggregation lists. The method can improve the efficiency of route forwarding, quickly respond to the access request of the client and contribute to improving the experience degree of the user.
In specific implementation, the network ports comprise a first network port, a second network port and a third network port; the IP set list comprises a radio and television intranet IP set list corresponding to the first internet access and a third-party network IP set list corresponding to the second internet access; the radio and television intranet IP set list and the third-party network IP set list are established based on a server associated with the gateway.
In an alternative embodiment, the step S208, that is, determining the target portal corresponding to the target IP address based on the multiple IP aggregation lists, may be implemented with reference to the following steps:
step (1), judging whether a target IP address is matched with one of a plurality of IP address sets in a radio and television intranet IP set list or not; if yes, executing the step (2); if not, executing step (2).
And (1) determining the first internet access as a target internet access corresponding to the target IP address.
Step (2), judging whether the target IP address is matched with one of a plurality of IP address sets in a third-party network IP set list; if yes, executing the step (3); if not, executing step (4).
Step (3), the second internet access is determined as a target internet access corresponding to the target IP address;
step (4), determining the third internet access as a target internet access corresponding to the target IP address; and the network service corresponding to the third network port is an internet service.
In actual use, the network IP set list which does not belong to the radio and television intranet IP set list or the third-party network IP set list is regarded as belonging to the Internet IP set list. Specifically, the order of judging whether the target IP address is matched with the radio and television intranet IP set list or the third-party network IP set list may be set according to actual conditions such as user habits.
Further, after determining the target portal corresponding to the target IP address, the method further includes updating the dynamic routing table, which may be implemented by referring to the following specific embodiments:
(1) judging whether the memory of the dynamic routing table is smaller than a preset memory threshold value or not; if so, executing (2); if not, (3) is performed.
The preset memory threshold may be set according to practical applications, such as the maximum memory limit of the dynamic routing table, and is not limited herein. In addition, considering that a plurality of clients may initiate access requests simultaneously, and that two or more clients have the same network services to be accessed, that is, may generate the same corresponding relationship between the target IP address and the network port simultaneously, before determining whether the memory of the dynamic routing table is smaller than the preset memory threshold value in the actual application, the method further includes determining whether the target IP address exists in the dynamic routing table, and if so, ending the process; if not, judging whether the memory of the dynamic routing table is smaller than a preset memory threshold value.
(2) And loading the target IP address and the corresponding relation between the target IP address and the corresponding target internet access into the dynamic routing table so as to update the dynamic routing table.
(3) And after the first IP address and the corresponding relation between the first IP address and the corresponding network port are deleted from the dynamic routing table, loading the target IP address and the corresponding relation between the target IP address and the corresponding target network port into the dynamic routing table so as to update the dynamic routing table.
Further, before determining whether the target IP address matches one of a plurality of IP address sets in the radio and television intranet IP set list, the method further includes: and sending an updating request to a server associated with the gateway so as to update and save the radio and television intranet IP set list and the third-party network IP set list through the server.
For convenience of understanding, the description will be given by taking an example of updating the radio and television intranet IP set list. When the gateway system is started, the system initialization process sends an update request to a front-end management server (namely, a server associated with the gateway), and actively requests data to update the radio and television intranet IP set list. Specifically, an embodiment of the present invention provides a method for updating an IP aggregation list of a radio and television intranet, as shown in fig. 3, where the method includes the following steps:
step S302, initializing an IP list of the radio and television intranet and acquiring a plurality of IP address sets.
Step S304, sending an update request to the front-end management server through the network protocol.
Step S306, judging whether the corresponding data in the front-end management server is updated; if yes, go to step S308; if not, step S306 is re-executed.
And step S308, updating and storing the IP address set in the radio and television intranet IP list based on the updated data in the front-end management server.
According to the method for updating the radio and television intranet IP set list provided by the embodiment of the invention, whether the data in the front-end management server is updated or not is judged in a circulating manner, and the IP address set in the radio and television intranet IP list can be updated and stored in real time. The accuracy of subsequently determining the target internet access corresponding to the target IP address can be ensured.
In practical application, considering that the update frequency of the broadcast circuit routing table (i.e., the aforementioned broadcast intranet IP set list) is generally low, the broadcast circuit routing table may be file data stored in a built-in storage device, and will not be lost when the system is restarted. The dynamic routing table and the third-party network IP set list are preferably stored as data in a memory, records in the table are emptied when the system is powered off, and initialization is carried out again after the system is powered on next time.
Further, for convenience of understanding, an interaction structure diagram of the client and the gateway is provided in the embodiment of the present invention, as shown in fig. 4, 3 clients are shown in the diagram, and are a home user client a, a home user client B, and a home user client C, respectively. The gateway is provided with a WIFI module and a multi-WAN (Wide Area Network) port routing dynamic management module, namely the self-adaptive routing engine. The multi-WAN port routing dynamic management module is provided with 3 network ports which are respectively a WAN port A corresponding to an Internet network service, a WAN port B corresponding to a radio and television intranet network service and a WAN port C corresponding to a network service of a third-party network such as an intelligent home and video communication; and an intranet virtual WAN port connected with the WIFI module is also arranged.
In actual application, after the in-home user client a, the in-home user client B and the in-home user client C are connected to the home SSID, that is, connected to the WIFI module, the gateway receives an access request from the client, and forwards the access request from a target WAN port corresponding to a target IP address through the multi-WAN port routing dynamic management module according to the target IP address carried in the access request, so that the client can successfully access a network service corresponding to the target WAN port. In practical application, the gateway can be replaced by a set-top box. A user can access all network services such as a radio and television intranet, the Internet, a third-party network and the like by operating the client to connect one SSID of the set top box or the gateway, and frequent switching of the SSID is not needed. In such a way, the radio and television operators can be greatly helped to improve the experience of simultaneous access of multiple services of the users; the method is convenient for the broadcasting and television operators to develop and operate various third-party value-added services on the premise of ensuring the independence and safety of the broadcasting and television network. Namely, the broadcast television network is still isolated from other networks and is independent, and the requirement of multi-network convergence is realized through terminal software.
In addition, an embodiment of the present invention further provides a data flow diagram, as shown in fig. 5, taking a home intelligent gateway as an example, which specifically illustrates a data interaction flow between the gateway and a client and between the gateway and each network service. Among them, the front end shown in fig. 5 includes a radio and television intranet service module (i.e., the radio and television intranet shown in fig. 5), an internet service module (i.e., the internet shown in fig. 5), and a third party network service module (i.e., the third party network shown in fig. 5); the terminal is also the client. Specifically, each module in the front end is connected with the home intelligent gateway through an access module in the home intelligent gateway, so that the home intelligent gateway extracts relevant data and transmits the relevant data to the terminal. TS stream data about live broadcast or on demand, such as shown in the figure, is finally provided to a terminal for use in an IP data format through modules such as demodulation, demultiplexing, descrambling, multi-path IP distribution, HTTP service and the like in a home intelligent gateway; and obtaining data such as EPG, CA information and the like from the code stream, and providing the data for the terminal to use by an HTTP protocol.
All subsystems and modules inside the home intelligent gateway are communicated by an IP protocol, and the data part mainly comprises an access module (internet access/CM/EOC/ONU), a router/switch (main chip soft route or single AP module), a firewall and the like. The terminal accesses broadband IP data or accesses radio and television intranet IP video, live broadcast video forwarded by the gateway and the like, and the data or the video and the like pass through a router/switch (a main chip soft route or an independent AP module). All data and services externally provided by the gateway are IP protocols, and the external interface comprises: RJ45 x 2, USB 4, WiFi 2, MoCA 1, IP address of each terminal behind gateway dynamically obtaining IP from DHCP server inside gateway; the network at the terminal side of the gateway takes the dynamic IP address allocation of a DHCP server (DHCP-Home in the figure, namely the local gateway) in the gateway as the main part, and simultaneously, the terminal is supported to be capable of directly acquiring the IP address from a DHCP server at the local side (DHCP-TV and DHCP-partner in the figure) so as to meet the operation requirements of operators under various special conditions.
The intelligent home terminal module, the home old-age terminal module and the home security terminal module in the home intelligent gateway are value-added service data parts, the external interfaces of the parts of the modules are mainly IP or USB expansion, the working principle is that value-added service clients, plug-ins and the like are dynamically downloaded from the front end to the gateway to run, and the IP terminal directly communicates with the value-added service server. The WiFi module in the Home intelligent gateway supports two configurations, one configuration is that an IP address is obtained from DHCH-Home (gateway local); another possibility is to obtain the IP address from the DHCH-partner, mainly for the operator to work with other network operators.
The gateway provided by the embodiment of the invention can uniformly manage and process network information such as IP addresses, routing tables and the like of a plurality of WAN ports, is internally provided with the self-adaptive routing engine, and can automatically forward data to a required destination network according to different types of accessed terminals or different types of services, such as by analyzing a target IP address carried in an access request sent by a client; the dynamic routing table is autonomously judged and updated, and the routing rules, i.e., the IP address set list, are updated based on the associated servers.
Corresponding to the above method, an embodiment of the present invention provides an adaptive access device, which is disposed in a gateway, and may also be disposed in a broadcast and television bidirectional access network device such as a digital television set-top box, a TVOS smart set-top box, and as shown in fig. 6, the adaptive access device includes:
an access request receiving module 602, configured to receive an access request sent from a client; wherein, the access request carries a target IP address;
a target portal determination module 604, configured to determine, by using a preset adaptive routing engine, a target portal corresponding to the target IP address; the self-adaptive routing engine comprises a plurality of network ports; each network port corresponds to a plurality of IP addresses;
the access module 606 is configured to forward the access request of the client to the target portal, so that the client accesses the network service corresponding to the target portal.
The embodiment of the invention provides a self-adaptive access device, which comprises the steps of firstly receiving an access request which is sent by a client and carries a target IP address; then, determining a target internet access corresponding to the target IP address through a preset self-adaptive routing engine; the self-adaptive routing engine comprises a plurality of network ports; each network port corresponds to a plurality of IP addresses; and further forwarding the access request of the client to the target internet access so that the client accesses the network service corresponding to the target internet access. The embodiment of the invention can determine the target network port corresponding to the target IP address carried in the access request initiated by the client through the self-adaptive routing engine, provides the network service corresponding to the target network port to be accessed to the client, is more convenient and faster compared with the mode that the user needs to manually switch the address path to access the network service corresponding to the current address path in the prior art, and can effectively improve the experience of the user.
The device provided by the embodiment has the same implementation principle and technical effect as the foregoing embodiment, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiment for the portion of the embodiment of the device that is not mentioned.
Further, the present embodiment also provides an electronic device, which includes a memory and a processor, where the memory stores a computer program that can be executed on the processor, and the processor implements the steps of the adaptive access method when executing the computer program.
Referring to fig. 7, a schematic structural diagram of an electronic device is shown, which illustrates an electronic device 700, including: the processor 70, the memory 71, the bus 72 and the communication interface 73, wherein the processor 70, the communication interface 73 and the memory 71 are connected through the bus 72; the processor 70 is arranged to execute executable modules, such as computer programs, stored in the memory 71.
The Memory 71 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 73 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
The bus 72 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 7, but this does not indicate only one bus or one type of bus.
The memory 71 is configured to store a program 701, and the processor 70 executes the program 701 after receiving an execution instruction, where the method executed by the apparatus defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 70, or implemented by the processor 70.
The processor 70 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 70. The Processor 70 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory 71, and the processor 70 reads the information in the memory 71 and completes the steps of the method in combination with the hardware thereof.
Further, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of any one of the foregoing adaptive access methods. For specific implementation, reference may be made to the method embodiment, which is not described herein again.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be 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, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes 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 steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (7)

1. An adaptive access method applied to a gateway, comprising:
receiving an access request sent by a client; wherein, the access request carries a target IP address;
determining a target internet access corresponding to the target IP address through a preset self-adaptive routing engine; the self-adaptive routing engine comprises a plurality of network ports; each network port corresponds to a plurality of IP addresses;
the self-adaptive routing engine is provided with a plurality of IP set lists; each of the IP aggregation lists corresponds to one of the plurality of network ports; each IP set list stores a plurality of IP address sets;
a dynamic routing table is also arranged in the self-adaptive routing engine; a plurality of IP addresses and the corresponding relation between each IP address and the internet access are stored in the dynamic routing table;
the step of determining the target internet access corresponding to the target IP address through a preset adaptive routing engine includes:
judging whether the target IP address exists in the dynamic routing table or not;
if yes, finding out the network port corresponding to the target IP address from the dynamic routing table, and determining the found network port as a target network port;
if not, determining a target internet access corresponding to the target IP address based on the various IP set lists;
the network port comprises a first network port, a second network port and a third network port;
the IP set list comprises a radio and television intranet IP set list corresponding to the first internet access and a third-party network IP set list corresponding to the second internet access; the radio and television intranet IP set list and the third-party network IP set list are established based on a server associated with the gateway;
and forwarding the access request of the client to the target internet access so that the client accesses the network service corresponding to the target internet access.
2. The method according to claim 1, wherein the step of determining the target portal corresponding to the target IP address based on the plurality of IP aggregation lists comprises:
judging whether the target IP address is matched with one of a plurality of IP address sets in the radio and television intranet IP set list or not;
if yes, determining the first internet access as a target internet access corresponding to the target IP address;
if not, judging whether the target IP address is matched with one of a plurality of IP address sets in the third-party network IP set list or not;
if yes, determining the second internet access as a target internet access corresponding to the target IP address;
if not, determining the third internet access as a target internet access corresponding to the target IP address; and the network service corresponding to the third network port is an internet service.
3. The method of claim 2, wherein after determining the target portal corresponding to the target IP address, the method further comprises:
judging whether the memory of the dynamic routing table is smaller than a preset memory threshold value or not;
if yes, loading the target IP address and the corresponding relation between the target IP address and the corresponding target internet access into the dynamic routing table so as to update the dynamic routing table;
if not, after deleting the first IP address which is firstly stored in the dynamic routing table and the corresponding relation between the first IP address and the corresponding network port from the dynamic routing table, loading the target IP address and the corresponding relation between the target IP address and the corresponding target network port into the dynamic routing table so as to update the dynamic routing table.
4. The method of claim 2, wherein prior to determining whether the target IP address matches one of a plurality of IP address sets of the intranet IP set list, the method further comprises:
and sending an updating request to a server associated with the gateway so as to update and save the radio and television intranet IP set list and the third-party network IP set list through the server.
5. An adaptive access device, provided in a gateway, comprising:
the access request receiving module is used for receiving an access request sent by a client; wherein, the access request carries a target IP address;
the target internet access determining module is used for determining a target internet access corresponding to the target IP address through a preset self-adaptive routing engine; the self-adaptive routing engine comprises a plurality of network ports; each network port corresponds to a plurality of IP addresses;
the self-adaptive routing engine is provided with a plurality of IP set lists; each of the IP aggregation lists corresponds to one of the plurality of network ports; each IP set list stores a plurality of IP address sets;
a dynamic routing table is also arranged in the self-adaptive routing engine; a plurality of IP addresses and the corresponding relation between each IP address and the internet access are stored in the dynamic routing table;
the step of determining the target internet access corresponding to the target IP address through a preset adaptive routing engine includes:
judging whether the target IP address exists in the dynamic routing table or not;
if yes, finding out the network port corresponding to the target IP address from the dynamic routing table, and determining the found network port as a target network port;
if not, determining a target internet access corresponding to the target IP address based on the various IP set lists;
the network port comprises a first network port, a second network port and a third network port;
the IP set list comprises a radio and television intranet IP set list corresponding to the first internet access and a third-party network IP set list corresponding to the second internet access; the radio and television intranet IP set list and the third-party network IP set list are established based on a server associated with the gateway;
and the access module is used for forwarding the access request of the client to the target internet access so that the client accesses the network service corresponding to the target internet access.
6. An electronic device, comprising a memory and a processor, wherein the memory stores a computer program operable on the processor, and the processor executes the computer program to perform the steps of the method according to any of the preceding claims 1 to 4.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of the claims 1 to 4.
CN201811522058.7A 2018-12-12 2018-12-12 Self-adaptive access method and device and electronic equipment Active CN109672613B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811522058.7A CN109672613B (en) 2018-12-12 2018-12-12 Self-adaptive access method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811522058.7A CN109672613B (en) 2018-12-12 2018-12-12 Self-adaptive access method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109672613A CN109672613A (en) 2019-04-23
CN109672613B true CN109672613B (en) 2021-06-18

Family

ID=66144252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811522058.7A Active CN109672613B (en) 2018-12-12 2018-12-12 Self-adaptive access method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109672613B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112350845B (en) * 2019-08-09 2022-05-17 华为技术有限公司 Wide area network port configuration method, network device and computer readable storage medium
CN113468890B (en) * 2021-07-20 2023-05-26 南京信息工程大学 Sedimentology literature mining method based on NLP information extraction and part-of-speech rules
CN115051950B (en) * 2022-06-23 2023-08-18 南京邮电大学 Self-adaptive data forwarding system and method for different service types

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106473A (en) * 2006-07-14 2008-01-16 株式会社日立制作所 Receiving system or terminal for contents via ip network
CN106789526A (en) * 2016-11-29 2017-05-31 北京元心科技有限公司 Method and device for connecting multiple system networks
WO2018034172A1 (en) * 2016-08-19 2018-02-22 ソニー株式会社 Information processing device, client device, and data processing method
CN108777722A (en) * 2018-04-25 2018-11-09 广州视源电子科技股份有限公司 Multisystem group-net communication method, apparatus, mobile terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106473A (en) * 2006-07-14 2008-01-16 株式会社日立制作所 Receiving system or terminal for contents via ip network
WO2018034172A1 (en) * 2016-08-19 2018-02-22 ソニー株式会社 Information processing device, client device, and data processing method
CN106789526A (en) * 2016-11-29 2017-05-31 北京元心科技有限公司 Method and device for connecting multiple system networks
CN108777722A (en) * 2018-04-25 2018-11-09 广州视源电子科技股份有限公司 Multisystem group-net communication method, apparatus, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN109672613A (en) 2019-04-23

Similar Documents

Publication Publication Date Title
AU2021277736B2 (en) Pdu type setting method, ue policy setting method, and related entity
US10827421B2 (en) Network slice selection method, user equipment, and network device
US11451510B2 (en) Method and apparatus for processing service request
US11356410B2 (en) Packet transmission method and device, and computer readable storage medium
CN109672613B (en) Self-adaptive access method and device and electronic equipment
CN108401037B (en) Binding method, device and system of user terminal and equipment
CN110881207A (en) Network slice selection method and related product
CN111405042B (en) Electronic device discovery method and device, storage medium and electronic device
WO2022078475A1 (en) Application service path establishing method and apparatus for multi-card terminal, and storage medium, and terminal
CN109150741B (en) Message sending method and device, electronic equipment and storage medium
CN105142189B (en) The roam control method and device of website
CN109862437B (en) Forwarding table item creating method and BRAS
US11805049B2 (en) Communication method and communications device
CN111163469A (en) Network distribution method of intelligent household appliance, wireless module and intelligent household appliance
CN108207012B (en) Flow control method, device, terminal and system
US10863555B2 (en) Access method, apparatus, device, and system
CN105721189A (en) Network port configuration method and device for network equipment
JP2023530608A (en) Network slice switching method, terminal, storage medium, and electronic device
CN107786441B (en) Communication method, OpenFlow switch and communication system
US20180332134A1 (en) Access Record Feedback Method, Device, And System
CN109151085B (en) Method and device for sending domain name query request
CN112511440B (en) Message forwarding method, system, storage medium and electronic equipment
US11240732B2 (en) Method and device for managing mobile node of SDN controller
CN113824789A (en) Configuration method, device, equipment and storage medium of path descriptor
CN108495299B (en) Method and device for receiving service information and multimode terminal

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