CN117097779B - Network communication method and device, storage medium and electronic equipment - Google Patents

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

Info

Publication number
CN117097779B
CN117097779B CN202311336528.1A CN202311336528A CN117097779B CN 117097779 B CN117097779 B CN 117097779B CN 202311336528 A CN202311336528 A CN 202311336528A CN 117097779 B CN117097779 B CN 117097779B
Authority
CN
China
Prior art keywords
service
target
protocol stack
service provider
network
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
CN202311336528.1A
Other languages
Chinese (zh)
Other versions
CN117097779A (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.)
Zhejiang Lab
Original Assignee
Zhejiang Lab
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 Zhejiang Lab filed Critical Zhejiang Lab
Priority to CN202311336528.1A priority Critical patent/CN117097779B/en
Publication of CN117097779A publication Critical patent/CN117097779A/en
Application granted granted Critical
Publication of CN117097779B publication Critical patent/CN117097779B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The specification discloses a network communication method, a device, a storage medium and an electronic device, wherein a network storage function network element can receive a service request sent by a service consumer and at least determine target protocol stack composition information which is carried in the service request and matched with the service consumer. And then determining the target service provider from the pre-stored protocol stack composition information of the service provider according to the target protocol stack composition information. Finally, address information of the target service provider can be sent to the service consumer so that the service consumer can conduct service communication with the target service provider based on the address information. The method ensures that the protocol stack composition information of the service provider discovered by the network storage function network element and returned to the service consumer can be matched with the service consumer, thereby avoiding the condition that the service consumer and the service provider cannot smoothly communicate due to different protocol stack compositions and improving the stability of network communication.

Description

Network communication method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and apparatus for network communication, a storage medium, and an electronic device.
Background
With the development of technology, network communication technology is continuously developed. In an enhanced services-based Network architecture (enhancedService Based Architecture, eSBA), such as a 5G service architecture, a Network Function (NF) that provides services is called a service provider, and an NF that receives services is called a service consumer. When the service consumer discovers the service provider, the network storage function (Network Repository Function, NRF) service can be used for searching the service provider, namely the NRF supports the service discovery function, so that the discovery request of the service consumer to the service provider can be received, and the service provider can be discovered and returned to the service consumer.
However, since the protocol stack structures corresponding to different NFs may be different, when the protocol stack structures of the service consumer and the service provider are different, it is an important issue how to make the protocol stack structure of the service provider discovered by the NRF and returned to the service consumer consistent with the service consumer so that the service consumer and the service provider can smoothly communicate.
Based on this, the present specification provides a method of network communication.
Disclosure of Invention
The present specification provides a network communication method, apparatus, storage medium, and electronic device, so as to at least partially solve the foregoing problems in the prior art.
The technical scheme adopted in the specification is as follows:
the present specification provides a method of network communication, the method being applied to a network element of a network storage function, the method comprising:
receiving a service request sent by a service consumer;
at least determining target protocol stack composition information which is carried in the service request and matched with the service consumer;
determining a target service provider from pre-stored protocol stack composition information of the service provider according to the target protocol stack composition information;
and sending the address information of the target service provider to the service consumer so that the service consumer can perform service communication with the target service provider based on the address information.
Optionally, the service request includes a target protocol stack configuration mode attribute, where the target protocol stack configuration mode attribute includes target protocol stack configuration information, so as to instruct the NRF to discover a target service provider based on the target protocol stack configuration information.
Optionally, at least determining the target protocol stack composition information matched with the service consumer carried in the service request specifically includes:
and determining target protocol stack composition information which is carried in the service request and matched with the service consumer, and determining the service type required by the service consumer.
Optionally, determining the target service provider from the pre-stored protocol stack composition information of the service provider according to the target protocol stack composition information specifically includes:
and determining the target service provider from the pre-stored protocol stack composition information of the service provider according to the target protocol stack composition information and the service type.
Optionally, the service provider includes a network function service instance and a network function instance;
according to the target protocol stack composition information, determining the target service provider from the pre-stored protocol stack composition information of the service provider specifically comprises the following steps:
and determining the target network function service instance and/or the target network function instance from the pre-stored protocol stack composition information of the network function service instance and the pre-stored protocol stack composition information of the network function instance according to the target protocol stack composition information.
The present specification provides a method of network communication, the method being applied to a service consumer, the method comprising:
transmitting a service request to a network storage function network element, so that the network storage function network element determines a target service provider from protocol stack composition information of the pre-stored service provider based on the service request, and returns address information of the target service provider to the service consumer; wherein, the service request carries the target protocol stack composition information matched with the service consumer;
receiving address information of the target service provider returned by the network storage function network element;
and carrying out service communication with the target service provider based on the address information.
Optionally, the service request includes a target protocol stack configuration mode attribute, where the target protocol stack configuration mode attribute includes target protocol stack configuration information, so as to instruct the NRF to discover the target service provider based on the target protocol stack configuration information.
Optionally, the service provider includes a network function service instance and a network function instance;
Receiving the address information of the target service provider returned by the network storage function network element, wherein the method specifically comprises the following steps:
receiving address information of a target network function instance and/or address information of a target network function service instance returned by the network storage function network element;
based on the address information, carrying out service communication with the target service provider, specifically including:
selecting a final target instance from the received target network function instances and/or the target network function service instances according to preset rules;
and carrying out service communication with the final target instance based on the address information of the final target instance.
The present specification provides an apparatus for network communication, the apparatus being located in a network storage function network element, comprising:
the receiving module is used for receiving the service request sent by the service consumer;
the first determining module is used for determining at least target protocol stack composition information which is carried in the service request and matched with the service consumer;
the second determining module is used for determining the target service provider from the pre-stored protocol stack composition information of the service provider according to the target protocol stack composition information;
And the sending module is used for sending the address information of the target service provider to the service consumer so that the service consumer can carry out service communication with the target service provider based on the address information.
Optionally, the service request includes a target protocol stack configuration mode attribute, where the target protocol stack configuration mode attribute includes target protocol stack configuration information, so as to instruct the NRF to discover a target service provider based on the target protocol stack configuration information.
Optionally, the first determining module is specifically configured to determine target protocol stack configuration information that is carried in the service request and matches with the service consumer, and determine a service type required by the service consumer.
Optionally, the second determining module is specifically configured to determine, according to the target protocol stack configuration information and the service type, a target service provider from the pre-stored protocol stack configuration information of the service provider.
Optionally, the service provider includes a network function service instance and a network function instance;
the second determining module is specifically configured to determine, according to the target protocol stack configuration information, a target network function service instance and/or a target network function instance from pre-stored protocol stack configuration information of the network function service instance and protocol stack configuration information of the network function instance.
The present specification provides an apparatus for network communication, the apparatus being located at a service consumer, comprising:
a sending module, configured to send a service request to a network storage function network element, so that the network storage function network element determines a target service provider from pre-stored protocol stack configuration information of the service provider based on the service request, and returns address information of the target service provider to the service consumer; wherein, the service request carries the target protocol stack composition information matched with the service consumer;
the receiving module is used for receiving the address information of the target service provider returned by the network storage function network element;
and the communication module is used for carrying out service communication with the target service provider based on the address information.
Optionally, the service request includes a target protocol stack configuration mode attribute, where the target protocol stack configuration mode attribute includes target protocol stack configuration information, so as to instruct the NRF to discover the target service provider based on the target protocol stack configuration information.
Optionally, the service provider includes a network function service instance and a network function instance;
The receiving module is specifically configured to receive address information of a target network function instance and/or address information of a target network function service instance returned by the network storage function network element;
the communication module is specifically configured to select a final target instance from the received target network function instances and/or the target network function service instances according to a preset rule; and carrying out service communication with the final target instance based on the address information of the final target instance.
The present specification provides a computer readable storage medium storing a computer program which when executed by a processor implements the method of network communication described above.
The present specification provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing a method of network communication as described above when executing the program.
The above-mentioned at least one technical scheme that this specification adopted can reach following beneficial effect:
as can be seen from the method for network communication provided in the present specification, the network storage function network element may first receive a service request sent by a service consumer, and at least determine target protocol stack configuration information that is carried in the service request and matched with the service consumer. And then determining the target service provider from the pre-stored protocol stack composition information of the service provider according to the target protocol stack composition information. Finally, address information of the target service provider can be sent to the service consumer so that the service consumer can conduct service communication with the target service provider based on the address information. Because the service request sent by the service consumer, namely the network function discovery request, carries the target protocol stack composition information, and the network storage function network element has the pre-stored protocol stack composition information of the service provider, the protocol stack composition information of the service provider discovered by the network storage function network element and returned to the service consumer can be matched with the service consumer, so that the condition that smooth communication cannot be realized due to different protocol stack compositions can not occur when the service consumer communicates with the service provider, and the stability of network communication is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification, illustrate and explain the exemplary embodiments of the present specification and their description, are not intended to limit the specification unduly. In the drawings:
FIG. 1 is a flow chart of a method of network communication in the present specification;
FIG. 2 is a flow chart of a method of network communication according to the present disclosure;
FIG. 3 is a schematic diagram of a network communication device provided in the present specification;
FIG. 4 is a schematic diagram of a network communication device provided in the present specification;
fig. 5 is a network function discovery flow provided in the present specification;
fig. 6 is a schematic diagram of an electronic device corresponding to fig. 1 and 2 provided in the present specification.
Detailed Description
In 5G network communication based on eSBA, in technical specification TS29.510, when the service consumer finds that no instance information corresponding to the service provider is available, other instances are acquired by the network function search service of the NRF. When using the NRF discovery function, information of the service provider including discovery parameters such as: the service consumer can first send the discovery parameters of the service provider required by the service consumer to the NRF when the service consumer discovers the service provider through the NRF, the NRF can search in the registration information of the pre-stored service provider according to the discovery parameters and return the information of the target service provider corresponding to the discovery parameters, and the service consumer can communicate with the target service provider based on the information of the target service provider corresponding to the discovery parameters returned by the NRF.
In one or more embodiments of the present specification, before discovering service providers required by service consumers based on NRF, each service provider needs to register its own information in NRF, and the information includes protocol stack configuration information of each service provider. Specifically, the service provider may register information of a network function instance included in the service provider into the NRF through a network function registration service (NFRegisterservice) of a network function management service (nnrf_ NFManagement Service) of the NRF, wherein the information includes PDU protocol stack information of the network function instance. In one or more embodiments of the present disclosure, the PDU protocol stack information may be used as protocol mode information, and then a protocol mode (protocol mode) cell may be added in a network function configuration file (NFProfile) defined in TS29.510 and a network function service (NFService) cell of the network function configuration file, to represent PDU transmission protocol stack information of a current network function instance, where the protocol mode represents a configuration of a protocol stack.
Wherein the service provider comprises a plurality of network function instances, one network function instance comprises a plurality of network function services, and one network function service (nfServices) has a unique service instance identifier (servicelnstanceid). In one or more embodiments of the present specification, the service provider may include a network function instance and a network function service instance, that is, "nfInstanceId" and "nfserviceinstance", that is, in the present specification, "protocol stack modality information" corresponding to the service provider pre-registered in the NRF may include protocol stack modality information of the network function service instance and protocol stack modality information of the network function instance. In NRF, a protocol mode cell corresponding to protocol stack mode information of a network function instance may perform multi-protocol stack mode indication, and characterize a plurality of protocol mode composition types corresponding to nflnstanceid.
As shown in table 1, for the network function configuration file (NFProfile) defined in the present application based on TS29.510, a protocol mode type (protocol mode) cell is added to the network function configuration file.
TABLE 1
In one or more embodiments of the present disclosure, when a service consumer wants to make a service request for network discovery based on NRF, the service request sent by the service consumer to NRF includes at least protocol stack configuration information, that is, includes a protocol stack mode indication in indication information corresponding to the service request, where the protocol stack mode indication is shown in table 2. That is, the registration request of the service provider may carry a network function configuration file (NFProfile) of the service provider to be registered, where the network function configuration file includes a protocol mode (protocol mode) attribute. The query parameters of the NRF may include a target protocol mode (target-protocol-mode) attribute including protocol composition mode information (protocol mode info) that the service provider has registered in the NRF.
TABLE 2
For the purposes of making the objects, technical solutions and advantages of the present specification more apparent, the technical solutions of the present specification will be clearly and completely described below with reference to specific embodiments of the present specification and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present specification. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
The following describes in detail the technical solutions provided by the embodiments of the present specification with reference to the accompanying drawings.
Fig. 1 is a flow chart of a method of network communication provided in the present specification, where the method is applied to NRF, and specifically may include the following steps:
s100: and receiving a service request sent by a service consumer.
S102: and at least determining the target protocol stack composition information which is carried in the service request and matched with the service consumer.
Based on the above, the service consumer can discover the service through the network function of the NRF, and send the service provider discovery request carrying the protocol stack mode indication information query parameter, i.e. table 9, to the NRF. That is, the NRF may receive a service request sent by a service consumer, and at least determine target protocol stack configuration information that is carried in the service request and matches the service consumer.
The service request comprises a target protocol stack composition mode attribute, and the target protocol stack composition mode attribute comprises target protocol stack composition information for indicating the NRF to discover a target service provider based on the target protocol stack composition information. The target protocol stack configuration information matched with the service consumer refers to the protocol stack configuration information of the service provider required by the service consumer, or the protocol stack configuration supported by the service consumer and capable of communication.
S104: and determining the target service provider from the pre-stored protocol stack composition information of the service provider according to the target protocol stack composition information.
Further, since the information of each service provider is already registered in the NRF, the NRF can determine the target service provider from the pre-stored protocol stack configuration information of the service provider, based on the target protocol stack configuration information. In one or more embodiments of the present specification, the NRF may further determine other information in the service request, such as a service type required by the service consumer, a service identifier of a service provider required by the service consumer, or the like, that is, the information carried in the service request by which the service consumer sends the precious NRF may further include a service type required by the service consumer, or the like, specifically what information may be carried in the service request, which is not specifically limited in the present specification. The NRF may determine the target service provider from the pre-stored protocol stack configuration information of the service provider according to the determined target protocol stack configuration information and other information such as the service type.
S106: and sending the address information of the target service provider to the service consumer so that the service consumer can perform service communication with the target service provider based on the address information.
Finally, the NRF may transmit address information of the target service provider to the service consumer so that the service consumer may perform service communication with the target service provider based on the address information of the target service provider. In one or more embodiments of the present disclosure, the NRF may further send, to the service consumer, other information of the discovered target service provider, such as a service identifier, a service type, etc. of the target service provider, and specifically, the present disclosure is not limited, so that the service consumer may select, based on the received information of the service provider, to obtain a final service provider, and perform service communication with the final service provider based on an address of the final service provider.
Further, in one or more embodiments of the present specification, the service provider includes a network function service instance and a network function instance, and the NRF may determine the target network function service instance and/or the target network function instance from the pre-stored protocol stack configuration information of the network function service instance and the protocol stack configuration information of the network function instance according to the target protocol stack configuration information. The service consumer may select, in the received target network function service instance and/or target network function instance, according to a preset rule, to obtain a final target instance. It should be noted that, in the NRF-returned target network function service instance and/or the target network function instance, when it is determined that both the target network function service instance and the target network function instance exist, the service consumer preferentially selects the final target instance from the target network function service instances.
Briefly, in one or more embodiments of the present specification, first, a service provider carried on an eSBA with a 5G service architecture may register, in advance, respective protocol configuration mode information into an NRF through a registration service of a network function management service of the NRF, where the registration request carries a network function configuration file of the service provider to be registered, where the network function configuration file includes a protocol mode attribute. The protocol mode attribute can be added to the network function service in the network function configuration file and the network function service contained in the network function service list.
Then when the service consumer carried on the 5G service architecture eSBA needs the service provider to process the service request through the corresponding protocol mode, the service request can be searched through the enhanced network function search service of the NRF, and the search request can carry heterogeneous redundancy indication query parameters. The query parameters of the NRF include a target protocol mode attribute, and the target protocol mode attribute includes protocol configuration mode information that a service provider has registered in the NRF.
The NRF may then return registration information of the service provider according to the service request of the service consumer. The service request includes a target protocol stack composition mode attribute, and the target protocol composition mode attribute includes target protocol stack composition information, so that the NRF can search and return the service provider in the network function configuration file registered in the NRF according to the protocol stack composition mode information included in the new target protocol stack composition mode attribute in the query request.
And finally, the service consumer carried on the 5G service architecture eSBA can receive a target service provider with a target protocol stack constituting mode returned by the NRF, and can select a final target instance from the target service provider based on a preset rule so as to communicate the final target instance (service provider instance) with the target protocol stack constituting mode, namely, initiate a service flow.
Based on the above network communication method provided in the present specification shown in fig. 1, the network storage function network element may receive a service request sent by a service consumer, and at least determine target protocol stack configuration information that is carried in the service request and matched with the service consumer. And then determining the target service provider from the pre-stored protocol stack composition information of the service provider according to the target protocol stack composition information. Finally, address information of the target service provider can be sent to the service consumer so that the service consumer can conduct service communication with the target service provider based on the address information. Because the service request sent by the service consumer, namely the network function discovery request, carries the target protocol stack composition information, and the network storage function network element has the pre-stored protocol stack composition information of the service provider, the protocol stack composition information of the service provider discovered by the network storage function network element and returned to the service consumer can be matched with the service consumer, so that the condition that smooth communication cannot be realized due to different protocol stack compositions can not occur when the service consumer communicates with the service provider, and the stability of network communication is improved.
Fig. 2 is a flow chart of a method of network communication provided in the present specification, where the method is applied to a service consumer, and may specifically include the following steps:
s200: transmitting a service request to a network storage function network element, so that the network storage function network element determines a target service provider from protocol stack composition information of the pre-stored service provider based on the service request, and returns address information of the target service provider to the service consumer; and the service request carries the target protocol stack composition information matched with the service consumer.
S202: and receiving the address information of the target service provider returned by the network storage function network element.
S204: and carrying out service communication with the target service provider based on the address information.
The service consumer may send a service request to the NRF, the NRF may determine a target service provider from the pre-stored protocol stack configuration information of the service provider based on the service request, and the NRF may return address information of the target service provider to the service consumer, where the service request carries the target protocol stack configuration information matched with the service consumer. The service consumer may receive the address information of the target service provider returned by the NRF, and may also receive other information of the target service provider returned by the NRF. Also, in one or more embodiments of the present description, the target service provider may be plural. And the service consumer can then conduct service communication with the final target service provider based on the address information of the target service provider.
In one or more embodiments of the present specification, the target protocol mode attribute may include query condition information of a network function configuration file of protocol mode registration information registered by the service provider in the NRF, and may further include query condition information of a network function configuration file of protocol mode registration information included in a network function instance (nflnstanceid) and/or a network function service instance (nfServiceInstanceId) of a corresponding network function type (NFType) registered by the service provider in the NRF.
In one or more embodiments of the present description, the service provider includes a network function service instance and a network function instance, and the service consumer may receive address information of the target network function instance and/or address information of the target network function service instance returned by the network storage function network element. And further, a final target instance can be selected from the received target network function instances and/or target network function service instances according to preset rules.
As shown in fig. 5, a network function discovery procedure is provided in the present specification. The service consumer is nf_a and the service provider is nf_b. When the service consumer initiates the network function discovery service (nnrf_ NFDiscovery Service) with the attribute "target-protocol-module= protocolModalityInfo (K)" in table 2, the NRF may return corresponding network function instance configuration files, i.e. NFProfile1 and NFProfile2 in fig. 5, according to the network function instance parameter registration information of nf_b, i.e. the pre-stored information of the service provider, where the configuration files may include one or more network function instance information, and the returned instances in fig. 5 include NF1 and NF4. It can be seen that NF1 is a network function instance, i.e., nfInstanceId, NF is a network function service instance, i.e., serviceInstanceId.
As shown in table 3, for the protocol mode information cell structure provided in the present specification, the data structure cell "protocol mode information (protocol mode info)" of the protocol mode cells may include layer 6 protocol indication information (L1 to L6).
TABLE 3 Table 3
Wherein L1 represents a physical layer, and the carried protocol mode information is shown in table 4, and may include Twisted pair mode (COAX), fiber Cable mode (COAX), and wireless mode (wireless).
TABLE 4 Table 4
L2 represents a link layer, and the carried protocol mode information is shown in table 5, and may include an ethernet (ethernet) mode and a point-to-point protocol (Point to Point Protocol, PPP).
TABLE 5
L3 represents a network layer, and the carried protocol mode information is shown in table 6, and can comprise addressing protocol modes such as corresponding IPv4, IPv6, geographic location network GN, content identification network NDN, identity identification network MF and the like.
TABLE 6
L4 represents a transport layer, and the carried protocol mode information is shown in Table 7, and may include a TCP mode and a UDP mode.
TABLE 7
L5 represents a transport security layer, and the carried protocol mode information is shown in table 8, and may include TLS mode and secure socket layer (Secure Socket Layer, SSL) mode.
TABLE 8
L6 represents an application layer, and the carried protocol mode information is shown in table 9, and may include HTTP mode, GTP and packet forwarding protocol (PacketForwardingControlProtocol, PFCP) mode.
TABLE 9
When a service consumer triggers a service request, and meanwhile, because of the requirement on a network function PDU transmission protocol mode, a service provider is required to match the protocol stack mode, the service consumer does not have available examples or protocol stack mode information of the available service provider in a cache at the moment, and a query request for example information of the service provider with a corresponding protocol stack mode is required to be initiated through NRF. When a first layer of protocol mode (protocol mode) of a network function instance identified by "nflnstageid" in "NFProfile" of the same network function and a second layer of protocol mode of a network function service instance identified by "ServiceInstanceId" carried on "nfinstanceby" of the network function instance each contain matched protocol mode information ("protocol mode info"), both the corresponding network function instance and the corresponding network function service instance need to be returned.
In one or more embodiments of the present disclosure, a target protocol mode (target-protocol-mode) attribute may be added to a query parameter for a network function discovery service (nnrf_nfdiscovery service), where the attribute includes query condition information for a network function configuration file of a "network function service instance" or a "network function instance" to which "protocol mode information" belongs, where the "network function state" or "network function service state" is registered in the NRF by a service provider.
Based on the method of network communication shown in fig. 1, the embodiment of the present disclosure further provides a schematic diagram of an apparatus for network communication, as shown in fig. 3.
Fig. 3 is a schematic diagram of an apparatus for network communication according to an embodiment of the present disclosure, where the apparatus is located in a network element with a network storage function, and the apparatus includes:
a receiving module 300, configured to receive a service request sent by a service consumer;
a first determining module 302, configured to at least determine target protocol stack configuration information that is carried in the service request and matches the service consumer;
a second determining module 304, configured to determine, according to the target protocol stack configuration information, a target service provider from pre-stored protocol stack configuration information of the service provider;
and a sending module 306, configured to send the address information of the target service provider to the service consumer, so that the service consumer performs service communication with the target service provider based on the address information.
Optionally, the service request includes a target protocol stack configuration mode attribute, where the target protocol stack configuration mode attribute includes target protocol stack configuration information, so as to instruct the NRF to discover a target service provider based on the target protocol stack configuration information.
Optionally, the first determining module 302 is specifically configured to determine target protocol stack configuration information that is carried in the service request and matches with the service consumer, and determine a service type required by the service consumer.
Optionally, the second determining module 304 is specifically configured to determine, according to the target protocol stack configuration information and the service type, a target service provider from the pre-stored protocol stack configuration information of the service provider.
Optionally, the service provider includes a network function service instance and a network function instance;
the second determining module 304 is specifically configured to determine, according to the target protocol stack configuration information, a target network function service instance and/or a target network function instance from pre-stored protocol stack configuration information of the network function service instance and protocol stack configuration information of the network function instance.
Based on the method of network communication described in fig. 2, the embodiment of the present disclosure further provides a schematic diagram of an apparatus for network communication, as shown in fig. 4.
Fig. 4 is a schematic diagram of an apparatus for network communication according to an embodiment of the present disclosure, where the apparatus is located in a service consumer, and the apparatus includes:
A sending module 400, configured to send a service request to a network storage function network element, so that the network storage function network element determines a target service provider from pre-stored protocol stack configuration information of the service provider based on the service request, and returns address information of the target service provider to the service consumer; wherein, the service request carries the target protocol stack composition information matched with the service consumer;
a receiving module 402, configured to receive address information of the target service provider returned by the network storage function network element;
and a communication module 404, configured to perform service communication with the target service provider based on the address information.
Optionally, the service request includes a target protocol stack configuration mode attribute, where the target protocol stack configuration mode attribute includes target protocol stack configuration information, so as to instruct the NRF to discover the target service provider based on the target protocol stack configuration information.
Optionally, the service provider includes a network function service instance and a network function instance;
the receiving module 402 is specifically configured to receive address information of a target network function instance and/or address information of a target network function service instance returned by the network storage function network element;
The communication module 404 is specifically configured to select a final target instance from the received target network function instances and/or the target network function service instances according to a preset rule; and carrying out service communication with the final target instance based on the address information of the final target instance.
The embodiments of the present specification also provide a computer-readable storage medium storing a computer program that can be used to perform the method of network communication described above.
Based on the above-mentioned network communication method, the embodiment of the present disclosure further proposes a schematic structural diagram of the electronic device shown in fig. 6. At the hardware level, as in fig. 6, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile storage, although it may include hardware required for other services. The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to realize the network communication method.
Of course, other implementations, such as logic devices or combinations of hardware and software, are not excluded from the present description, that is, the execution subject of the following processing flows is not limited to each logic unit, but may be hardware or logic devices.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present specification.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the disclosure. Various modifications and alterations to this specification will become apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of the present description, are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A method of network communication, the method being applied to a network storage function NRF network element in 5G network communication, the method comprising:
receiving a service request sent by a service consumer; the service request comprises a target protocol stack composition modal attribute, and the target protocol stack composition modal attribute comprises target protocol stack composition information for indicating an NRF to discover a target service provider based on the target protocol stack composition information; the target protocol stack composition information comprises 6 layers of protocol composition information, wherein the 6 layers of protocol are a physical layer, a link layer, a network layer, a transmission security layer and an application layer;
at least determining target protocol stack composition information which is carried in the service request and matched with the service consumer;
the service provider registers the respective protocol formation mode information into the NRF through the registration service of the network function management service of the NRF in advance, and the registration request carries a network function configuration file of the service provider to be registered, wherein the network function configuration file comprises protocol stack formation mode attributes which contain protocol stack formation information, and the protocol stack formation information comprises information of a physical layer, a link layer, a network layer, a transmission security layer and an application layer; determining a target service provider from pre-stored protocol stack composition information of the service provider according to the target protocol stack composition information;
And sending the address information of the target service provider to the service consumer so that the service consumer can perform service communication with the target service provider based on the address information.
2. The method of claim 1, wherein at least determining the target protocol stack composition information carried in the service request and matched with the service consumer specifically comprises:
and determining target protocol stack composition information which is carried in the service request and matched with the service consumer, and determining the service type required by the service consumer.
3. The method according to claim 2, wherein determining the target service provider from the pre-stored protocol stack composition information of the service provider based on the target protocol stack composition information, in particular comprises:
and determining the target service provider from the pre-stored protocol stack composition information of the service provider according to the target protocol stack composition information and the service type.
4. The method of claim 1, wherein the service provider comprises a network function service instance and a network function instance;
according to the target protocol stack composition information, determining the target service provider from the pre-stored protocol stack composition information of the service provider specifically comprises the following steps:
And determining the target network function service instance and/or the target network function instance from the pre-stored protocol stack composition information of the network function service instance and the pre-stored protocol stack composition information of the network function instance according to the target protocol stack composition information.
5. A method of network communication, the method being applied to a service consumer in 5G network communication, the method comprising:
transmitting a service request to a network storage function network element, so that the network storage function network element determines a target service provider from protocol stack composition information of the pre-stored service provider based on the service request, and returns address information of the target service provider to the service consumer; wherein, the service request carries the target protocol stack composition information matched with the service consumer; the service request comprises a target protocol stack composition modal attribute, and the target protocol stack composition modal attribute comprises target protocol stack composition information for indicating an NRF to discover a target service provider based on the target protocol stack composition information; the target protocol stack composition information comprises 6 layers of protocol composition information, wherein the 6 layers of protocol are a physical layer, a link layer, a network layer, a transmission security layer and an application layer;
Receiving address information of the target service provider returned by the network storage function network element;
and carrying out service communication with the target service provider based on the address information.
6. The method of claim 5, wherein the service provider comprises a network function service instance and a network function instance;
receiving the address information of the target service provider returned by the network storage function network element, wherein the method specifically comprises the following steps:
receiving address information of a target network function instance and/or address information of a target network function service instance returned by the network storage function network element;
based on the address information, carrying out service communication with the target service provider, specifically including:
selecting a final target instance from the received target network function instances and/or the target network function service instances according to preset rules;
and carrying out service communication with the final target instance based on the address information of the final target instance.
7. An apparatus for network communication, wherein the apparatus is located in a network storage function network element in 5G network communication, the apparatus specifically comprising:
The receiving module is used for receiving the service request sent by the service consumer; the service request comprises a target protocol stack composition modal attribute, and the target protocol stack composition modal attribute comprises target protocol stack composition information for indicating an NRF to discover a target service provider based on the target protocol stack composition information; the target protocol stack composition information comprises 6 layers of protocol composition information, wherein the 6 layers of protocol are a physical layer, a link layer, a network layer, a transmission security layer and an application layer;
the first determining module is used for determining at least target protocol stack composition information which is carried in the service request and matched with the service consumer;
the second determining module is used for registering respective protocol formation mode information into the NRF through registration service of network function management service of the NRF in advance, wherein a registration request carries network function configuration files of the service provider to be registered, the network function configuration files comprise protocol stack formation mode attributes, the protocol stack formation mode attributes comprise protocol stack formation information, and the protocol stack formation information comprises information of a physical layer, a link layer, a network layer, a transmission security layer and an application layer; determining a target service provider from pre-stored protocol stack composition information of the service provider according to the target protocol stack composition information;
And the sending module is used for sending the address information of the target service provider to the service consumer so that the service consumer can carry out service communication with the target service provider based on the address information.
8. An apparatus for network communication, wherein the apparatus is located at a service consumer in 5G network communication, the apparatus comprising in particular:
a sending module, configured to send a service request to a network storage function network element, so that the network storage function network element determines a target service provider from pre-stored protocol stack configuration information of the service provider based on the service request, and returns address information of the target service provider to the service consumer; wherein, the service request carries the target protocol stack composition information matched with the service consumer; the service request comprises a target protocol stack composition modal attribute, and the target protocol stack composition modal attribute comprises target protocol stack composition information for indicating an NRF to discover a target service provider based on the target protocol stack composition information; the target protocol stack composition information comprises 6 layers of protocol composition information, wherein the 6 layers of protocol are a physical layer, a link layer, a network layer, a transmission security layer and an application layer;
The receiving module is used for receiving the address information of the target service provider returned by the network storage function network element;
and the communication module is used for carrying out service communication with the target service provider based on the address information.
9. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of any of the preceding claims 1-6.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any of the preceding claims 1-6 when executing the program.
CN202311336528.1A 2023-10-16 2023-10-16 Network communication method and device, storage medium and electronic equipment Active CN117097779B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311336528.1A CN117097779B (en) 2023-10-16 2023-10-16 Network communication method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311336528.1A CN117097779B (en) 2023-10-16 2023-10-16 Network communication method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN117097779A CN117097779A (en) 2023-11-21
CN117097779B true CN117097779B (en) 2024-01-30

Family

ID=88780462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311336528.1A Active CN117097779B (en) 2023-10-16 2023-10-16 Network communication method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117097779B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102858028A (en) * 2011-06-30 2013-01-02 重庆重邮信科通信技术有限公司 Method and terminal for releasing controlled party in multiparty call
CN109314695A (en) * 2016-07-04 2019-02-05 华为技术有限公司 Determine method, control plane network element and the system of user face protocol stack
CN110278161A (en) * 2019-05-06 2019-09-24 阿里巴巴集团控股有限公司 Message diversion method, apparatus and system based on User space protocol stack
EP3550799A1 (en) * 2016-12-30 2019-10-09 Huawei Technologies Co., Ltd. Heterogeneous multi-protocol stack method, device and system
CN111404714A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 Network transport layer connection control method and network equipment
WO2020174119A1 (en) * 2019-02-25 2020-09-03 Nokia Solutions And Networks Oy Combined service discovery and connection setup for service-based architectures
CN111835802A (en) * 2019-04-18 2020-10-27 大唐移动通信设备有限公司 Communication method and device
WO2022105884A1 (en) * 2020-11-23 2022-05-27 中兴通讯股份有限公司 Data transmission method and apparatus, network device, and storage medium
WO2023124609A1 (en) * 2021-12-28 2023-07-06 中兴通讯股份有限公司 Service discovery processing method, device, and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BR122021001918B1 (en) * 2016-12-07 2021-11-23 Hughes Network Systems, Llc METHODS AND APPARATUS TO PROCESS USER TRAFFIC RECEIVED FROM PLURALITY OF MAIN NETWORKS OF DIFFERENT TYPES

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102858028A (en) * 2011-06-30 2013-01-02 重庆重邮信科通信技术有限公司 Method and terminal for releasing controlled party in multiparty call
CN109314695A (en) * 2016-07-04 2019-02-05 华为技术有限公司 Determine method, control plane network element and the system of user face protocol stack
EP3550799A1 (en) * 2016-12-30 2019-10-09 Huawei Technologies Co., Ltd. Heterogeneous multi-protocol stack method, device and system
CN111404714A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 Network transport layer connection control method and network equipment
WO2020174119A1 (en) * 2019-02-25 2020-09-03 Nokia Solutions And Networks Oy Combined service discovery and connection setup for service-based architectures
CN111835802A (en) * 2019-04-18 2020-10-27 大唐移动通信设备有限公司 Communication method and device
CN110278161A (en) * 2019-05-06 2019-09-24 阿里巴巴集团控股有限公司 Message diversion method, apparatus and system based on User space protocol stack
WO2022105884A1 (en) * 2020-11-23 2022-05-27 中兴通讯股份有限公司 Data transmission method and apparatus, network device, and storage medium
WO2023124609A1 (en) * 2021-12-28 2023-07-06 中兴通讯股份有限公司 Service discovery processing method, device, and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
B. Rosen ; .Interoperability Profile for Relay User Equipment draft-ietf-rum-rue-03.IETF .2020,全文. *
E. Burger ; NeuStar, Inc. ; H. Kaplan ; Acme Packet ; C. Holmberg ; Ericsson ; .Session Initiation Protocol (SIP) INFO Method and Package Framework draft-ietf-sipcore-info-events-00.IETF .2009,全文. *
郑杰 ; 屈玉贵 ; 赵保华.嵌入式无线传感器网络自组织通信协议栈.北京邮电大学学报.2009,全文. *

Also Published As

Publication number Publication date
CN117097779A (en) 2023-11-21

Similar Documents

Publication Publication Date Title
CN111581563B (en) Page response method and device, storage medium and electronic equipment
CN111683359B (en) BLE communication method, device, equipment and storage medium
CN112104499B (en) Container network model construction method, device, equipment and medium
CN111444442B (en) Information recommendation method and device
CN110413845B (en) Resource storage method and device based on Internet of things operating system
CN111355816B (en) Server selection method, device, equipment and distributed service system
CN112003922B (en) Data transmission method and device
CN115408468A (en) Data synchronization method and device, readable storage medium and electronic equipment
CN113626626B (en) Photo storage method, device and equipment for sharing by multiple persons
CN117097779B (en) Network communication method and device, storage medium and electronic equipment
CN117478725A (en) Method, device, medium and electronic equipment for managing micro-service API
US10856347B2 (en) Wireless communications method, apparatus, device, and storage medium
CN111324778B (en) Data and service processing method and device and electronic equipment
CN111200608B (en) Link information processing method and device
CN117041980B (en) Network element management method and device, storage medium and electronic equipment
CN107704502B (en) Routing method, device, equipment and system
CN112187759A (en) Cross-network data transmission method and device
CN114830105A (en) Data reading method and terminal
CN116668542B (en) Service execution method based on heterogeneous resource binding under enhanced service architecture
CN116846517B (en) Network data transmission method and device, storage medium and electronic equipment
CN115599845B (en) Service execution method, device, storage medium and electronic equipment
CN117376143A (en) Service execution method and device based on full-dimension definable network function instance
CN115955432B (en) Method and device for determining physical link and electronic equipment
CN116132246B (en) Interaction method, device, gateway equipment and storage medium
CN117715242B (en) Data transmission method, system, storage medium and electronic equipment

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