Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
In the description of the present invention, "/" means "or" unless otherwise specified, for example, a/B may mean a or B. "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. Further, "at least one" means one or more, "a plurality" means two or more. The terms "first", "second", and the like do not necessarily limit the number and execution order, and the terms "first", "second", and the like do not necessarily limit the difference.
The inventive concept of the present invention is described below: fig. 1 shows a network topology of a delay-sensitive network TSN network commonly used in the industry internet at present, including Talker, Listener, and at least one bridge (TSN Bridges); before the Talker transmits the data Stream to the Listener, the Talker transmits a Stream Reservation Protocol (SRP) message for transmitting the data Stream to the Listener through the network bridge; wherein, the SRP message carries the connection establishment request information and the Quality of Service (QoS) requirement information; the Listener sends an SRP message response message to the Talker through the bridge according to the QoS availability on the output port used for data stream transmission; the bridge is in the path between Talker and Listener for allocating bandwidth resources to the data flow. At present, with the rapid development of 5G communication technology, 5G networks have been able to be applied in various industrial fields; the method comprises the following steps of utilizing a 5G network to replace a bridge to access the TSN network; specifically, the Talker transmits data stream between the 5G network and the Listener.
Based on the above technology, the present invention finds that, in a TSN network constructed by using a 5G network instead of a bridge, when a Talker initiates session registration to a Listener before the Talker transmits a data stream to the Listener through the 5G network, whether the transmission delay of the 5G network instead of the bridge can meet the delay requirement for transmitting the data stream in the TSN network is not considered, that is, the TSN network and the 5G network cannot perform QoS negotiation.
In view of the above technical problems, the present invention considers that if various functional devices in a 5G network can be utilized, the maximum delay of the 5G network when the 5G network is used as a bridge to transmit data can be obtained, and compared with the delay requirement of the TSN network, so as to determine whether the 5G network can meet the delay requirement of transmitting data stream in the TSN network, and the comparison result is fed back to Listener, so that the TSN network and the 5G network can perform QoS negotiation, and thus the technical problem can be solved.
Based on the above inventive concept, the embodiment of the present invention provides a communication method, which is applied to a TSN network 100 shown in fig. 2, where the TSN network includes a Talker101, a 5G network 102, and aListener 103; the 5G network includes a Session Management Function (SMF)device 1021, a Policy Control Function (PCF)device 1022, a User Equipment (UE) 1023, and a User Plane Function (UPF)device 1024; theSMF device 1021 is connected to thePCF device 1022 and theUPF device 1024, theUPF device 1024 is connected to the Talker101, and the UE1023 is connected to theUPF device 1024 and theListener 103.
As shown in fig. 3, the communication method provided by this embodiment includes S201 to 209:
s201,SMF device 1021 receives the first flow reservation protocol SRP message sent by Talker 101.
Wherein, the first flow reservation protocol SRP message includes a first time delay; the first delay is used to represent the maximum transmission delay that the Talker101 can accept to send a data stream to theListener device Listener 103.
It should be noted that the first flow reservation protocol SRP message further includes a unique identifier (Stream ID) of the Data flow, area framework information (Data Frame Parameters), UE Network Requirements (User To Network Requirements), Latency Requirements (accounted Latency), and routing details (Traffic Specification).
The regional framework information comprises an address of a sender of the data stream to be transmitted, an address of a receiver of the data stream to be transmitted and a Virtual Local Area Network (VLAN) ID; the UE network requirements include specific requirements of the UE on the network, such as requirements of the UE on network delay, bandwidth redundancy, and the like; a delay requirement for determining a maximum delay that a data stream to be transmitted may encounter in a path from Talker101 to a givenListener 103; and the route details are used for allocating resources and adjusting queues for the data streams to be transmitted so as to provide the requirements for QoS in the SRP message.
The first delay may specifically be a delay requirement in the first flow reservation protocol SRP message.
In an implementation manner, as shown in fig. 4, S201 provided in the embodiment of the present invention may specifically include S201a-S201b:
s201a, the UPFdevice 1024 receives the first flow reservation protocol SRP message sent by the Talker 10.
It should be noted that the UPFdevice 1024 performs data transmission with the Talker101 through an N6 interface; the N6 interface is used as a transmission interface between Talker101 and 5G network 102, and is used for data transmission of the user plane in 5G network 102.
S201b, the UPF device sends the first flow reservation protocol SRP message to the SMF device.
Specifically, theSMF device 1021 receives the first flow reservation protocol SRP message sent by the Talker101 through the UPFdevice 1024.
It should be noted that theSMF device 1021 and theUPF device 1024 perform data transmission via an N4 interface.
S202, theSMF device 1021 determines, according to the first flow reservation protocol SRP message, routing information when sending a data flow from the Talker101 to the Listener103 using the 5G network 102.
The routing information includes addresses of the UE1023 and theUPF device 1024.
Specifically, theSMF device 1021 determines the addresses of the UE1023 and theUPF device 1024 from the area configuration information according to the unique identifier in the first flow reservation protocol, SRP, message.
S203, theSMF device 1021 generates a QoS request according to the routing information.
The QoS request is used to obtain the transmission delay of the route corresponding to the route information.
S204,SMF device 1021 sends a QoS request toPCF device 1022.
So thatPCF device 1022 determines the routing information after parsing the QoS request, and determines the second delay according to the routing information.
It should be noted that in S204 in the embodiment of the present invention, theSMF device 1021 and thePCF device 1022 use an N7 interface in the 5G network 102 for a session.
S205, thePCF apparatus 1022 parses the QoS request to determine the routing information when the 5G network 102 is used to send the data stream from the Talker101 to theListener 103.
Specifically, thePCF device 1022 receives the QoS request sent by theSMF device 1021, and parses the QoS request to determine the routing information when sending the data stream from the Talker101 to the Listener103 by using the 5G network 102.
S206,PCF apparatus 1022 determines the second delay according to the routing information.
Wherein, the second delay is used to represent the maximum transmission delay when transmitting the data stream from Talker101 to Listener103 when the TSN network is established by using the 5G network 102 instead of the bridge.
Optionally, the second delay provided in the embodiment of the present invention specifically includes a sum of a fourth delay and a fifth delay; the fourth delay is the maximum propagation delay between the UE1023 and the Listener103, and the fifth delay is the maximum propagation delay between the UE1023 and theUPF device 1024.
S207, PCFdevice 1022 sends Policy and Charging Control (PCC) rules toSMF device 1021.
So that theSMF device 1021 generates the registration permission information when the second latency is less than or equal to the first latency.
Wherein the PCC rule comprises a second time delay; the first time delay is obtained from a first flow reservation protocol (SRP) message after the SMF device receives the SRP message sent by the Talker.
Specifically, afterPCF device 1022 determines the second delay, a PCC rule is generated according to the second delay, and the PCC rule is sent toSMF device 1021 through an N7 interface.
S208, if the second time delay is less than or equal to the first time delay, theSMF device 1021 generates registration permission information.
The registration permission information is used to enable the Listener103 to establish a connection with the Talker101 after receiving the registration permission information.
It should be noted thatSMF device 1021 receives the PCC rule sent byPCF device 1022, and parses the PCC rule to obtain the second time delay.
S209, the registration permission information is sent to theListener 103.
In an implementation manner, as shown in fig. 4, S209 provided in the embodiment of the present invention may specifically include S209a-S209 c:
s209a theSMF device 1021 sends the permission registration information to theUPF device 1024.
It should be noted that theSMF device 1021 transmits the permission registration information to theUPF device 1024 via the N4 interface of the 5G network 102.
S209 b: theUPF device 1024 sends registration permission information to theUE 1023.
It should be noted that, the UPF device may specifically send the registration permission information to the UE1023 through the 5G base station.
S209c, UE1023 sends registration permission information to theListener 103.
Optionally, in the embodiment provided by the present invention, the permission registration information may specifically include a second stream reservation protocol SRP message.
S208 may specifically include: if the second delay is less than or equal to the first delay, theSMF device 1021 updates the first stream reservation protocol SRP message, and generates a second stream reservation protocol SRP message.
Wherein, the second flow reservation protocol SRP message includes a third time delay; wherein the third delay is a difference between the first delay and the second delay.
S209 may specifically include: sending a second Stream Reservation Protocol (SRP) message toListener 103; so that the Listener103 establishes a connection with the Talker101 according to the third delay after receiving the second stream reservation protocol SRP message.
After the 5G network 102 sends the negotiated allowed registration information to the Listener103, the Listener103 further needs to determine whether the delay of its own transmission port can meet a third delay requirement carried in the allowed registration information according to the delay of its own transmission port, and therefore, as shown in fig. 5, after S209 provided by the embodiment of the present invention, the method further includes:
s210, the Listener103 establishes a connection with the Talker101 according to the permission registration information.
Optionally, as shown in fig. 6, S210 provided in the embodiment of the present invention may specifically include S210a-S210 c:
s210a, the Listener103 will allow the registration information to be parsed and determine the third delay.
S210b, if the third delay is greater than or equal to the sixth delay, the Listener103 generates an SRP feedback message allowing registration.
The sixth delay is a transmission delay of a port used by the Listener103 for data stream transmission.
S210c, Listener103 sends SRP feedback message allowing registration to Talker 101.
So that after receiving the SRP feedback message allowing registration, Talker101 completes the connection between Listener103 andTalker 101.
In one implementation, as shown in fig. 7, S210c provided in the embodiment of the present invention may specifically include S210c1-S210c 3:
s210c1, Listener103 sends SRP feedback message allowing registration toUE 1023.
S210c2, UE1023 sends an SRP feedback message allowing registration to theUPF device 1024.
S210c3, theUPF device 1024 sends an SRP feedback message allowing registration to theTalker 101.
In another implementation manner, the Listener103 provided in this embodiment will allow the parsing of the registration information, and after determining the third time delay, the method further includes: if the third delay is less than the sixth delay, the Listener103 sends an SRP feedback message rejecting registration to theTalker 101.
It should be noted that the manner of sending the SRP feedback message denying registration to Talker101 by Listener103 is the same as S210c, and is not described herein again.
In one implementation, after S207, the embodiment of the present invention may further include S211 to S212:
s211, if the second delay is greater than the first delay, theSMF device 1021 sends registration rejection information to theListener 103.
The reject registration information is used to enable the Listener103 to reject to establish a connection with the Talker101 after receiving the reject registration information.
It should be noted that, the way for theSMF device 1021 to send the registration rejection information to the Listener103 may specifically refer to S209, and is not described herein again.
S212, after receiving the registration rejection information, the Listener103 sends an SRP feedback message rejecting registration to theTalker 101.
It should be noted that the manner in which the Listener103 sends the SRP feedback message rejecting registration to the Talker101 may specifically refer to S210c, and details are not described here.
Optionally, in practical application of the communication method provided in the embodiment of the present invention, when the Listener103 is used as a data stream sender to send a first stream reservation protocol SRP message to theSMF device 1021 for session registration, the message may specifically be sent to theSMF device 1021 through the UE1023 and theUPF device 1024 in sequence; when the Talker101 is used as a data stream receiver to send the SRP feedback message to the Listener103, the SRP feedback message may be specifically sent to the Listener103 through theUPF device 1024 and the UE1023 in sequence; for the specific sending method and other steps, reference may be made to the above embodiments, which are not described herein again.
The communication method and the device provided by the embodiment of the invention are applied to session registration of a TSN (time series transport network), and the TSN can be established between Talker and Listener by using a 5G network on the premise of ensuring normal transmission by using the 5G network after determining that the second time delay is less than or equal to the first time delay by receiving the first time delay in a first flow reservation protocol (SRP) message sent by the Talker and the second time delay in a PCC rule sent by PCF (policy and charging control) equipment, namely the self propagation time delay of the 5G network used as a network bridge in data transmission can meet the requirement of the TSN on the propagation time delay.
According to the embodiment of the present invention, theSMF device 1021 may be divided into functional modules or functional units according to the above method example, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiments of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of adopting a method of dividing each functional module corresponding to each function, an embodiment of the present invention provides a possible structural schematic diagram of theSMF device 1021 in the foregoing embodiment, as shown in fig. 8, theSMF device 300 includes afirst receiving unit 301, agenerating unit 302, and afirst sending unit 303; thegenerating unit 302 is connected to thefirst receiving unit 301 and thefirst transmitting unit 303, respectively.
Afirst receiving unit 301, configured to receive a first flow reservation protocol SRP message sent by aTalker device Talker 101; wherein, the first flow reservation protocol SRP message includes a first time delay; the first delay is used to represent the maximum transmission delay that the Talker101 can accept when sending a data stream to theListener device Listener 103.
Afirst receiving unit 301, further configured to receive a policy control and charging rule PCC rule sent by a control policyfunction PCF device 1022; wherein the PCC rule comprises a second time delay; here, the second delay is used to represent the maximum transmission delay when transmitting a data stream from Talker101 to Listener103 when the TSN network 100 is established using the 5G network 102 instead of a bridge.
A generatingunit 302, configured to generate registration permission information if the second time delay is less than or equal to the first time delay; the registration permission information is used to enable the Listener103 to establish a connection with the Talker101 after receiving the registration permission information.
Afirst sending unit 303, configured to send the registration permission information to theListener 103.
Optionally, in theSMF device 300 provided in the embodiment of the present invention, the generatingunit 302 is specifically configured to update the first flow reservation protocol SRP message and generate the second flow reservation protocol SRP message if the second delay is less than or equal to the first delay; wherein, the second flow reservation protocol SRP message includes a third time delay; wherein the third delay is a difference between the first delay and the second delay.
Afirst sending unit 303, configured to send the second stream reservation protocol SRP message to theListener 103; so that the Listener103 establishes a connection with the Talker101 according to the third delay after receiving the second stream reservation protocol SRP message.
Optionally, as shown in fig. 9, theSMF device 300 according to the embodiment of the present invention further includes a first determiningunit 304; the first determiningunit 304 is connected to thefirst transmitting unit 301.
A first determiningunit 304, configured to determine, according to the first stream reservation protocol SRP message, routing information when sending a data stream from Talker101 to Listener103 using 5G network 102.
Afirst sending unit 301, further configured to send a quality of service QoS request toPCF apparatus 1022; so thatPCF device 1022 determines the routing information after parsing the QoS request, and determines the second delay according to the routing information.
In the embodiment of the present invention, thePCF device 1022 may be divided into functional modules or functional units according to the above method examples, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiments of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of dividing each functional module according to each function, the embodiment of the present invention provides a schematic diagram of a possible structure of thePCF apparatus 1022 in the foregoing embodiment, as shown in fig. 10, thePCF apparatus 400 includes asecond sending unit 401.
Asecond sending unit 401, configured to send a policy control and charging rule PCC rule to session managementfunction SMF device 1021, so thatSMF device 1021 generates registration permission information when the second delay is less than or equal to the first delay; wherein the PCC rule comprises a second time delay; the first time delay is obtained from a first flow reservation protocol SRP message after theSMF device 1021 receives the first flow reservation protocol SRP message sent by the Talker device Talker101, where the first time delay is used to represent a maximum transmission time delay acceptable when the Talker device Talker101 sends a data stream to the Listener device Listener; the allowed registration information is used for enabling the Listener103 to establish connection with the Talker101 after receiving the allowed registration information; the second delay is the maximum transmission delay when the data stream is sent from the Talker101 to the Listener103 when the TSN network 100 is established by using the 5G network 102 instead of a bridge.
Optionally, as shown in fig. 10,PCF device 402 provided in this embodiment of the present invention further includes asecond receiving unit 402 and a second determiningunit 403; second determiningsection 403 is connected tosecond receiving section 402 andsecond transmitting section 401, respectively.
Asecond receiving unit 402, configured to receive a quality of service QoS request sent by the SMF device.
A second determiningunit 403, configured to parse the QoS request to determine routing information when the 5G network 102 is used to send the data stream from the Talker101 to theListener 103.
The second determiningunit 403 is further configured to determine a second delay according to the routing information.
Optionally, the second delay provided in the embodiment of the present invention specifically includes a sum of a fourth delay and a fifth delay; the fourth delay is the maximum propagation delay between the UE1023 and the Listener103, and the fifth delay is the maximum propagation delay between the UE1023 and the responsible userplane UPF device 1024.
Fig. 11 shows a schematic diagram of another possible structure of anSMF device 1021 in the above method embodiment. The SMF device 500 includes: afirst processor 502 and afirst communication interface 503.
Thefirst processor 502 is configured to control and manage the actions of the SMF device 500, for example, to perform the steps performed by the SMF device 500 in the method flows shown in the above-described method embodiments, and/or to perform other processes of the techniques described herein.
Thefirst communication interface 503 is used to support communication of the SMF device 500 with other network devices.
The SMF device 500 may further comprise afirst memory 501 and afirst bus 504, thefirst memory 601 being used for storing program codes and data of the SMF device 500.
Thefirst processor 502 may implement or execute various exemplary logical blocks, units and circuits described in connection with the present disclosure. The first processor may be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. A processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, a DSP and a microprocessor, or the like.
Thefirst memory 501 may comprise a volatile memory, such as a random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
Thefirst bus 504 may be an Extended Industry Standard Architecture (EISA) bus or the like. Thefirst bus 504 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 11, but this is not intended to represent only one bus or type of bus.
Fig. 12 shows a schematic diagram of another possible structure of thePCF apparatus 1022 in the above method embodiment. The PCF apparatus 600 comprises: asecond processor 602 and asecond communication interface 603.
Second processor 602 is configured to control and manage the actions of PCF device 600, e.g., to perform the various steps performed by PCF device 600 in the method flows illustrated in the above-described method embodiments, and/or to perform other processes for the techniques described herein.
Thesecond communication interface 603 is used to support communication of the PCF apparatus 600 with other network devices.
PCF device 600 may also include asecond memory 601 and asecond bus 604,second memory 601 for storing program codes and data for PCF device 600.
Thesecond processor 602 may implement or execute various exemplary logical blocks, units and circuits described in connection with the present disclosure. The second processor may be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, transistor logic, a hardware component, or any combination thereof. A processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, a DSP and a microprocessor, or the like.
Thesecond memory 601 may include a volatile memory, such as a random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
Thesecond bus 604 may be an Extended Industry Standard Architecture (EISA) bus or the like. Thesecond bus 604 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 12, but this is not intended to represent only one bus or type of bus.
It is clear to those skilled in the art from the foregoing description of the embodiments that, for convenience and simplicity of description, the foregoing division of the functional units is merely used as an example, and in practical applications, the above function distribution may be performed by different functional units according to needs, that is, the internal structure of the device may be divided into different functional units to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed by a computer, the computer executes each step in the method flow shown in the above method embodiment.
Embodiments of the present invention provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the communication method described in the above method embodiments.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read-Only Memory (EPROM), registers, a hard disk, an optical fiber, a portable Compact disk Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any other form of computer-readable storage medium, in any suitable combination, or as appropriate in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC). In embodiments of the invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Since the SMF device, the PCF device, the computer-readable storage medium, and the computer program product in the embodiments of the present invention may be applied to the above method, the technical effects obtained by the embodiments of the present invention may also refer to the above method embodiments, and are not described herein again.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions within the technical scope of the present invention are intended to be covered by the scope of the present invention.