KR20180050983A - Method and apparatus for transmitting rtp packet - Google Patents

Method and apparatus for transmitting rtp packet Download PDF

Info

Publication number
KR20180050983A
KR20180050983A KR1020160147704A KR20160147704A KR20180050983A KR 20180050983 A KR20180050983 A KR 20180050983A KR 1020160147704 A KR1020160147704 A KR 1020160147704A KR 20160147704 A KR20160147704 A KR 20160147704A KR 20180050983 A KR20180050983 A KR 20180050983A
Authority
KR
South Korea
Prior art keywords
rtp
header
rtp packet
time information
field
Prior art date
Application number
KR1020160147704A
Other languages
Korean (ko)
Inventor
이종국
Original Assignee
한국전자통신연구원
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 한국전자통신연구원 filed Critical 한국전자통신연구원
Priority to KR1020160147704A priority Critical patent/KR20180050983A/en
Publication of KR20180050983A publication Critical patent/KR20180050983A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • H04L65/608
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 

Abstract

An apparatus for transmitting a real time protocol (RTP) packet sets that an extension header is included after an RTP fixing header in the extension field of the RTP fixing header, represents the sampling time information of the first byte of the RTP packet with time information up to nanoseconds, and then transmits the RTP packet including the RTP fixing header and the extension header. Accordingly, the present invention can provide precise sampling time information for real-time communication.

Description

RTP 패킷 전송 방법 및 장치{METHOD AND APPARATUS FOR TRANSMITTING RTP PACKET}METHOD AND APPARATUS FOR TRANSMITTING RTP PACKET [0002]

본 발명은 RTP 패킷 전송 방법 및 장치에 관한 것으로, 특히 정밀한 샘플링 시간 정보를 제공할 수 있는 RTP 패킷 전송 방법 및 장치에 관한 것이다. The present invention relates to an RTP packet transmission method and apparatus, and more particularly, to an RTP packet transmission method and apparatus capable of providing accurate sampling time information.

기존의 RTP(Real Time Protocol)에서 시간을 나타내는 타임스탬프(Time Stamp)는 32비트의 길이를 가지며, 1/65535sec 단위를 최소단위로 가지며, 15.2us의 간격으로 구성될 수 있다. 이러한 RTP는 15.2us 이하의 시간 단위의 정확도를 요구하는 환경에는 사용될 수 없다. 또한 이러한 타임스탬프는 NTP(Network Time Protocol)를 기반으로 하여 상대적으로 계산된다. NTP 서버와 클라이언트 간의 네트워크 지연에 따른 오차와 NTP 서버 자체의 시간 오차로 인해, NTP를 기반으로 계산되는 타임스탬프는 ±5~100 ms에 해당하는 상당한 오차가 발생될 수 있다. A time stamp indicating a time in a conventional RTP (Real Time Protocol) has a length of 32 bits, has a unit of 1 / 65535sec as a minimum unit, and can be configured with an interval of 15.2us. These RTPs can not be used in environments that require accuracy in time units of 15.2us or less. Also, these timestamps are calculated relatively based on NTP (Network Time Protocol). Due to the network delay between the NTP server and the client and the time error of the NTP server itself, the time stamp calculated based on the NTP may have a significant error of ± 5 to 100 ms.

본 발명이 해결하려는 과제는 실시간 통신을 위해 정밀한 샘플링 시간 정보를 제공할 수 있는 RTP 패킷 전송 방법 및 장치를 제공하는 것이다. An object of the present invention is to provide an RTP packet transmission method and apparatus capable of providing accurate sampling time information for real-time communication.

본 발명의 한 실시 예에 따르면, RTP(Real Time Protocol) 패킷 전송 장치에서 RTP 패킷을 전송하는 방법이 제공된다. RTP 패킷 전송 방법은 RTP 고정 헤더의 확장 필드에 상기 RTP 고정 헤더 뒤에 확장 헤더가 포함되어 있음을 설정하는 단계, 상기 확장 헤더에 상기 RTP 패킷의 첫 번째 바이트의 샘플링 시간 정보를 나노 초(nanoseconds) 단위까지의 시간 정보로 나타내는 단계, 그리고 상기 RTP 고정 헤더 및 상기 확장 헤더를 포함한 RTP 패킷을 전송하는 단계를 포함한다. According to an embodiment of the present invention, a method of transmitting an RTP packet in a RTP (Real Time Protocol) packet transmission apparatus is provided. The RTP packet transmission method includes configuring that an extension header is included in an extension field of an RTP header, after the RTP header is included in the extension header, and storing the sampling time information of the first byte of the RTP packet in nanoseconds And transmitting the RTP packet including the RTP header and the extension header.

상기 확장 헤더는 상기 샘플링 시간 정보를 연도(Year), 월(Month), 일(Day), 시(Hour), 밀리초(milliseconds), 마이크로초(microseconds) 및 나노초(nanoseconds)로 나타내기 위한 복수의 필드를 포함할 수 있다. The extension header may include a plurality of bits for indicating the sampling time information as Year, Month, Day, Hour, milliseconds, microseconds, and nanoseconds. Lt; / RTI > field.

상기 확장 헤더는 시간 동기화 방법의 타입을 나타내는 버퍼(buffer) 필드를 더 포함할 수 있다. The extension header may further include a buffer field indicating a type of the time synchronization method.

상기 시간 동기화 방법은 GPS(Global Positioning System) 또는 무선 표준 전파를 이용한 방법을 포함할 수 있다. The time synchronization method may include a GPS (Global Positioning System) or a method using wireless standard radio waves.

본 발명의 다른 한 실시 예에 따르면, RTP 패킷 전송 장치가 제공된다. RTP 패킷 전송 장치는 프로세서, 그리고 송수신기를 포함한다. 상기 프로세서는 RTP 헤더의 확장 필드에 확장 헤더가 있음을 설정하고, 상기 확장 헤더에 상기 RTP 패킷의 첫 번째 바이트의 샘플링 시간 정보를 나노 초(nanoseconds) 단위까지 설정하여, RTP 패킷을 생성한다. 그리고 상기 송수신기는 상기 RTP 패킷을 전송한다. According to another embodiment of the present invention, an RTP packet transmission apparatus is provided. The RTP packet transmission apparatus includes a processor and a transceiver. The processor sets an extension header in the extension field of the RTP header and sets up sampling time information of the first byte of the RTP packet in nanoseconds in the extension header to generate an RTP packet. The transceiver transmits the RTP packet.

상기 프로세서는 상기 확장 헤더에 상기 샘플링 시간 정보를 연도(Year), 월(Month), 일(Day), 시(Hour), 밀리초(milliseconds), 마이크로초(microseconds) 및 나노 초 단위까지 설정할 수있다. The processor can set the sampling time information in the extension header up to the year, month, day, hour, milliseconds, microseconds, and nanoseconds have.

상기 프로세서는 상기 확장 헤더에 시간 동기화 방법의 타입을 설정하고, 상기 시간 동기화 방법으로는 GPS 또는 무선 표준 전파를 이용한 방법이 사용될 수 있다. The processor sets a type of time synchronization method in the extension header, and a method using GPS or wireless standard radio may be used as the time synchronization method.

상기 송수신기는 GPS 수신기 또는 표준 전파 수신기를 포함하며, 상기 프로세서는 상기 GPS 수신기 또는 상기 표준 전파 수신기를 통해 획득한 시간 정보를 이용하여 상기 샘플링 시간 정보를 설정할 수 있다. The transceiver includes a GPS receiver or a standard radio receiver, and the processor can set the sampling time information using time information acquired through the GPS receiver or the standard radio receiver.

본 발명의 실시 예에 의하면, 아주 정확한 시간 설정을 할 수 있으므로 원격의료, 군사 등 아주 엄격한 실시간 통신의 필요한 일에 쉽게 활용될 수 있다. 또한 정확한 시간 설정을 통해서 고가의 네트워크 측정 장비들이 구사하던 실시간 네트워크 지연시간 측정이나 품질 측정 등을 저렴하고 손쉽게 수행할 수 있으며, GPS 수신기나 표준 전파 수신 장비만 설치하면 되므로, 손쉽게 구현 및 적용이 가능하다. According to the embodiment of the present invention, since it is possible to set a very precise time, it can be easily utilized in a need for a very strict real time communication such as telemedicine, military, and the like. In addition, accurate time setting enables real-time network latency measurement and quality measurement performed by expensive network measurement equipment to be performed inexpensively and easily, and only GPS receiver or standard radio receiver can be installed. Do.

도 1 내지 도 3은 각각 본 발명이 적용되는 시간 동기화를 설명하는 도면이다.
도 4는 기존 RTP 패킷 헤더의 구조를 나타낸 도면이다.
도 5는 본 발명의 실시 예에 따른 RTP 헤더의 구조를 나타낸 도면이다.
도 6은 본 발명의 실시 예에 따른 RTP 패킷 전송 방법을 나타낸 흐름도이다.
도 7은 본 발명의 실시 예에 따른 RTP 패킷 전송 장치를 나타낸 도면이다.
1 to 3 are views for explaining time synchronization to which the present invention is applied.
4 is a diagram illustrating a structure of an existing RTP packet header.
5 is a diagram illustrating a structure of an RTP header according to an embodiment of the present invention.
6 is a flowchart illustrating an RTP packet transmission method according to an embodiment of the present invention.
7 is a diagram illustrating an RTP packet transmission apparatus according to an embodiment of the present invention.

아래에서는 첨부한 도면을 참고로 하여 본 발명의 실시 예에 대하여 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 상세히 설명한다. 그러나 본 발명은 여러 가지 상이한 형태로 구현될 수 있으며 여기에서 설명하는 실시 예에 한정되지 않는다. 그리고 도면에서 본 발명을 명확하게 설명하기 위해서 설명과 관계없는 부분은 생략하였으며, 명세서 전체를 통하여 유사한 부분에 대해서는 유사한 도면 부호를 붙였다. Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily carry out the present invention. The present invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. In order to clearly illustrate the present invention, parts not related to the description are omitted, and similar parts are denoted by like reference characters throughout the specification.

명세서 및 청구범위 전체에서, 어떤 부분이 어떤 구성 요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성 요소를 더 포함할 수 있는 것을 의미한다. Throughout the specification and claims, when a section is referred to as "including " an element, it is understood that it does not exclude other elements, but may include other elements, unless specifically stated otherwise.

이제 본 발명의 실시 예에 따른 RTP 패킷 전송 방법 및 장치에 대하여 도면을 참고로 하여 상세하게 설명한다. Now, an RTP packet transmission method and apparatus according to an embodiment of the present invention will be described in detail with reference to the drawings.

도 1 내지 도 3은 각각 본 발명이 적용되는 시간 동기화를 설명하는 도면이다. 1 to 3 are views for explaining time synchronization to which the present invention is applied.

도 1을 참고하면, NTP(Network Time Protocol)는 네트워크를 통한 시간 동기화 방법이다. 클라이언트(120)는 등록한 NTP 서버(110)로부터 시간 정보를 수신하여 로컬 클럭에 적용함으로써, 시간 동기화를 수행한다. 여기서, 클라이언트(120)는 사용자 단말에 해당한다. 클라이언트(120)는 NTP 서버(110)로 시간 정보를 요청하고, NTP 서버(110)로부터 시간 정보를 수신할 수 있다. 이와 달리, NTP 서버(110)는 시간 정보를 일정한 간격으로 네트워크에 브로드캐스팅할 수 있고, 클라이언트(120)는 NTP 서버(110)로부터 브로드캐스팅되는 시간 정보를 수신할 수 있다. 그러나 NTP를 이용한 시간 동기화 방법은 네트워크 지연 시간에 대응하는 시간 오차가 발생한다. Referring to FIG. 1, NTP (Network Time Protocol) is a time synchronization method over a network. The client 120 receives time information from the registered NTP server 110 and applies the time information to the local clock to perform time synchronization. Here, the client 120 corresponds to a user terminal. The client 120 may request time information from the NTP server 110 and time information from the NTP server 110. [ Alternatively, the NTP server 110 may broadcast the time information to the network at regular intervals, and the client 120 may receive the time information broadcast from the NTP server 110. However, in the time synchronization method using NTP, a time error corresponding to the network delay time occurs.

이와 달리, 도 2에 도시한 바와 같이, GPS(Global Positioning System)를 이용한 시간 동기화 방법이 있다. 클라이언트(220)는 위성(210)에서 발신하는 시간정보를 수신하여 내부 클럭에 적용할 수 있다. 이와 같이 GPS를 이용한 시간 동기화 방법은 시간 오차가 매우 작으나, 위성 신호를 수신하기 위한 GPS 수신기(222)를 야외에 설치해야 한다. Alternatively, as shown in FIG. 2, there is a time synchronization method using a GPS (Global Positioning System). The client 220 can receive the time information transmitted from the satellite 210 and apply it to the internal clock. As described above, the time synchronization method using the GPS requires very little time error, but the GPS receiver 222 for receiving the satellite signals must be installed outdoors.

또한 도 3을 참고하면, 표준 전파(Standard radio wave)를 이용한 시간 동기화 방법이 있다. 클라이언트(320)는 표준 전파 발신 장치(310)로부터 표준 전파의 시간 정보를 수신하여 내부 클럭에 적용할 수 있다. 표준 전파 발신 장치(310)로부터 표준 전파를 수신하기 위해 클라이언트(320)는 표준 전파 수신기(322)를 포함할 수 있다. 표준 무선 전파를 이용한 시간 동기화 방법은 현재까지 나와 있는 시간 동기화 방법들 중에서 가장 정확하고 오차가 없다. 단, 표준 전파를 제공하는 국가에서만 사용이 가능하다. Referring to FIG. 3, there is a time synchronization method using a standard radio wave. The client 320 can receive the standard time information of the radio wave from the standard wave transmission device 310 and apply it to the internal clock. The client 320 may include a standard radio receiver 322 to receive a standard radio wave from the standard radio frequency transmission device 310. [ The time synchronization method using the standard radio wave is the most precise and error-free among the time synchronization methods described up to now. However, it can only be used in countries providing standard radio.

표 1은 NTP, GPS 및 표준 전파를 이용한 시간 동기화 시 발생할 수 있는 시간 오차를 나타낸다. Table 1 shows the time errors that can occur in time synchronization using NTP, GPS, and standard radio waves.

[표 1][Table 1]

Figure pat00001
Figure pat00001

표 1에 도시한 바와 같이, 표준 전파의 경우 오차가 ±2x10-8ns 정도로, 오차가 극히 없는 수준이다. 그에 비해 GPS의 경우 오차는 ±1ns이며, 컴퓨터에서 많이 사용하고 있는 NTP의 경우 오차는 ±5~100ms 정도이다. 따라서, NTP 이용한 시간 동기화 방법은 실시간에 민감한 환경에는 사용할 수 없다. As shown in Table 1, in the case of standard radio waves, the error is about ± 2 × 10 -8 ns and the error is extremely low. On the other hand, the error of GPS is ± 1ns, and the error of NTP is about ± 5 ~ 100ms. Therefore, the time synchronization method using NTP can not be used in a real time sensitive environment.

본 발명의 실시 예에서는 RTP 서비스를 제공하는 서버와 클라이언트 모두 오차가 거의 없는 표준 전파나 GPS를 이용하여 시간을 설정하는 것을 전제로 한다. In the embodiment of the present invention, it is assumed that both the server and the client providing the RTP service set the time using standard radio waves or GPS which have almost no error.

도 4는 기존 RTP 패킷 헤더의 구조를 나타낸 도면이다. 4 is a diagram illustrating a structure of an existing RTP packet header.

도 4를 참고하면, RTP는 실시간 전송을 위한 프로토콜로, RTP 패킷 헤더는 고정 헤더(1)와 확장 헤더(2)로 구성되어 있다. Referring to FIG. 4, RTP is a protocol for real-time transmission, and the RTP packet header is composed of a fixed header 1 and an extended header 2.

고정 헤더(1)는 버전(version, V) 필드(10), 패딩(padding, P) 필드(11), 확장(extension, X) 필드(12), 기여 소스 카운트[Contributing source(CSRC) count, CC] 필드(13), 마커(marker, M) 필드(14), 페이로드 타입(payload type, PT) 필드(15), 시퀀스 번호(sequence number) 필드(16), 타임스탬프(timestamp) 필드(17), 동기 소스(Synchronization source, SSRC) 필드(18) 및 CSRC 필드(19)를 포함한다. The fixed header 1 includes a version field 10, a padding field 11, an extension field 12, a contributing source count (CSRC) count, A CC field 13, a marker M field 14, a payload type (PT) field 15, a sequence number field 16, a timestamp field 17, a synchronization source (SSRC) field 18, and a CSRC field 19.

V 필드(10)는 2비트로 구성되며, 프로토콜 버전을 나타내며, 현재 버전은 2.0이다. The V field 10 is composed of two bits, indicating a protocol version, and the current version is 2.0.

P 필드(11)는 1비트로 구성되며, 32비트 단위로 RTP 패킷 페이로드를 구성하기 위해서 사용된다. P 필드(11)는 패딩 바이트(Padding octet)가 있는지를 나타내며, P 필드(11)의 값이 1로 세팅(setting)되어 있으면, RTP 패킷의 페이로드 끝 부분에 패딩 바이트가 포함되어 있음을 나타낸다. The P field 11 is composed of 1 bit, and is used to form an RTP packet payload in units of 32 bits. The P field 11 indicates whether there is a padding byte. If the value of the P field 11 is set to 1, it indicates that a padding byte is included at the end of the payload of the RTP packet .

X 필드(12)는 1비트로 구성되며, 고정 헤더(1)와 페이로드 사이에 확장 헤더(2)가 있는지를 나타낸다. X 필드(12)의 값이 1이면 한 개의 확장 헤더(2)가 확장 헤더(2)가 고정 헤더(1) 다음에 있음을 나타낸다. The X field 12 is composed of 1 bit and indicates whether there is an extension header 2 between the fixed header 1 and the payload. When the value of the X field 12 is 1, one extension header 2 indicates that the extension header 2 is next to the fixed header 1.

CC 필드(13)는 4비트로 구성되며, 고정 헤더(1) 뒤에 나타나는 CSRC 식별자의 개수를 나타낸다. CC 필드(13)는 여러 미디어가 RTP 믹서에 의해 합성되는 경우에, 그 개수를 나타낸다. 즉, RTP 패킷들은 망을 통해서 전달되면서 중간 시스템에서는 여러 소스로부터 온 RTP 패킷들을 받고 이들을 적절히 조합시켜서 새로운 형태의 RTP 패킷을 만들고 이를 다음 시스템으로 전달하는데, 이러한 기능을 수행하는 중간 시스템을 RTP 믹서라 한다. The CC field 13 is composed of 4 bits, and indicates the number of CSRC identifiers appearing after the fixed header (1). The CC field 13 indicates the number of the media when they are synthesized by the RTP mixer. In other words, the RTP packets are transmitted through the network, and the intermediate system receives the RTP packets from various sources and combines them appropriately to create a new type of RTP packet and transmit it to the next system. The intermediate system that performs this function is called an RTP mixer do.

M 필드(14)는 1비트로 구성되며, 프로파일(profile)에 의해 정의되어 있으므로, 페이로드 타입에 따라 사용 방법이 정해져 있다. M 필드(14)는 RTP 패킷 스트림에서 프레임 경계를 표시하는데 사용된다. 예를 들면, 비디오 패킷 스트림에서는 프레임의 끝을 나타내고, 오디오 패킷 스트림에서는 토크스퍼트(talk spurt, 말하기)의 끝을 나타낼 수 있다.The M field 14 is composed of 1 bit, and is defined by a profile, so the usage method is determined according to the payload type. The M field 14 is used to indicate the frame boundary in the RTP packet stream. For example, the video packet stream may represent the end of a frame, and the audio packet stream may represent the end of talk spurt.

PT 필드(15)는 7비트로 구성되며, RTP 패킷에 있는 페이로드의 타입을 나타낸다. RFC 1890 프로파일은 페이로드 타입 코드를 페이로드 포맷으로 대응을 시킨 것이다. 즉, PT 필드(15)의 값이 0이면 인코딩 방식의 오디오 정보이고 800Hz 클럭 레이트를 가지며 오디오 채널 1개를 갖는 것을 나타낸다. The PT field 15 is composed of 7 bits and indicates the type of the payload in the RTP packet. The RFC 1890 profile corresponds to payload type code in payload format. That is, if the value of the PT field 15 is 0, it indicates the audio information of the encoding system and has a 800 Hz clock rate and one audio channel.

시퀀스 번호 필드(16)는 16비트로 구성되며, RTP 패킷의 순서 번호를 나타낸다. 시퀀스 번호 필드(16)의 값은 RTP 패킷이 송신될 때마다 1씩 증가하며, 수신측이 이 필드를 통해 패킷 손실(packet loss)을 감지할 수 있고 패킷 순서를 복원할 수 있다. 시퀀스 번호 필드(16)의 초기값은 랜덤으로 설정될 수 있다. The sequence number field 16 is composed of 16 bits and indicates the sequence number of the RTP packet. The value of the sequence number field 16 increases by one each time an RTP packet is transmitted and the receiver can detect a packet loss through this field and restore the packet order. The initial value of the sequence number field 16 may be set to be random.

타임스탬프 필드(17)는 32비트로 구성되며, RTP 패킷 스트림 내 RTP 패킷의 첫 번째 바이트(octet)의 샘플링 시점(sampling instant)을 나타낸다. 샘플링 시점은 일정하게 증가하는 클럭으로부터 생성되며, 수신측은 이 필드(17)를 이용하여 수신된 RTP 패킷의 동기화와 지터 계산에 사용된다. The timestamp field 17 consists of 32 bits and represents the sampling instant of the first byte (octet) of the RTP packet in the RTP packet stream. The sampling time is generated from a constantly increasing clock, and the receiver uses this field 17 for synchronization and jitter calculation of received RTP packets.

SSRC 필드(18)는 32 비트로 구성되며, RTP 패킷의 소스를 식별한다. 하나의 RTP 세션 내에서 각 RTP 패킷은 상이한 SSRC 식별자를 갖는다. SSRC는 송신자의 IP 주소 대신에 새로운 스트림이 시작될 때 소스에서 임의로 할당한 32 비트의 고유한 값이다. 이 고유한 값은 불규칙적으로 생성되며, 예를 들면, 카메라 또는 마이크 등과 같이 RTP 패킷의 소스 식별자를 나타낼 수 있다. The SSRC field 18 is composed of 32 bits and identifies the source of the RTP packet. Within one RTP session, each RTP packet has a different SSRC identifier. SSRC is a 32-bit unique value randomly assigned by the source when a new stream starts instead of the sender's IP address. This unique value is irregularly generated and may represent the source identifier of the RTP packet, such as, for example, a camera or a microphone.

CSRC 필드(19)는 RTP 패킷에 포함된 페이로드의 기여(contributing) 소스들을 식별하기 위해 사용된다. CSRC 식별자의 개수는 CC 필드(13)에 표시되며, CSRC 필드(19)에는 최대 15개의 CSRC 식별자를 나타낼 수 있다. 즉 CSRC 필드(19)에는 RTP 믹서를 통해 여러 RTP 패킷이 합쳐지면, SSRC 이외 합쳐진 원 소스의 CSRC 식별자들이 나열된다. 만약, 하나의 패킷 소스만 있다면, CC 필드(13)의 값은 1이고, SSRC 식별자가 하나의 값을 갖고, CSRC 필드(19)는 비어있게 된다. The CSRC field 19 is used to identify the contributing sources of the payload contained in the RTP packet. The number of CSRC identifiers is displayed in the CC field 13 and a maximum of 15 CSRC identifiers can be displayed in the CSRC field 19. [ That is, when a plurality of RTP packets are combined through the RTP mixer in the CSRC field 19, the CSRC identifiers of the original sources combined except for the SSRC are listed. If there is only one packet source, the value of the CC field 13 is 1, the SSRC identifier has a value, and the CSRC field 19 is empty.

확장 헤더(2)는 RTP 헤더를 통해서 전송될 추가적인 정보를 위한 것으로, 프로파일 필드(20), 길이 필드(21) 및 확장 헤더 내용 필드(22)를 포함할 수 있다. 본 발명의 실시 예에서는 확장 헤더(2)를 이용하여 타임스탬프 필드(17)에 포함되는 시간 정보를 좀 더 정밀하게 제공한다.The extension header 2 is for additional information to be transmitted via the RTP header and may include a profile field 20, a length field 21 and an extended header content field 22. In the embodiment of the present invention, time information included in the time stamp field 17 is more accurately provided using the extension header 2.

도 5는 본 발명의 실시 예에 따른 RTP 헤더의 구조를 나타낸 도면이다.5 is a diagram illustrating a structure of an RTP header according to an embodiment of the present invention.

도 5를 참고하면, 정밀한 샘플링 시점 정보를 나타내기 위해, RTP 고정 헤더의 타임스탬프 필드(17)는 기존과 동일하게 적용되고, X 필드(12)의 값은 확장 헤더(2)가 있음을 나타내기 위해 1로 설정된다. 그리고 확장 헤더(2)는 정밀한 샘플링 시점 정보를 포함한다. 5, the timestamp field 17 of the RTP fixed header is applied in the same manner as before, and the value of the X field 12 indicates that the extended header 2 exists in order to indicate the precise sampling time information. 1 " And the extension header 2 contains precise sampling timing information.

확장 헤더(2)의 프로파일 필드(20)는 16비트로 구성되며, 프로파일에 의해 정의될 수 있다. 본 발명의 실시 예에 따르면, 프로파일 필드(20)의 값은 16비트 중 상위 4비트가 1로 설정된 2048로 설정된다. The profile field 20 of the extension header 2 is composed of 16 bits and can be defined by a profile. According to an embodiment of the present invention, the value of the profile field 20 is set to 2048, where the upper four bits of the 16 bits are set to 1.

확장 헤더(2)의 길이 필드(21)는 16비트로 구성되며 확장 헤더(2)의 길이를 나타낸다. 본 발명의 실시 예에 따르면, 길이 필드(21)는 32비트로 설정될 수 있다. The length field 21 of the extension header 2 is composed of 16 bits and indicates the length of the extension header 2. According to an embodiment of the present invention, the length field 21 may be set to 32 bits.

확장 헤더(2)의 복수의 확장 헤더 내용 필드(22a, 22a)는 각각 32비트로 구성된다. 첫 번째 확장 헤더 내용 필드(22a)의 처음 6 비트는 연도(Year)를 나타내며 최대 63년까지 표현이 가능하다. 다음 4 비트는 월(Month)을 나타내며, 1~12을 표현할 수 있다. 다음 5비트는 일(Day)를 나타내며 1~31을 표현한다. 다음 5비트는 시(Hour)를 나타내며 0~24시간을 표현할 수 있다. 다음 6비트는 분(Minutes)을 나타내며 0~60분을 표현한다. 다음 6비트는 초(Seconds)를 나타내며 0~60초를 표현한다. The plurality of extension header content fields 22a, 22a of the extension header 2 are each composed of 32 bits. The first six bits of the first extended header content field 22a indicate the year and can be expressed up to 63 years. The next four bits represent the month, which can represent from 1 to 12. The next five bits represent day (1 to 31). The next five bits represent the hour and can represent from 0 to 24 hours. The next six bits represent the minutes and represent 0 to 60 minutes. The next six bits represent seconds and represent 0 to 60 seconds.

두 번째 확장 헤더 내용 필드(22b)의 처음 2비트는 버퍼(buffer)로 구성되며, 시간 동기화 방법을 나타낸다. 예를 들면, 처음 2비트의 값이 01이면 GPS를 이용한 시간 동기화를 나타내고, 10이면 무선 표준 전파를 이용한 시간 동기화 방법을 나타낸다. 다음 10비트는 밀리 초(milliseconds, ms)를 나타내며, 0~999를 표현한다. 다음 10비트는 마이크로 초(microseconds, us)를 나타내며 0~999를 표현한다. 다음 10비트는 나노 초(nanoseconds, ns)를 나타내며 0~999를 표현할 수 있다. The first two bits of the second extended header content field 22b are composed of a buffer and indicate a time synchronization method. For example, if the value of the first two bits is 01, the time synchronization using GPS is indicated. If the value is 10, the time synchronization method using wireless standard radio waves is shown. The next 10 bits represent milliseconds (milliseconds, ms) and represent 0 to 999. The next 10 bits represent microseconds (us) and represent 0 to 999. The next 10 bits represent nanoseconds (ns) and can represent 0 to 999.

이와 같이, 본 발명의 실시 예에 따르면, 확장 헤더(2)를 이용해 나노 초 단위로 시간 정보 표기가 가능해지므로, 좀 더 정확한 시간을 표기할 수 있으며, 좀 더 정확한 시간이 요구되는 환경에서도 사용될 수 있다. As described above, according to the embodiment of the present invention, since the time information can be expressed in units of nanoseconds by using the extension header 2, a more accurate time can be indicated and it can be used in an environment requiring more accurate time have.

도 6은 본 발명의 실시 예에 따른 RTP 패킷 전송 방법을 나타낸 흐름도이다. 도 6에서는 RTP 클라이언트 1(610)이 엄격한 실시간(Tough Real time)을 원하고, RTP 클라이언트 2(620)에서 기다리는 것을 전제로 한다. 이때 RTP 클라이언트 1(610) 및 RTP 클라이언트 2(620)에는 엄격한 실시간을 설정할 수 있는 GPS 수신기나 표준 전파 수신기가 있다고 가정한다. 6 is a flowchart illustrating an RTP packet transmission method according to an embodiment of the present invention. In FIG. 6, it is assumed that the RTP client 1 610 desires strict real time (tough real time) and waits in the RTP client 2 620. At this time, it is assumed that the RTP client 1 610 and the RTP client 2 620 have a GPS receiver or a standard radio receiver capable of setting strict real time.

도 6을 참고하면, RTP 클라이언트 1(610)은 GPS 수신기나 표준 전파 수신기를 통해 정확한 시간 정보를 수신하면(S610), 시간 정보를 이용하여 도 5에 도시한 바와 같은 RTP 패킷을 생성하고(S620), RTP 패킷을 RTP 클라이언트 2(620)로 전송한다(S630). 6, when the RTP client 1 610 receives accurate time information through the GPS receiver or the standard radio receiver (S610), it generates an RTP packet as shown in FIG. 5 using time information (S620 , And transmits the RTP packet to the RTP client 2 620 (S630).

RTP 패킷을 수신한 RTP 클라이언트 2(620)는 GPS 수신기나 표준 전파 수신기를 통해 정확한 시간 정보를 수신한다(S640). RTP 클라이언트 2(620)는 시간 정보를 이용하여 도 5에 도시한 바와 같은 RTP 패킷을 생성하고(S650), RTP 패킷을 RTP 클라이언트 2(620)로 전송한다(S660). The RTP client 2 (620) receiving the RTP packet receives accurate time information through the GPS receiver or the standard radio receiver (S640). The RTP client 2 620 generates an RTP packet as shown in FIG. 5 using time information (S650), and transmits the RTP packet to the RTP client 2 620 (S660).

이와 같이, RTP 클라이언트 1(610) 및 RTP 클라이언트 2(620)는 정확한 시간 정보를 포함한 RTP 패킷을 송수신함으로써, 엄격한 실시간 통신을 수행할 수 있다.As described above, the RTP client 1 610 and the RTP client 2 620 can perform strict real-time communication by transmitting and receiving RTP packets including accurate time information.

만약, RTP 클라이언트 1(610) 및 RTP 클라이언트 2(620) 중 어느 하나라도 GPS 수신기나 표준 전파 수신기가 없고, GPS 수신기나 표준 전파 수신기를 통해 정확한 시간 정보를 수신할 수 없다면, 확장 헤더가 없는 RTP 패킷을 전송한다. If either the RTP client 1 610 or the RTP client 2 620 does not have a GPS receiver or a standard radio receiver and can not receive accurate time information via a GPS receiver or a standard radio receiver, And transmits the packet.

도 7은 본 발명의 실시 예에 따른 RTP 패킷 전송 장치를 나타낸 도면이다.7 is a diagram illustrating an RTP packet transmission apparatus according to an embodiment of the present invention.

도 7을 참고하면, RTP 패킷 전송 장치(700)는 프로세서(710), 송수신기(720) 및 메모리(730)를 포함한다. Referring to FIG. 7, the RTP packet transmission apparatus 700 includes a processor 710, a transceiver 720, and a memory 730.

프로세서(710)는 도 5에 도시한 바와 같은 RTP 패킷을 생성한다. 특히, 프로세서(710)는 RTP 헤더의 확장 필드에 확장 헤더가 있음을 설정하고, 확장 헤더에 시간 동기화 방법과 정밀한 시간 정보를 설정하여, 엄격한 실시간 통신을 위한 RTP 패킷을 생성할 수 있다. The processor 710 generates an RTP packet as shown in FIG. Particularly, the processor 710 can set up an extension header in the extension field of the RTP header, and set the time synchronization method and the precise time information in the extension header, thereby generating an RTP packet for strict real-time communication.

송수신기(720)는 프로세서(710)와 연결되어 무선신호를 송신 및 수신한다. The transceiver 720 is coupled to the processor 710 to transmit and receive wireless signals.

메모리(730)는 프로세서(710)에서 수행하기 위한 명령어를 저장하고 있거나 저장 장치(도시하지 않음)로부터 명령어를 로드하여 일시 저장한다. 프로세서(710)는 메모리(730)에 저장되어 있거나 로드된 명령어를 실행할 수 있다. 또한 메모리(730)는 프로세서(710)의 동작과 관련된 정보를 저장할 수 있다.The memory 730 stores a command to be executed by the processor 710 or temporarily stores the command by loading the command from a storage device (not shown). The processor 710 may execute instructions that are stored or loaded into the memory 730. The memory 730 may also store information related to the operation of the processor 710.

프로세서(710)와 메모리(730)는 버스(도시하지 않음)를 통해 서로 연결되어 있으며, 버스에는 입출력 인터페이스(도시하지 않음)도 연결되어 있을 수 있다. 이때 입출력 인터페이스에 송수신기(720)가 연결되며, 입력 장치, 디스플레이, 스피커, 저장 장치 등의 주변 장치가 연결되어 있을 수 있다. The processor 710 and the memory 730 are connected to each other via a bus (not shown), and an input / output interface (not shown) may be connected to the bus. At this time, a transceiver 720 is connected to the input / output interface, and peripheral devices such as an input device, a display, a speaker, and a storage device may be connected.

본 발명의 실시 예는 이상에서 설명한 장치 및/또는 방법을 통해서만 구현되는 것은 아니며, 본 발명의 실시 예의 구성에 대응하는 기능을 실현하는 프로그램 또는 그 프로그램이 기록된 기록 매체를 통해 구현될 수도 있으며, 이러한 구현은 앞서 설명한 실시 예의 기재로부터 본 발명이 속하는 기술 분야의 전문가라면 쉽게 구현할 수 있는 것이다. The embodiments of the present invention are not limited to the above-described apparatuses and / or methods, but may be implemented through a program for realizing functions corresponding to the configuration of the embodiment of the present invention or a recording medium on which the program is recorded, Such an embodiment can be readily implemented by those skilled in the art from the description of the embodiments described above.

이상에서 본 발명의 실시 예에 대하여 상세하게 설명하였지만 본 발명의 권리 범위는 이에 한정되는 것은 아니고 다음의 청구범위에서 정의하고 있는 본 발명의 기본 개념을 이용한 당업자의 여러 변형 및 개량 형태 또한 본 발명의 권리 범위에 속하는 것이다. While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, It belongs to the scope of right.

Claims (8)

RTP(Real Time Protocol) 패킷 전송 장치에서 RTP 패킷을 전송하는 방법으로서,
RTP 고정 헤더의 확장 필드에 상기 RTP 고정 헤더 뒤에 확장 헤더가 포함되어 있음을 설정하는 단계,
상기 확장 헤더에 상기 RTP 패킷의 첫 번째 바이트의 샘플링 시간 정보를 나노 초(nanoseconds) 단위까지의 시간 정보로 나타내는 단계, 그리고
상기 RTP 고정 헤더 및 상기 확장 헤더를 포함한 RTP 패킷을 전송하는 단계
를 포함하는 RTP 패킷 전송 방법.
A method for transmitting an RTP packet in an RTP (Real Time Protocol) packet transmission apparatus,
Setting an extension field of the RTP fixed header to include an extension header after the RTP fixed header,
Indicating the sampling time information of the first byte of the RTP packet as time information up to the nanoseconds unit in the extension header,
Transmitting an RTP packet including the RTP fixed header and the extension header
Gt; RTP < / RTI >
제1항에서,
상기 확장 헤더는 상기 샘플링 시간 정보를 연도(Year), 월(Month), 일(Day), 시(Hour), 밀리초(milliseconds), 마이크로초(microseconds) 및 나노초(nanoseconds)로 나타내기 위한 복수의 필드를 포함하는 RTP 패킷 전송 방법.
The method of claim 1,
The extension header may include a plurality of bits for indicating the sampling time information as Year, Month, Day, Hour, milliseconds, microseconds and nanoseconds. Gt; RTP < / RTI >
제1항에서,
상기 확장 헤더는 시간 동기화 방법의 타입을 나타내는 버퍼(buffer) 필드를 더 포함하는 RTP 패킷 전송 방법.
The method of claim 1,
Wherein the extension header further comprises a buffer field indicating a type of a time synchronization method.
제3항에서,
상기 시간 동기화 방법은 GPS(Global Positioning System) 또는 무선 표준 전파를 이용한 방법을 포함하는 RTP 패킷 전송 방법.
4. The method of claim 3,
Wherein the time synchronization method includes a Global Positioning System (GPS) or a method using a wireless standard radio wave.
RTP(Real Time Protocol) 패킷 전송 장치로서,
RTP 헤더의 확장 필드에 확장 헤더가 있음을 설정하고, 상기 확장 헤더에 상기 RTP 패킷의 첫 번째 바이트의 샘플링 시간 정보를 나노 초(nanoseconds) 단위까지 설정하여, RTP 패킷을 생성하는 프로세서, 그리고
상기 RTP 패킷을 전송하는 송수신기
를 포함하는 RTP 패킷 전송 장치.
An RTP (Real Time Protocol) packet transmission apparatus,
A processor for setting up an extension header in an extension field of an RTP header, setting up sampling time information of a first byte of the RTP packet in units of nanoseconds in the extension header, and generating an RTP packet;
The transceiver that transmits the RTP packet
And an RTP packet transmission unit.
제5항에서,
상기 프로세서는 상기 확장 헤더에 상기 샘플링 시간 정보를 연도(Year), 월(Month), 일(Day), 시(Hour), 밀리초(milliseconds), 마이크로초(microseconds) 및 나노 초 단위까지 설정하는 RTP 패킷 전송 장치.
The method of claim 5,
The processor sets the sampling time information in the extension header up to the year, month, day, hour, milliseconds, microseconds, and nanoseconds RTP packet transmission device.
제5항에서,
상기 프로세서는 상기 확장 헤더에 시간 동기화 방법의 타입을 설정하고,
상기 시간 동기화 방법으로는 GPS(Global Positioning System) 또는 무선 표준 전파를 이용한 방법이 사용되는 RTP 패킷 전송 장치.
The method of claim 5,
The processor sets a type of time synchronization method in the extension header,
The time synchronization method uses a Global Positioning System (GPS) or a wireless standard radio wave.
제5항에서,
상기 송수신기는 GPS 수신기 또는 표준 전파 수신기를 포함하며,
상기 프로세서는 상기 GPS 수신기 또는 상기 표준 전파 수신기를 통해 획득한 시간 정보를 이용하여 상기 샘플링 시간 정보를 설정하는 RTP 패킷 전송 장치.
The method of claim 5,
The transceiver includes a GPS receiver or a standard radio receiver,
Wherein the processor sets the sampling time information using time information acquired through the GPS receiver or the standard radio wave receiver.
KR1020160147704A 2016-11-07 2016-11-07 Method and apparatus for transmitting rtp packet KR20180050983A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020160147704A KR20180050983A (en) 2016-11-07 2016-11-07 Method and apparatus for transmitting rtp packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020160147704A KR20180050983A (en) 2016-11-07 2016-11-07 Method and apparatus for transmitting rtp packet

Publications (1)

Publication Number Publication Date
KR20180050983A true KR20180050983A (en) 2018-05-16

Family

ID=62452050

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020160147704A KR20180050983A (en) 2016-11-07 2016-11-07 Method and apparatus for transmitting rtp packet

Country Status (1)

Country Link
KR (1) KR20180050983A (en)

Similar Documents

Publication Publication Date Title
US10652849B2 (en) Using broadcast physical layer for one-way time transfer of universal coordinated time to receivers
US8155157B2 (en) Method and apparatus for synchronizing applications of terminals in communication network
KR102533481B1 (en) Transmission device, transmission method, reception device, and reception method
JP5913596B2 (en) Method and apparatus for wireless network time synchronization
US8149880B1 (en) Media streaming synchronization
US8351437B2 (en) Stereo bit clock tuning
EP1618705B1 (en) Sytem and method for measuring data network quality
KR102532052B1 (en) Receiving device and data processing method
US10432680B2 (en) System time frequency and time information
WO2018170852A1 (en) Method and device for lip-speech synchronization among multiple devices
US11290200B2 (en) Transmission device, transmission method, reception device, and reception method
US20020021717A1 (en) Method and system for transmit time stamp insertion in a hardware time stamp system for packetized data networks
WO2014188664A1 (en) Broadcast system, client, synchronization program, and synchronization method
JP4042396B2 (en) Data communication system, data transmission apparatus, data reception apparatus and method, and computer program
KR20180050983A (en) Method and apparatus for transmitting rtp packet
US20090161638A1 (en) Telecommunications network
US11062722B2 (en) Stream adaptation for latency
KR101244915B1 (en) Method for providing synchonizing information with application layer from medium access control layer and apparatus therefor
CN112671696B (en) Message transmission method, device, computer equipment and computer storage medium
KR100876796B1 (en) Method for transmitting transmit-period real time controll protocol in source specific multicasting supporting network