CN106850813A - Network service address changing method and device - Google Patents

Network service address changing method and device Download PDF

Info

Publication number
CN106850813A
CN106850813A CN201710079241.3A CN201710079241A CN106850813A CN 106850813 A CN106850813 A CN 106850813A CN 201710079241 A CN201710079241 A CN 201710079241A CN 106850813 A CN106850813 A CN 106850813A
Authority
CN
China
Prior art keywords
server
network service
address
service request
domain name
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.)
Pending
Application number
CN201710079241.3A
Other languages
Chinese (zh)
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.)
Alibaba China Co Ltd
Original Assignee
1Verge Internet Technology Beijing 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 1Verge Internet Technology Beijing Co Ltd filed Critical 1Verge Internet Technology Beijing Co Ltd
Priority to CN201710079241.3A priority Critical patent/CN106850813A/en
Publication of CN106850813A publication Critical patent/CN106850813A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • 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

This disclosure relates to a kind of network service address changing method and device.The method includes:The first domain name when initiating network service request in the application to first server carries out address resolution, obtains the first IP address;Network service request for first server is initiated based on the first IP address;In the address resolution failure to the first domain name or the network service request failure for first server, the second IP address based on second server initiates the network service request for second server.Address resolution is carried out to the first domain name to obtain the first IP address by when network service request is initiated according to the embodiment of the present disclosure, initiate the network service request for first server, and when the first domain name addresses parses failure or the network service request failure for first server, network service request for second server is initiated based on the second IP address, so as to ensure the network service connection of application, Consumer's Experience is lifted.

Description

Network service address changing method and device
Technical field
This disclosure relates to field of computer technology, more particularly to a kind of network service address changing method and device.
Background technology
In the related art, for initiating network service request in the application, it is typically based on domain name DNS or equal based on load The mode of weighing apparatus (server end), determining the network service request of user's (application) should be sent to which server/which machine The server in room.However, according to the principle of domain name DNS, if corresponding DNS (dns resolution failure) cannot be parsed, user without Method accesses corresponding server;And when by the way of unified load equalizer (server end), if cannot access unified negative Balanced device (server end) is carried, then user's request cannot also access corresponding server.
The content of the invention
In view of this, the present disclosure proposes a kind of network service address changing method and device, ensure that the net of application Network service is connected, and lifts Consumer's Experience.
According to the one side of the disclosure, there is provided a kind of network service address changing method, including:
In the case of initiating network service request in the application, the first domain name to first server carries out address resolution, Obtain the first IP address of the first server;
The first IP address based on the first server, initiates the network service request for the first server;
In the address resolution failure to first domain name or the network service request failure for the first server In the case of, the second IP address based on second server initiates the network service request for the second server.
For the above method, in a kind of possible implementation, methods described also includes:
2nd IP of the first domain name and the second server corresponding to the first server is set in the application Address.
For the above method, in a kind of possible implementation, to first domain name address resolution failure or For the first server network service request failure in the case of, the second IP address based on second server, initiate For the network service request of the second server, including:
In the address resolution failure to first domain name or the network service request failure for the first server In the case of, judge whether to meet switching condition;
In the case where switching condition is met, the second IP address based on second server is initiated for the described second clothes The network service request of business device.
For the above method, in a kind of possible implementation, judge whether to meet switching condition, including:
In the case where judging that terminal device is in specific geographical area, it is judged as meeting switching condition.
For the above method, in a kind of possible implementation, the first server is General Server, described the Two servers are standby server,
Wherein, the function of the standby server is weaker than the General Server.
According to another aspect of the present disclosure, there is provided a kind of network service address switching device, including:
First address acquisition module, in the case of initiating network service request in the application, to first server First domain name carries out address resolution, obtains the first IP address of the first server;
First request initiation module, for the first IP address based on the first server, initiates to be directed to described first The network service request of server;
Second request initiation module, in the address resolution failure to first domain name or for the first service In the case of the network service request failure of device, the second IP address based on second server is initiated to be directed to the second service The network service request of device.
For said apparatus, in a kind of possible implementation, described device also includes:
Domain name and address setup module, for set in the application corresponding to the first server the first domain name and Second IP address of the second server.
For said apparatus, in a kind of possible implementation, the second request initiation module includes:
Condition judgment submodule, in the address resolution failure to first domain name or for the first server Network service request failure in the case of, judge whether to meet switching condition;
Submodule is initiated in request, in the case where switching condition is met, the second IP address based on second server, Initiate the network service request for the second server.
For said apparatus, in a kind of possible implementation, the condition judgment submodule includes:
First judging submodule, in the case where judging that terminal device is in specific geographical area, being judged as meeting Switching condition.
For said apparatus, in a kind of possible implementation, the first server is General Server, described the Two servers are standby server,
Wherein, the function of the standby server is weaker than the General Server.
According to another aspect of the present disclosure, there is provided a kind of network service address switching device, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
In the case of initiating network service request in the application, the first domain name to first server carries out address resolution, Obtain the first IP address of the first server;
The first IP address based on the first server, initiates the network service request for the first server;
In the address resolution failure to first domain name or the network service request failure for the first server In the case of, the second IP address based on second server initiates the network service request for the second server.
According to another aspect of the present disclosure, there is provided a kind of non-volatile computer readable storage medium storing program for executing, when the storage Instruction in medium by terminal and/or server computing device when so that terminal and/or server are able to carry out a kind of letter Breath recognition methods, methods described includes:
In the case of initiating network service request in the application, the first domain name to first server carries out address resolution, Obtain the first IP address of the first server;
The first IP address based on the first server, initiates the network service request for the first server;
In the address resolution failure to first domain name or the network service request failure for the first server In the case of, the second IP address based on second server initiates the network service request for the second server.
Network service address changing method and device according to disclosure each side, can be by initiating network in the application The first domain name is carried out address resolution to obtain the first IP address during service request, the network service for first server is initiated Request, and when the first domain name addresses parses failure or the network service request failure for first server, based on the 2nd IP The network service request for second server is initiated in address, so as in domain name mapping failure or for the network of first server Ensure the network service connection of application when service request fails, lift Consumer's Experience.
According to below with reference to the accompanying drawings to detailed description of illustrative embodiments, the further feature and aspect of the disclosure will become It is clear.
Brief description of the drawings
Comprising in the description and accompanying drawing and the specification of the part that constitutes specification together illustrates the disclosure Exemplary embodiment, feature and aspect, and for explaining the principle of the disclosure.
Fig. 1 is a kind of flow chart of the network service address changing method according to an exemplary embodiment.
Fig. 2 is a kind of signal of the application scenarios of the network service address changing method according to an exemplary embodiment Figure.
Fig. 3 is a kind of flow chart of the network service address changing method according to an exemplary embodiment.
The flow of the step of Fig. 4 is a kind of network service address changing method according to an exemplary embodiment 13 Figure.
The flow of the step of Fig. 5 is a kind of network service address changing method according to an exemplary embodiment 13 Figure.
Fig. 6 is a kind of block diagram of the network service address switching device according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of the network service address switching device according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of the network service address switching device according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of the network service address switching device according to an exemplary embodiment.
Specific embodiment
Describe various exemplary embodiments, feature and the aspect of the disclosure in detail below with reference to accompanying drawing.It is identical in accompanying drawing Reference represent the same or analogous element of function.Although the various aspects of embodiment are shown in the drawings, remove Non-specifically is pointed out, it is not necessary to accompanying drawing drawn to scale.
Special word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary " Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the disclosure, numerous details are given in specific embodiment below. It will be appreciated by those skilled in the art that without some details, the disclosure can equally be implemented.In some instances, for Method well known to those skilled in the art, means, element and circuit are not described in detail, in order to highlight the purport of the disclosure.
Embodiment 1
Fig. 1 is a kind of flow chart of the network service address changing method according to an exemplary embodiment.The method In can be applied to terminal device (such as smart mobile phone, computer etc.) or server.As shown in figure 1, according to the embodiment of the present disclosure Network service address changing method includes:
Step S11, in the case of initiating network service request in the application, the first domain name to first server carries out ground Location parses, and obtains the first IP address of the first server;
Step S12, the first IP address based on the first server is initiated to be taken for the network of the first server Business request;
Step S13, in the address resolution failure to first domain name or for the network service of the first server In the case of request failure, the second IP address based on second server initiates the network service for the second server Request.
In accordance with an embodiment of the present disclosure can be by initiating to carry out ground to the first domain name during network service request in the application Location parsing initiates the network service request for first server to obtain the first IP address, and in the parsing of the first domain name addresses When failure or the network service request for first server fail, the net for second server is initiated based on the second IP address Network service request, so as to ensure the net of application in domain name mapping failure or the network service request failure for first server Network service is connected, and lifts Consumer's Experience.
For example, for the application (such as video class APP) of network service can be asked, can set in advance in the application It is equipped with one or more domain names DNS (the first domain name) and one or more actual IP address (the second IP address).First domain Name and the second IP address can be loaded into application when application is installed, it is also possible to be dynamically loaded into during application use In, the disclosure is not especially limited to the first domain name and the second IP address load mode.
Fig. 2 is a kind of signal of the application scenarios of the network service address changing method according to an exemplary embodiment Figure.In a kind of possible implementation, network clothes are initiated in application (being, for example, terminal device 24 using the equipment at place) During business request, can pair first domain name corresponding with first server carry out address resolution, to obtain the of first server One IP address.Wherein, first server (such as the server 21 in Fig. 2) can be the same computer room with identical IP address Or multiple servers or server cluster of the same area, the first domain name can be expressed as such as Sdkapia.xxx.com, through ground After the parsing of location, the first IP address of such as server 21 can be obtained.The first IP address in the event of first server changes Or other situations, then may cause to fail the address resolution of the first domain name, it is impossible to which initiating network service to first server please Ask.
In a kind of possible implementation, if the address resolution success of the first domain name, gets first server First IP address, then can be based on first IP address and initiate to be directed to the network service request of first server.If can be just The Access Layer of first server is asked in frequentation, then for the network service request success of first server, can be set up and the first clothes It is engaged in the network connection (service normal) of device, the switch of first server opens (flow can flow into first server), using can It is normal to access network.If the Access Layer of first server cannot be accessed, the network service request for first server is lost Lose, it is impossible to set up the network connection with first server.In the implementation, row address is entered by the terminal device at application place Parsing and initiation network service request, server only compounding practice switch (start network to connect in network service request success Connect).
In a kind of possible implementation, multiple first domain names can be provided with and corresponding to multiple first domain names Multiple first servers.As shown in Fig. 2 the first domain name of acquiescence can be provided with terminal device 24, for example Sdkapia.xxx.com, it corresponds to server 21;The first alternative domain name is also provided with, for example Sdkapib.xxx.com, it corresponds to server 22.In the address resolution failure of the first domain name to server 21 or for clothes Be engaged in device 21 network service request failure in the case of, can pair first domain name corresponding with server 22 enter row address solution Analysis, to obtain the first IP address of server 22.If address resolution fails, initiating network service without normal direction server 22 please Ask.If address resolution success, gets the first IP address of server 22, then can initiate to be directed to based on first IP address The network service request of server 22.If being capable of the Access Layer of normal access server 22, for the network of server 22 Service request success, can set up the network connection with server 22, using can normally access network.If clothes cannot be accessed The Access Layer of business device 22, then for the network service request failure of server 22, it is impossible to set up the network connection with server 22. So, when there is the situation of address resolution failure or network service request failure, can be according to order set in advance, successively Address resolution is carried out to acquiescence and the first alternative domain name and network service request is initiated after successfully resolved.
In a kind of possible implementation, if the address resolution to the first domain name fails or for first server Network service request fails, that is, one or more domain name dns address are parsed with failure or corresponding one or more first clothes It is engaged in the network service request failure of device so that cannot connect to any first server, then can be based on the of second server Two IP address, initiate the network service request for second server (such as the server 23 in Fig. 2).If being capable of just frequentation Ask the Access Layer of second server (server 23), then for second server network service request success, can set up with The network connection of second server, using can normally access network.
In this way, address resolution can be carried out to the first domain name and concurrently plays network service for first server Request, when address resolution failure or network service request fail, the second IP address based on second server is initiated for the The network service request of two servers, because the network service request for second server is directly initiated based on IP address , without domain name mapping, request has higher success rate, it is ensured that the network service connection of application, lifts Consumer's Experience.
Fig. 3 is a kind of flow chart of the network service address changing method according to an exemplary embodiment.Such as Fig. 3 institutes Show, in a kind of possible implementation, methods described also includes:
Step S14, sets the first domain name and the second server corresponding to the first server in the application The second IP address.
For example, one or more first domain names can be in the application previously provided with, each first domain name corresponds to One first server, and the second IP address of one or more reality is previously provided with, each second IP address corresponds to One second server.First domain name and the second IP address can be loaded into application when application is installed, it is also possible in application It is dynamically loaded into during use in application.Wherein, one or more first servers and second server can distinguish position Server 21 (first server) in different regions, such as Fig. 2 may be located at city the A, (first service of server 22 Device) city B is may be located at, server 23 (second server) may be located at city C.The disclosure takes to first server and second Specific region residing for business device is not construed as limiting.
In this way, the first domain name and the second server corresponding to the first server can be set The second IP address, improve the convenience that uses of user, lift Consumer's Experience.
In a kind of possible implementation, the first server is General Server, and the second server is standby With server, wherein, the function of the standby server is weaker than the General Server.Wherein, General Server can be place Server in computer room is given tacit consent to, can provide best server resource, Internet resources, complete feature etc.;Standby clothes Business device can be the server in the standby computer room, there is provided the server resource of lower standard, Internet resources, remove Function of secondary property etc..In the case of the normal access service of user's (application), can set up and connect with the network of General Server Connect, customer flow enters in General Server.Can not normally in the case of access service, for example, the first domain in user's (application) In the case that the address resolution failure of name or the network service request for first server fail, can set up and active service The network connection of device, customer flow enters in standby server, because user is smaller to the flowing of access of standby server, function The standby server of degradation disclosure satisfy that the requirements for access of user.So, the standby server for being degraded using function can be effective Economize on resources.
The flow of the step of Fig. 4 is a kind of network service address changing method according to an exemplary embodiment 13 Figure.As shown in figure 4, in a kind of possible implementation, step S13 includes:
Step S131, in the address resolution failure to first domain name or for the network service of the first server In the case of request failure, judge whether to meet switching condition;
Step S132, in the case where switching condition is met, the second IP address based on second server is initiated to be directed to institute State the network service request of second server.
For example, second server can be the standby server that function degrades, therefore, can be by setting switching condition Avoid other can the customer flow of normal access service enter second server, to economize on resources.On the ground to the first domain name When location parsing failure or the network service request for first server fail, it can be determined that whether meet switching condition.This is cut The condition of changing can preset, for example, the user's (terminal device) that can limit one or more regions is able to access that the second clothes Business device, if user belongs to one or several regions of restriction, may determine that and meet switching condition, at this point it is possible to be based on the Second IP address of two servers, initiates the network service request for second server, sets up the network with second server Connection.If user is not belonging to one or several regions for limiting, may determine that and be unsatisfactory for switching condition, it is impossible to enough initiate pin To the network service request of second server.
In this way, the user's (application) for being unsatisfactory for switching condition can be avoided to access second server, so as to save About server resource.
The flow of the step of Fig. 5 is a kind of network service address changing method according to an exemplary embodiment 13 Figure.As shown in figure 5, in a kind of possible implementation, step S131 includes:
Step S1311, in the case where judging that terminal device is in specific geographical area, is judged as meeting switching condition.
For example, it is to be in specific geographical area (using the terminal device at place that can preset switching condition Individual or multiple regions) when, second server can be accessed.So, in the address resolution failure to the first domain name or for first When the network service request of server fails, can obtain using the terminal device at place IP address or terminal device it is current Position, so as to judge terminal device whether in specific geographic area.If terminal device is in specific geographic area, May determine that to meet switching condition, at this point it is possible to be based on the second IP address of second server, initiate to be directed to second server Network service request, set up and the network connection of second server.If terminal device is not in specific geographic area, May determine that and be unsatisfactory for switching condition, it is impossible to enough network service requests initiated for second server.
In this way, it can be determined that whether the region residing for terminal device is specific geographical area, it is to avoid be unsatisfactory for The application of switching condition accesses second server, so as to save server resource.
Embodiment 2
Fig. 6 is a kind of block diagram of the network service address switching device according to an exemplary embodiment.Such as Fig. 6 institutes Show, the network service address switching device includes:First address acquisition module 61, first asks initiation module 62 and second to be asked Seek initiation module 63.
First address acquisition module 61, in the case of initiating network service request in the application, to first server The first domain name carry out address resolution, obtain the first IP address of the first server;
First request initiation module 62, for the first IP address based on the first server, initiates for described the The network service request of one server;
Second request initiation module 63, in the address resolution failure to first domain name or for the described first clothes It is engaged in the case of the network service request failure of device, the second IP address based on second server is initiated for the described second clothes The network service request of business device.
Fig. 7 is a kind of block diagram of the network service address switching device according to an exemplary embodiment.Such as Fig. 7 institutes Show, in a kind of possible implementation, described device also includes:
Domain name and address setup module 64, for the first domain name corresponding to the first server is set in the application with And the second IP address of the second server.
As shown in fig. 7, in a kind of possible implementation, the second request initiation module 63 includes:
Condition judgment submodule 631, in the address resolution failure to first domain name or for the described first clothes It is engaged in the case of the network service request failure of device, judging whether to meet switching condition;
Submodule 632 is initiated in request, in the case where switching condition is met, the 2nd IP ground based on second server Location, initiates the network service request for the second server.
As shown in fig. 7, in a kind of possible implementation, the condition judgment submodule 631 includes:
First judging submodule 6311, in the case where judging that terminal device is in specific geographical area, being judged as Meet switching condition.
In a kind of possible implementation, the first server is General Server, and the second server is standby With server,
Wherein, the function of the standby server is weaker than the General Server.
In accordance with an embodiment of the present disclosure can be by initiating to carry out ground to the first domain name during network service request in the application Location parsing initiates the network service request for first server to obtain the first IP address, and in the parsing of the first domain name addresses When failure or the network service request for first server fail, the net for second server is initiated based on the second IP address Network service request, so as to ensure the net of application in domain name mapping failure or the network service request failure for first server Network service is connected, and lifts Consumer's Experience.
Embodiment 3
Fig. 8 is a kind of block diagram of the network service address switching device 800 according to an exemplary embodiment.For example, Device 800 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, doctor Treatment equipment, body-building equipment, personal digital assistant etc..
Reference picture 8, device 800 can include following one or more assemblies:Processing assembly 802, memory 804, power supply Component 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and Communication component 816.
The integrated operation of the usual control device 800 of processing assembly 802, such as with display, call, data communication, phase Machine is operated and the associated operation of record operation.Processing assembly 802 can refer to including one or more processors 820 to perform Order, to complete all or part of step of above-mentioned method.Additionally, processing assembly 802 can include one or more modules, just Interaction between processing assembly 802 and other assemblies.For example, processing assembly 802 can include multi-media module, it is many to facilitate Interaction between media component 808 and processing assembly 802.
Memory 804 is configured as storing various types of data supporting the operation in device 800.These data are shown Example includes the instruction for any application program or method operated on device 800, and contact data, telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 can include power management system System, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for device 800.
Multimedia groupware 808 is included in one screen of output interface of offer between described device 800 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detection and the touch or slide related duration and pressure.In certain embodiments, many matchmakers Body component 808 includes a front camera and/or rear camera.When device 800 be in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured as output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike Wind (MIC), when device 800 is in operator scheme, such as call model, logging mode and speech recognition mode, microphone is matched somebody with somebody It is set to reception external audio signal.The audio signal for being received can be further stored in memory 804 or via communication set Part 816 sends.In certain embodiments, audio-frequency assembly 810 also includes a loudspeaker, for exports audio signal.
, to provide interface between processing assembly 802 and peripheral interface module, above-mentioned peripheral interface module can for I/O interfaces 812 To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor cluster 814 can detect the opening/closed mode of device 800, the relative positioning of component is for example described Component is the display and keypad of device 800, and sensor cluster 814 can be with 800 1 components of detection means 800 or device Position change, user is presence or absence of with what device 800 was contacted, the orientation of device 800 or acceleration/deceleration and device 800 Temperature change.Sensor cluster 814 can include proximity transducer, be configured to be detected when without any physical contact The presence of neighbouring object.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 814 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, to promote junction service.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be by one or more application specific integrated circuits (ASIC), numeral letter Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realization, for performing the above method.
In the exemplary embodiment, a kind of non-volatile computer readable storage medium storing program for executing including instructing, example are additionally provided Such as include the memory 804 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 820 of device 800.
Fig. 9 is a kind of block diagram of the network service address switching device 1900 according to an exemplary embodiment.For example, Device 1900 may be provided in a server.Reference picture 9, device 1900 includes processing assembly 1922, and it further includes one Individual or multiple processors, and the memory resource as representated by memory 1932, can be by processing assembly 1922 for storing The instruction of execution, such as application program.The application program stored in memory 1932 can include one or more every One corresponds to one group of module of instruction.Additionally, processing assembly 1922 is configured as execute instruction, to perform the above method.
Device 1900 can also include that a power supply module 1926 is configured as the power management of performs device 1900, one Wired or wireless network interface 1950 is configured as device 1900 being connected to network, and input and output (I/O) interface 1958.Device 1900 can operate the operating system in memory 1932, such as Windows ServerTM, Mac based on storage OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In the exemplary embodiment, a kind of non-volatile computer readable storage medium storing program for executing including instructing, example are additionally provided Such as include the memory 1932 of instruction, above-mentioned instruction can be performed to complete the above method by the processing assembly 1922 of device 1900.
The disclosure can be system, method and/or computer program product.Computer program product can include computer Readable storage medium storing program for executing, containing for making processor realize the computer-readable program instructions of various aspects of the disclosure.
Computer-readable recording medium can be the tangible of the instruction that holding and storage are used by instruction execution equipment Equipment.Computer-readable recording medium for example can be-- but be not limited to-- storage device electric, magnetic storage apparatus, optical storage Equipment, electromagnetism storage device, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer-readable recording medium More specifically example (non exhaustive list) includes:Portable computer diskette, hard disk, random access memory (RAM), read-only deposit It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static RAM (SRAM), portable Compact disk read-only storage (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon Be stored with instruction punch card or groove internal projection structure and above-mentioned any appropriate combination.Calculating used herein above Machine readable storage medium storing program for executing is not construed as instantaneous signal in itself, the electromagnetic wave of such as radio wave or other Free propagations, logical Cross electromagnetic wave (for example, the light pulse for passing through fiber optic cables) that waveguide or other transmission mediums propagate or by wire transfer Electric signal.
Computer-readable program instructions as described herein can from computer-readable recording medium download to each calculate/ Processing equipment, or outer computer or outer is downloaded to by network, such as internet, LAN, wide area network and/or wireless network Portion's storage device.Network can include copper transmission cable, Optical Fiber Transmission, be wirelessly transferred, router, fire wall, interchanger, gateway Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for storing the meter in each calculating/processing equipment In calculation machine readable storage medium storing program for executing.
For perform the disclosure operation computer program instructions can be assembly instruction, instruction set architecture (ISA) instruction, Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming language Source code or object code that any combination is write, programming language of the programming language including object-oriented-such as Smalltalk, C++ etc., and routine procedural programming languages-such as " C " language or similar programming language.Computer Readable program instructions can perform fully on the user computer, partly perform on the user computer, as one solely Vertical software kit is performed, part performs or completely in remote computer on the remote computer on the user computer for part Or performed on server.In the situation for being related to remote computer, remote computer can be by the network-bag of any kind LAN (LAN) or wide area network (WAN)-be connected to subscriber computer are included, or, it may be connected to outer computer (such as profit With ISP come by Internet connection).In certain embodiments, by using computer-readable program instructions Status information carry out personalized customization electronic circuit, such as PLD, field programmable gate array (FPGA) or can Programmed logic array (PLA) (PLA), the electronic circuit can perform computer-readable program instructions, so as to realize each side of the disclosure Face.
Referring herein to the method according to the embodiment of the present disclosure, device (system) and computer program product flow chart and/ Or block diagram describes various aspects of the disclosure.It should be appreciated that each square frame and flow chart of flow chart and/or block diagram and/ Or in block diagram each square frame combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to all-purpose computer, special-purpose computer or other programmable datas The processor of processing unit, so as to produce a kind of machine so that these instructions are by computer or other programmable datas During the computing device of processing unit, work(specified in one or more square frames realized in flow chart and/or block diagram is generated The device of energy/action.Can also be the storage of these computer-readable program instructions in a computer-readable storage medium, these refer to Order causes that computer, programmable data processing unit and/or other equipment work in a specific way, so that, be stored with instruction Computer-readable medium then includes a manufacture, and it includes realizing in one or more square frames in flow chart and/or block diagram The instruction of the various aspects of the function/action of regulation.
Can also computer-readable program instructions be loaded into computer, other programmable data processing units or other In equipment so that perform series of operation steps on computer, other programmable data processing units or miscellaneous equipment, to produce The computer implemented process of life, so that performed on computer, other programmable data processing units or miscellaneous equipment Instruct function/action specified in one or more square frames realized in flow chart and/or block diagram.
Flow chart and block diagram in accompanying drawing show system, method and the computer journey of the multiple embodiments according to the disclosure The architectural framework in the cards of sequence product, function and operation.At this point, each square frame in flow chart or block diagram can generation One part for module, program segment or instruction of table a, part for the module, program segment or instruction is used comprising one or more In the executable instruction of the logic function for realizing regulation.In some realizations as replacement, the function of being marked in square frame Can occur with different from the order marked in accompanying drawing.For example, two continuous square frames can essentially be held substantially in parallel OK, they can also be performed in the opposite order sometimes, and this is depending on involved function.It is also noted that block diagram and/or The combination of the square frame in each square frame and block diagram and/or flow chart in flow chart, can use the function of performing regulation or dynamic The special hardware based system made is realized, or can be realized with the combination of computer instruction with specialized hardware.
It is described above the presently disclosed embodiments, described above is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.In the case of without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport Best explaining principle, practical application or the technological improvement to the technology in market of each embodiment, or lead this technology Other those of ordinary skill in domain are understood that each embodiment disclosed herein.

Claims (11)

1. a kind of network service address changing method, it is characterised in that including:
In the case of initiating network service request in the application, the first domain name to first server carries out address resolution, obtains First IP address of the first server;
The first IP address based on the first server, initiates the network service request for the first server;
In the address resolution failure to first domain name or the feelings of the network service request failure for the first server Under condition, the second IP address based on second server initiates the network service request for the second server.
2. method according to claim 1, it is characterised in that methods described also includes:
Second IP address of the first domain name and the second server corresponding to the first server is set in the application.
3. method according to claim 1, it is characterised in that in the address resolution failure to first domain name or be directed to In the case of the network service request failure of the first server, the second IP address based on second server is initiated to be directed to The network service request of the second server, including:
In the address resolution failure to first domain name or the feelings of the network service request failure for the first server Under condition, judge whether to meet switching condition;
In the case where switching condition is met, the second IP address based on second server is initiated to be directed to the second server Network service request.
4. method according to claim 3, it is characterised in that judge whether to meet switching condition, including:
In the case where judging that terminal device is in specific geographical area, it is judged as meeting switching condition.
5. the method described in any one in claim 1-4, it is characterised in that the first server takes for conventional Business device, the second server is standby server,
Wherein, the function of the standby server is weaker than the General Server.
6. a kind of network service address switching device, it is characterised in that including:
First address acquisition module, in the case of initiating network service request in the application, to the first of first server Domain name carries out address resolution, obtains the first IP address of the first server;
First request initiation module, for the first IP address based on the first server, initiates to be directed to the first service The network service request of device;
Second request initiation module, in the address resolution failure to first domain name or for the first server In the case of network service request failure, the second IP address based on second server is initiated for the second server Network service request.
7. device according to claim 6, it is characterised in that described device also includes:
Domain name and address setup module, for setting in the application corresponding to the first domain name of the first server and described Second IP address of second server.
8. device according to claim 6, it is characterised in that the second request initiation module includes:
Condition judgment submodule, in the address resolution failure to first domain name or for the net of the first server In the case of the failure of network service request, judge whether to meet switching condition;
Submodule is initiated in request, in the case where switching condition is met, the second IP address based on second server to be initiated For the network service request of the second server.
9. device according to claim 8, it is characterised in that the condition judgment submodule includes:
First judging submodule, in the case where judging that terminal device is in specific geographical area, being judged as meeting switching Condition.
10. the device described in any one in claim 6-9, it is characterised in that the first server is conventional Server, the second server is standby server,
Wherein, the function of the standby server is weaker than the General Server.
A kind of 11. network service address switching devices, it is characterised in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
In the case of initiating network service request in the application, the first domain name to first server carries out address resolution, obtains First IP address of the first server;
The first IP address based on the first server, initiates the network service request for the first server;
In the address resolution failure to first domain name or the feelings of the network service request failure for the first server Under condition, the second IP address based on second server initiates the network service request for the second server.
CN201710079241.3A 2017-02-14 2017-02-14 Network service address changing method and device Pending CN106850813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710079241.3A CN106850813A (en) 2017-02-14 2017-02-14 Network service address changing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710079241.3A CN106850813A (en) 2017-02-14 2017-02-14 Network service address changing method and device

Publications (1)

Publication Number Publication Date
CN106850813A true CN106850813A (en) 2017-06-13

Family

ID=59127440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710079241.3A Pending CN106850813A (en) 2017-02-14 2017-02-14 Network service address changing method and device

Country Status (1)

Country Link
CN (1) CN106850813A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682465A (en) * 2017-06-24 2018-02-09 平安科技(深圳)有限公司 Domain name mapping device, method and computer-readable recording medium
CN109218353A (en) * 2017-06-30 2019-01-15 苏宁云商集团股份有限公司 A kind of method and device of link establishment
CN109951549A (en) * 2019-03-19 2019-06-28 广州品唯软件有限公司 Access method, device and the computer readable storage medium of Webpage
CN112260853A (en) * 2020-09-17 2021-01-22 北京大米科技有限公司 Disaster recovery switching method and device, storage medium and electronic equipment
CN114928588A (en) * 2022-05-11 2022-08-19 上海移远通信技术股份有限公司 Server connection method, Internet of things equipment, domain name server and regional server

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540759A (en) * 2008-03-20 2009-09-23 中国移动通信集团公司 Method for acquiring address of service server and communication system
CN101562634A (en) * 2009-05-22 2009-10-21 中兴通讯股份有限公司 Method and system for guaranteeing quality of service of voice over internet protocol
CN101841577A (en) * 2010-06-07 2010-09-22 中兴通讯股份有限公司 Method and device for implementing domain name resolution agent function
CN102456063A (en) * 2011-03-02 2012-05-16 奇智软件(北京)有限公司 Webpage access error correction method and system
CN103002069A (en) * 2012-12-25 2013-03-27 北京小米科技有限责任公司 Domain name resolution method, device and system
CN103581351A (en) * 2012-07-27 2014-02-12 腾讯科技(深圳)有限公司 Method and device for having access to network
CN104199934A (en) * 2014-09-05 2014-12-10 北京奇虎科技有限公司 Method and device for intercepting advertisements of application program
CN104506664A (en) * 2014-11-24 2015-04-08 小米科技有限责任公司 Domain name system caching method and device
CN105095024A (en) * 2015-08-27 2015-11-25 北京金山安全软件有限公司 File backup method and device
CN105516385A (en) * 2015-12-02 2016-04-20 传线网络科技(上海)有限公司 Domain name resolution method, server and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540759A (en) * 2008-03-20 2009-09-23 中国移动通信集团公司 Method for acquiring address of service server and communication system
CN101562634A (en) * 2009-05-22 2009-10-21 中兴通讯股份有限公司 Method and system for guaranteeing quality of service of voice over internet protocol
CN101841577A (en) * 2010-06-07 2010-09-22 中兴通讯股份有限公司 Method and device for implementing domain name resolution agent function
CN102456063A (en) * 2011-03-02 2012-05-16 奇智软件(北京)有限公司 Webpage access error correction method and system
CN103581351A (en) * 2012-07-27 2014-02-12 腾讯科技(深圳)有限公司 Method and device for having access to network
CN103002069A (en) * 2012-12-25 2013-03-27 北京小米科技有限责任公司 Domain name resolution method, device and system
CN104199934A (en) * 2014-09-05 2014-12-10 北京奇虎科技有限公司 Method and device for intercepting advertisements of application program
CN104506664A (en) * 2014-11-24 2015-04-08 小米科技有限责任公司 Domain name system caching method and device
CN105095024A (en) * 2015-08-27 2015-11-25 北京金山安全软件有限公司 File backup method and device
CN105516385A (en) * 2015-12-02 2016-04-20 传线网络科技(上海)有限公司 Domain name resolution method, server and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682465A (en) * 2017-06-24 2018-02-09 平安科技(深圳)有限公司 Domain name mapping device, method and computer-readable recording medium
CN109218353A (en) * 2017-06-30 2019-01-15 苏宁云商集团股份有限公司 A kind of method and device of link establishment
CN109951549A (en) * 2019-03-19 2019-06-28 广州品唯软件有限公司 Access method, device and the computer readable storage medium of Webpage
CN112260853A (en) * 2020-09-17 2021-01-22 北京大米科技有限公司 Disaster recovery switching method and device, storage medium and electronic equipment
CN114928588A (en) * 2022-05-11 2022-08-19 上海移远通信技术股份有限公司 Server connection method, Internet of things equipment, domain name server and regional server
CN114928588B (en) * 2022-05-11 2024-02-13 上海移远通信技术股份有限公司 Server connection method, internet of things equipment, domain name server and regional server

Similar Documents

Publication Publication Date Title
US10242168B2 (en) Methods and apparatuses for controlling smart device
CN104780155B (en) Apparatus bound method and device
EP3136698B1 (en) Connection status prompting method and device
CN106850813A (en) Network service address changing method and device
US10212025B2 (en) Router management method, router and mobile terminal
CN103986969B (en) application management method, device and system
CN104951335B (en) The processing method and processing device of application program installation kit
CN105553963B (en) The control method and device of positioning service
CN106792640A (en) The communication means of virtual SIM card, mobile terminal and server
CN104601441B (en) For the authority control method and instant communication client of group chat
CN105512545B (en) Access rights management method and device
CN106792075A (en) Video broadcasting method and device
CN107370772A (en) Account login method, device and computer-readable recording medium
CN106960014A (en) Association user recommends method and device
CN106657132A (en) Method and device for accessing website
CN106101456A (en) A kind of method and device of call contact
CN107094094A (en) Networking methods, device and the terminal of application program
CN107105517A (en) Method for connecting network and device
CN107797741A (en) Method for showing interface and device
CN107330391A (en) Product information reminding method and device
CN107135147A (en) Method, device and the computer-readable recording medium of sharing position information
CN105933465A (en) Method and device for accessing wireless network
CN106790018A (en) Resource-sharing player method and device
CN106873994A (en) Interface display method and device
CN106991018A (en) The method and device of changing an interface skin

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
CB02 Change of applicant information

Address after: 100029 A, C,, block A, Sinosteel International Plaza, 8 Haidian Avenue, Beijing, China

Applicant after: Youku network technology (Beijing) Co., Ltd.

Address before: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C

Applicant before: 1Verge Inc.

CB02 Change of applicant information
TA01 Transfer of patent application right

Effective date of registration: 20200522

Address after: 310051 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 100029 A, C,, block A, Sinosteel International Plaza, 8 Haidian Avenue, Beijing, China

Applicant before: Youku network technology (Beijing) Co., Ltd

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20170613

RJ01 Rejection of invention patent application after publication