Background
Network slicing refers to dividing a physical network into multiple virtual networks, and each virtual network is called a network slice. The network slice realizes logic isolation in the aspects of equipment, access networks, transmission networks and core networks, adapts to various types of services and meets different requirements of users, and meanwhile, exclusive resources such as network bandwidth, service quality, safety and the like can be guaranteed. The network slice switching refers to the conversion from a virtual network with one network resource ratio to a virtual network with another network resource ratio, is a switching process of network resources, and can better meet diversified service requirements of users.
The patent document SNVHO based on service preference and network condition applied by the network science and technology ltd of zhenjiang qingsi discloses a vertical handover method SNVHO based on service preference and network condition (application date: 9/2013, application No. 201310407057.9, application publication No. CN 103686914A). The method comprises the following specific steps: the method comprises the steps of firstly, calculating the weight of inherent attributes of a network, wherein the inherent attributes of the network comprise bandwidth, cost, time delay, signal to noise ratio SINR, bandwidth utilization rate, transmission time delay and packet loss rate; secondly, calculating the service preference weight; and thirdly, after the weight of each attribute is obtained, calculating the utility value of each candidate network. The method has two defects: first, when calculating the objective weight determined by the network characteristics, the amount of data required for analysis by the analytic hierarchy process is large, information acquisition is difficult, calculation complexity is increased, and practicability is not strong. Secondly, the vertical handover decision process decides to trigger the selection of the network at a proper time, so that the waiting time of the user is long and the real-time performance is not high. When a user switches connection, service discontinuity is easy to occur, and the service quality of the user is reduced.
Zhongxing communication corporation in its patent document "a method and apparatus for managing network slices" (application date: 2016, 9, 30, application No. 201610877932.3, application publication No. CN107889155A) discloses a method and apparatus for managing network slices. The method comprises the following specific steps: the first step, the first network element receives slice configuration information sent by the second network element; and secondly, the first network element carries out scheduling management on each slice of the access network side according to the slice configuration information. The method has the disadvantages that when slice configuration is carried out, the MAC entity in the first network element needs to reserve resource blocks with corresponding resource occupation percentages for slices, users cannot occupy the reserved resources, and the resource utilization rate is not high.
Disclosure of Invention
The invention aims to provide a network slice switching method based on a network slice server log file, aiming at the defects in the prior art, and the network slice switching method automatically realizes the switching from a network slice with one network resource ratio to a network slice with another network resource ratio in real time according to the change of the network slice server log file when a user requests to access a network slice server. The method and the system meet diversified service requirements of users, improve the service quality of the users and the utilization rate of network resources, and enhance the practicability.
The idea for achieving the above purpose is that the network slice controller switches the network slices meeting the user requirements according to the changes of the protocol IP and the uniform resource locator URL which are interconnected among networks in the log file of the network slice server when the user requests to access the network slice server. When different users send service requests of different service types to the network slicing server, the protocol IP and the uniform resource locator URL which are interconnected among networks in the log file of the network slicing server are correspondingly changed. In the network slice switching process, when a network slice controller does not have a network slice which can meet the interconnection of a protocol IP file and a Uniform Resource Locator (URL) file among networks in the current network slice server, the network slice controller constructs a network slice which can meet the interconnection of the protocol IP file and the URL file among the networks in the current network slice server, and then a user is switched to the currently constructed network slice from the network slice before switching, so that the requirements of the user are met; when the network slice controller has the network slices which meet the protocol IP file and the uniform resource locator URL file which are interconnected between networks in the current network slice server, the user directly switches from the network slices before switching to the network slices which meet the user requirements, so that the switching of the network slices according to the user service types is realized, and the diversified service requirements of the user are met.
The technical scheme adopted by the invention comprises the following steps:
(1) the user requests access to the network slice server:
a user sends a connection request to a network slicing server, and the connection between the current user and the network slicing server is established through a current three-way handshake protocol;
(2) the network slicing server stores log files:
(2a) the network slicing server stores the network flow information in the three-way handshake process of the current user and the network slicing server into a current log file;
(2b) storing the current log file into a network slicing server;
(3) judging whether the current log file in the network slicing server is the same as the previous log file in content, if so, executing the step (1), otherwise, executing the step (4);
(4) generating a protocol IP file of interconnection between current networks:
the network slicing server extracts the content which is the same as the character rule corresponding to the protocol IP interconnected among the networks in the system rule base from the content of the current log file, and the content is used as the protocol IP information interconnected among the current networks and is stored as the protocol IP file interconnected among the current networks;
(5) generating a current Uniform Resource Locator (URL) file:
the network slicing server extracts the content which is the same as the character rule corresponding to the uniform resource locator URL in the system rule base from the content of the current log file, and the content is used as the URL information of the current uniform resource locator and is stored as a URL file of the current uniform resource locator;
(6) judging whether the protocol IP file interconnected between the current networks in the network slice server is the same as the protocol IP file interconnected between the previous networks, if so, executing the step (1), otherwise, executing the step (7);
(7) the network slicing server uploads the protocol IP files interconnected between the current networks to the network slicing controller;
(8) judging whether a current Uniform Resource Locator (URL) file in a network slice server is the same as a previous URL file, if so, executing the step (1), otherwise, executing the step (9);
(9) the network slicing server uploads the uniform resource locator URL file to a network slicing controller;
(10) judging whether a protocol IP file interconnected between current networks and a network slice corresponding to a current Uniform Resource Locator (URL) file exist in a network slice controller, if so, executing a step (12), otherwise, executing a step (11);
(11) constructing a network slice required by a user:
the network slice controller constructs a network slice meeting the current requirements of a user according to a protocol IP file and a current Uniform Resource Locator (URL) file which are interconnected between current networks;
(12) switching network slices required by the user:
the network slice controller switches the network slices corresponding to the protocol IP file and the uniform resource locator URL file which are interconnected between the current networks.
Compared with the prior art, the invention has the following advantages:
firstly, the invention adopts the method that the network slice controller switches the network slices corresponding to the protocol IP file and the uniform resource locator URL file which are interconnected between networks in the current log file, overcomes the problems that the prior art triggers the selection of the network when being proper, the waiting time of a user is longer, the real-time performance is not high, the service discontinuity is easy to occur when the user switches the connection, and the service quality of the user is reduced, ensures the continuity of the user service in the switching process and improves the service quality of the user.
Secondly, the invention adopts the network slice controller to construct the network slice meeting the current requirements of the user according to the protocol IP file and the current uniform resource locator URL file which are interconnected between the current networks in the log file, thereby overcoming the problems that the resource blocks with corresponding resource occupation percentages need to be reserved for the slices in the prior art, the user can not occupy the reserved part of resources, and the resource utilization rate is not high, and greatly improving the network resource utilization rate.
Thirdly, the invention adopts the network slice controller to construct the network slice method meeting the current requirements of the user according to the protocol IP file and the current uniform resource locator URL file which are interconnected between the current networks in the log file, thereby overcoming the problems of difficult information acquisition, higher calculation complexity and weak practicability in the prior art, greatly reducing the calculation complexity and enhancing the practicability.
The specific implementation mode is as follows:
the invention is further described below with reference to the accompanying drawings.
The implementation steps of the present invention are further described with reference to fig. 1.
Step 1, a user requests to access a network slice server.
The user sends a connection request to the network slicing server, and the connection between the current user and the network slicing server is established through the current three-way handshake protocol.
The three-way handshake protocol comprises the following specific steps:
in the first step, the user enters a SYN _ send state after sending a first synchronization sequence number SYN packet to the network slice server, and the first handshake is completed.
And secondly, the network slice server generates a second synchronization sequence number SYN packet after receiving the first synchronization sequence number SYN packet, and the network slice server enters a SYN _ RECV state after sending a first acknowledgement packet ACK and the second synchronization sequence number SYN packet to a user, thereby finishing the second handshake.
And thirdly, after the user receives the second synchronization sequence number SYN packet and the first acknowledgement packet ACK of the network slicing server, the user and the network slicing server enter an ESTABLISHED state after the second acknowledgement packet ACK is sent to the network slicing server, the user and the network slicing server are successfully connected, and the third handshake is completed.
And step 2, the network slice server stores the log file.
And the network slicing server stores the network flow information in the three-way handshake process of the current user and the network slicing server into a current log file.
The network flow information comprises key information such as a protocol IP, system access time, a target system physical address, a user identity identification number ID, a source media access control MAC address, a local port number, a target port number, information flow, a uniform resource locator URL and the like which are interconnected among networks.
And storing the current log file into the network slicing server.
And 3, judging whether the current log file in the network slicing server is the same as the previous log file in content, if so, executing the step 1, otherwise, executing the step 4.
And 4, generating a protocol IP file interconnected between the current networks.
And the network slicing server extracts the content which is the same as the character rule corresponding to the protocol IP interconnected among the networks in the system rule base from the content of the current log file, takes the content as the protocol IP information interconnected among the current networks, and saves the protocol IP information as the protocol IP file interconnected among the current networks.
And 5, generating a current Uniform Resource Locator (URL) file.
And the network slicing server extracts the content which is the same as the character rule corresponding to the uniform resource locator URL in the system rule base from the content of the current log file, takes the content as the URL information of the current uniform resource locator, and saves the URL information as the URL file of the current uniform resource locator.
And 6, judging whether the protocol IP file interconnected between the current networks in the network slice server is the same as the protocol IP file interconnected between the previous networks, if so, executing the step 1, otherwise, executing the step 7.
And 7, uploading the protocol IP file interconnected between the current networks to the network slice controller by the network slice server.
And 8, judging whether the current uniform resource locator URL file in the network slice server is the same as the previous uniform resource locator URL file, if so, executing the step 1, otherwise, executing the step 9.
And 9, uploading the uniform resource locator URL file to a network slicing controller by the network slicing server.
Step 10, judging whether a network slice corresponding to a protocol IP file and a current uniform resource locator URL file which are interconnected between current networks exists in the network slice controller, if so, executing step 12, otherwise, executing step 11.
And 11, constructing a network slice required by the user.
And the network slice controller constructs a network slice meeting the current requirements of the user according to the protocol IP file and the current uniform resource locator URL file which are interconnected between the current networks.
And 12, switching the network slices required by the user.
The network slice controller switches the network slices corresponding to the protocol IP file and the uniform resource locator URL file which are interconnected between the current networks.
Referring to fig. 2, the process of uploading a protocol IP file and a uniform resource locator URL file interconnected between current networks to a network slice controller by a network slice server in steps 7, 9, 10, 11, and 12, determining whether a network slice corresponding to the protocol IP file and the uniform resource locator URL file interconnected between current networks exists in the network slice controller, if so, switching a network slice meeting the user requirement, otherwise, constructing a network slice meeting the user requirement and then switching is further described.
The network slice server uploads the changed protocol IP file and uniform resource locator URL file which are interconnected between the current networks to the network slice controller, judges whether a network slice corresponding to the protocol IP file and the uniform resource locator URL file which are interconnected between the current networks exists in the network slice controller, if so, the network slice controller switches the network slice corresponding to the protocol IP file and the uniform resource locator URL file which are interconnected between the current networks, otherwise, the network slice controller constructs a network slice meeting the current requirements of the user according to the protocol IP file and the uniform resource locator URL file which are interconnected between the current networks, and then the network slice is switched.
The network slice switching scene graph of fig. 2 includes a network slice controller, a network slice server, a user a, a user B, a video service, a web browsing service and a cloud-like graph, a solid coil under the network slice controller, a dotted coil of the user a, a dotted arrow between the video service and the web browsing service, a solid arrow between the user a and the user B, a dotted line between the user a and the network slice server, a dotted line between the user B and the network slice server, a solid line between the network slice server and the network slice controller, a bold solid line between the network slice controller and the video service, a bold dotted line between the network slice controller and the web browsing service, and a bold dot-and-dash line between the network slice controller and the user B, wherein:
and the network slice controller judges the existence of the network slices corresponding to the protocol IP file and the current uniform resource locator URL file which are interconnected between the current networks in the network slice controller, constructs the network slices corresponding to the protocol IP file and the uniform resource locator URL file which are interconnected between the current networks and switches the network slices so as to meet the diversified service requirements of users.
And the network slicing server is responsible for storing the network flow information in the three-way handshake process of the current user and the network slicing server into the current log file. And judging whether the log file changes or not, and uploading the protocol IP file and the uniform resource locator URL file which are interconnected between the changed current networks to the network slice controller.
The user a is a user a who makes an access request to the network slice server.
The user B is a user B who issues an access request to the network slice server.
And the video service represents the type of the video service which the user A requests to access the network slice server.
And the browsing webpage service represents the type of the browsing webpage service of the user A requesting to access the network slicing server.
A cloud graph representing a heterogeneous wireless network.
The real coil under the network slice controller is a set of heterogeneous wireless network ranges.
The dashed circle of user a is the set of service types of user a.
The dashed arrow between the video service and the web page browsing service indicates that the user a switches from the video service to the web page browsing service.
The solid arrow between user a and user B indicates that the user requesting access to the network slice server switches from user a to user B.
The dotted line between the user a and the network slicing server indicates that the user a sends a connection request to the network slicing server, and the connection between the user a and the network slicing server is established through a three-way handshake protocol.
The dotted line between the user B and the network slicing server indicates that the user B sends a connection request to the network slicing server, and the connection between the user B and the network slicing server is established through a three-way handshake protocol.
The solid line between the network slice server and the network slice controller indicates that the network slice server uploads the changed protocol IP file and uniform resource locator URL file interconnected between the current networks to the network slice controller.
The bold solid line between the network slice controller and the video service represents the network slice 1 in the network slice controller that meets the user a video service requirements.
The bold dashed line between the network slice controller and the web browsing service represents the network slice 2 in the network slice controller that meets the requirements of the user a for web browsing service.
The bold dash-dotted line between the network slice controller and the user B indicates the network slice 3 in the network slice controller that meets the service requirements of the user B.
The network slice switching based on the log file of the network slice server comprises at least one service type of a user before switching and at least one user to be switched or a service type to be switched. In the embodiment, a video service and a web browsing service are respectively used as the service type before switching and the service type to be switched, and a user A and a user B represent switching between different users, so that when different users send access requests of different service types to a network slicing server, a network slicing controller performs a corresponding switching process of network slices meeting user requirements according to changes of log files of the network slicing server in the process of accessing the network slicing server by the user requests.